; and (BB) the date and location of each scheduled immigration court proceeding of the child; and (bb) is provided with updated information if the location of the child or a scheduled immigration court proceeding of the child changes; and (IV) the location and contact information for the apprehended parent or legal guardian is maintained on file; (V) before separation, each child is provided with an opportunity to say goodbye to the apprehended parent or legal guardian; and (VI) with respect to the health of the child, the apprehended parent or legal guardian— (aa) is able, before separation, to communicate to personnel of the Department the medical history and any known illness of the child; and (bb) is informed of any medical treatment administered to the child, including psychotropic drugs, during the period in which the child is in the custody of the Director of the Office of Refugee Resettlement; and (iv) ensuring that, with respect to a decision relating to the removal from the United States or referral for prosecution of an apprehended parent or legal guardian— (I) consideration is given to— (aa) the best interests of the child of the apprehended parent or legal guardian; (bb) family unity, to the maximum extent possible; and (cc) any other public interest factor, including a humanitarian concern and a concern relating to the physical safety of the apprehended parent or legal guardian; and (II) the apprehended parent or legal guardian and the child have access to legal counsel