; or (ii) the prisoner has previously requested that an officer of a different sex conduct searches; (B) a correctional officer may not enter a restroom reserved for prisoners of the opposite sex unless— (i) a prisoner in the restroom presents a risk of immediate harm to the prisoner or others; or (ii) there is a medical emergency in the restroom and no other correctional officer of the appropriate sex is available to assist; (C) a transgender prisoner’s sex shall be determined according to the sex with which the prisoner identifies