; or (II) there is a medical emergency in the restroom; and (ii) no other correctional officer of the appropriate sex is available to assist. (2) Relation to other laws Nothing in paragraph (1) shall be construed to affect the requirements under the Prison Rape Elimination Act of 2003 ( 42 U.S.C. 15601 et seq.). . (b) Substance abuse treatment Section 3621(e) of title 18, United States Code, is amended by adding at the end the following: (7) Eligibility of primary caretaker parents and pregnant women The Bureau of Prisons may not prohibit a prisoner who is a primary caretaker parent (as defined in section 4050) or pregnant from participating in a program of residential substance abuse treatment provided under paragraph (1) based on the failure of the individual, before being committed to the custody of the Bureau, to disclose to any official that the individual had a substance abuse problem. . (c) Technical and conforming amendment The table of sections for chapter 303 of title 18, United States Code, is amended by adding at the end the following: 4050. Treatment of primary caretaker parents and other individuals. . 3. Overnight visit pilot program (a) Definitions In this section— (1) the term Director means the Director of the Bureau of Prisons; (2) the term primary caretaker parent has the meaning given the term in section 31903 of the Violent Crime Control and Law Enforcement Act of 1994 ( 42 U.S.C. 13882 ); and (3) the term prisoner means an individual who is incarcerated in a Federal penal or correctional institution. (b) Pilot program The Director shall carry out a pilot program under which prisoners who are primary caretaker parents and meet eligibility criteria established by the Director may receive overnight visits from family members. (c) Eligibility criteria In establishing eligibility criteria for the pilot program under subsection (b), the Director shall— (1) require that a prisoner have displayed good behavior