; (ii) all other options to de-escalate the situation have been exhausted, including less restrictive techniques such as— (I) penalizing the inmate through loss of privileges; (II) speaking with the inmate in an attempt to de-escalate the situation; and (III) a licensed mental health professional providing an appropriate level of care; (iii) such confinement is limited to the briefest term and the least restrictive conditions practicable, including access to medical and mental health treatment; (iv) such confinement is reviewed by a multidisciplinary staff committee for appropriateness every 24 hours; and (v) as soon as practicable, but not later than 5 days after such confinement begins, the inmate is diverted, upon release from solitary confinement, to— (I) a general population unit; (II) a protective custody unit described in paragraph (3); or (III) a mental health treatment program as described in subsection (c)(2); (C) the inmate is lesbian, gay, bisexual, transgender (as defined in section 115.5 of title 28, Code of Federal Regulations, or any successor thereto), intersex (as defined in section 115.5 of title 28, Code of Federal Regulations, or any successor thereto), or gender nonconforming (as defined in section 115.5 of title 28, Code of Federal Regulations, or any successor thereto), when such placement is solely on the basis of such identification or status; or (D) the inmate is HIV positive, if the placement is solely on the basis of the HIV positive status of the inmate. (5) Special housing units The Director shall— (A) limit administrative segregation— (i) to situations in which such segregation is necessary to— (I) control a substantial and immediate threat that cannot be addressed through alternative housing; or (II) temporarily house an inmate pending transfer, pending classification, or pending resolution of another temporary administrative matter