Notwithstanding any other provision of this code, the executive director, the chief procurement officer, the procurement official, or a designee of any such officer may make or authorize others to make emergency procurements when there exists a threat to public health, welfare, or safety under emergency conditions, as defined in rules, but such emergency procurements shall be made with such competition as is practicable under the circumstances. A written determination of the basis for the emergency and for the selection of the particular contractor shall be included in the contract file.