(a) If a woman confined in any institution or local correctional facility be pregnant and about to give birth to a child, the superintendent or sheriff in charge of such institution or facility, a reasonable time before the anticipated birth of such child, shall cause such woman to be removed from such institution or facility and provided with comfortable accommodations, maintenance and medical care elsewhere, under such supervision and safeguards to prevent her escape from custody as the superintendent or sheriff or his or her designee may determine. No restraints of any kind shall be used during transport of such woman, a woman who is known to be pregnant by correctional personnel or personnel providing medical services to the institution or local correctional facility, or a woman within eight weeks after delivery or pregnancy outcome , absent extraordinary circumstances in which:
i. the superintendent or sheriff or his or her designee in consultation with the medical professional responsible for the institution has made an individualized determination that restraints are necessary to prevent such woman from injuring herself or medical or correctional personnel or others and cannot reasonably be restrained by other means, including the use of additional personnel; orii. the correctional personnel directly responsible for the transport of such a woman determine that an emergency has arisen in which restraints are necessary because the woman poses an immediate risk of serious injury to herself or medical or correctional personnel or others and cannot reasonably be restrained by other means.