; and (B) not more than 5 days. (b) Weekly review required (1) In general With respect to a detainee detained under paragraph (2) of subsection (a), not less frequently than once each week, the Secretary shall conduct an individualized review to determine whether the detainee continues to be subject to detention under that paragraph. (2) Release In the case of a determination under paragraph (1) that a pregnant detainee is not subject to detention under subsection (a)(2), not later than 1 day after the date on which the Secretary makes the determination, the Secretary shall release the detainee. 3. Humane treatment of pregnant women while in detention (a) Prohibition on restraint of pregnant detainees (1) Prohibition Except as provided in paragraph (2), a detention facility shall not use a restraint on a detainee— (A) known to be pregnant, including during— (i) labor; (ii) transport to a medical facility or birthing center; and (iii) delivery; or (B) during postpartum recovery. (2) Use of restraints for medical purposes and in extraordinary circumstances (A) In general Notwithstanding paragraph (1), subject to subparagraph (B), use of a restraint on a detainee described in paragraph (1) may be permitted only— (i) for a medical purpose if the lead medical staff of the detention facility who is a licensed health care provider has ordered the use of the restraint for the medical purpose; or (ii) in an extraordinary circumstance, except for a medical purpose, in which the facility administrator has ordered the use of the restraint after making an individualized determination that— (I) credible, reasonable grounds exist to believe the detainee presents an immediate and serious threat of hurting staff or others