; and (II) no other correctional officer of the same sex as the prisoner, or medical staff are available to assist; 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) (I) a prisoner in the restroom presents a risk of immediate harm to himself or herself or others; or (II) there is a medical emergency in the restroom; and (ii) no other correctional officer of the same sex as the prisoner is available to assist; (C) a transgender prisoner’s sex is determined according to the sex with which they identify