Upon detention pursuant to this subdivision, a hearing shall be held either before the court having jurisdiction over the inmate's case or before a district court judge or a special justice, as defined in § 37.2-100, in accordance with the provisions of §§ 37.2-815 through 37.2-821, in which case the inmate shall be represented by counsel as specified in § 37.2-814. The hearing shall be held within 72 hours of execution of the temporary detention order issued pursuant to this subdivision. If the 72-hour period terminates on a Saturday, Sunday, legal holiday, or day on which the court is lawfully closed, the inmate may be detained until the close of business on the next day that is not a Saturday, Sunday, legal holiday, or day on which the court is lawfully closed. Any employee or designee of the local community services board or behavioral health authority, as defined in § 37.2-809, representing the board or authority that prepared the preadmission screening report shall attend the hearing in person or, if physical attendance is not practicable, shall participate in the hearing through a two-way electronic video and audio communication system as authorized in § 37.2-804.1. When the hearing is held outside the service area of the community services board or behavioral health authority that prepared the preadmission screening report, and it is not practicable for a representative of the board or authority to attend or participate in the hearing, arrangements shall be made by the board or authority for an employee or designee of the board or authority serving the area in which the hearing is held to attend or participate on behalf of the board or authority that prepared the preadmission screening report. The judge or special justice conducting the hearing may order the inmate hospitalized if, after considering the examination conducted in accordance with § 37.2-815, the preadmission screening report prepared in accordance with § 37.2-816, and any other available information as specified in subsection C of § 37.2-817, he finds by clear and convincing evidence that (1) the inmate has a mental illness; (2) there exists a substantial likelihood that, as a result of a mental illness, the inmate will, in the near future, (a) cause serious physical harm to himself or others as evidenced by recent behavior causing, attempting, or threatening harm and any other relevant information or (b) suffer serious harm due to his lack of capacity to protect himself from harm as evidenced by recent behavior and any other relevant information; and (3) the inmate requires treatment in a hospital rather than a local correctional facility. The examiner appointed pursuant to § 37.2-815, if not physically present at the hearing, shall be available whenever possible for questioning during the hearing through a two-way electronic video and audio or telephonic communication system as authorized in § 37.2-804.1. The examination and the preadmission screening report shall be admitted into evidence at the hearing.
Any health care provider disclosing records pursuant to this section shall be immune from civil liability for any harm resulting from the disclosure, including any liability under the federal Health Insurance Portability and Accountability Act (42 U.S.C. § 1320d et seq.), as amended, unless the person or provider disclosing such records intended the harm or acted in bad faith.
Va. Code § 19.2-169.6