(a) When the procedures of § 704 of this title have been exhausted or cannot be satisfied as a result of threatened criminal behavior and the Director knows or has reason to believe, because of medical or epidemiological information, that a person has an STD of a communicable nature and that such person presents an imminent danger to the public health, the Director may bring an action in the Justice of the Peace Court, seeking the following relief:
(1) An injunction prohibiting such person from engaging in or continuing to engage in specific conduct which endangers the public health;
(2) Other appropriate court orders including, but not limited to, an order to take such person into custody, for a period not to exceed 72 hours, and place such person in a facility designated or approved by the Director.
(b) A custody order issued pursuant to subsection (a) of this section for the purpose of counseling and testing to determine whether such person has an STD of a communicable nature shall provide for the immediate release from custody and from the facility of any person who tests negative and may provide for counseling or other appropriate measures to be imposed on any person who tests positive. The subject of the order shall be given notice of the order promptly, personally and confidentially, stating the grounds and provisions of the order and notifying such person that if that person refuses to comply with such order that person has a right to be present at a hearing to review the order and that such person may have an attorney appear on that person's own behalf at the hearing. If such person contests testing or treatment, no invasive medical procedures shall be carried out prior to a hearing being held pursuant to subsection (c) of this section. Nothing in this section shall be construed to deny a person, as an exercise of religious freedom, the right to rely solely on spiritual means through prayer to prevent or cure disease, provided that the person complies with all control measures, other than treatment, imposed by the health authority or the department that are reasonable and necessary to prevent the introduction, transmission and spread of the disease.
(c) Any order issued by the Justice of the Peace Court pursuant to subsection (a) or (b) of this section shall be subject to review in a court hearing. Notice of the place, date and time of the court hearing shall be given promptly, personally and confidentially to the subject of the court order by the sheriff of the appropriate county or by special process server appointed by the Court. Such hearing shall be conducted by the Court no later than 48 hours after the issuance of the order. Such person has a right to be present at the hearing and may have an attorney appear on that person's own behalf at the hearing. Upon conclusion of the hearing, the Court shall issue appropriate orders affirming, modifying or dismissing the order.
(d) The burden of proof shall be on the Director to show by clear and convincing evidence that grounds exist for the issuance of any court order pursuant to subsection (a), (b) or (c) of this section.
(e) Any hearing conducted by the Justice of the Peace Court pursuant to subsection (a), (b) or (c) of this section shall be closed and confidential, and any transcripts or records relating thereto shall also be confidential.
(f) Any order entered by the Justice of the Peace Court pursuant to subsection (a), (b) or (c) of this section shall impose terms and conditions no more restrictive than necessary to protect the public health.