A. Any person held in custody because of his mental illness may by petition for a writ of habeas corpus have the question of the legality of his detention determined by a court of competent jurisdiction. Upon the petition, after notice to the authorities of the facility or other institution in which the person is confined, the court shall determine in a courtroom of the county or city or in some other convenient public place in that county or city, whether the person has a mental illness and whether he should be detained.

Terms Used In Virginia Code 37.2-844

  • City: means an independent incorporated community which became a city as provided by law before noon on July 1, 1971, or which has within defined boundaries a population of 5,000 or more and which has become a city as provided by law. See Virginia Code 1-208
  • Facility: means a state or licensed hospital, training center, psychiatric hospital, or other type of residential or outpatient mental health or developmental services facility. See Virginia Code 37.2-100
  • Habeas corpus: A writ that is usually used to bring a prisoner before the court to determine the legality of his imprisonment. It may also be used to bring a person in custody before the court to give testimony, or to be prosecuted.
  • Jurisdiction: (1) The legal authority of a court to hear and decide a case. Concurrent jurisdiction exists when two courts have simultaneous responsibility for the same case. (2) The geographic area over which the court has authority to decide cases.
  • Mental illness: means a disorder of thought, mood, emotion, perception, or orientation that significantly impairs judgment, behavior, capacity to recognize reality, or ability to address basic life necessities and requires care and treatment for the health, safety, or recovery of the individual or for the safety of others. See Virginia Code 37.2-100
  • Person: includes any individual, corporation, partnership, association, cooperative, limited liability company, trust, joint venture, government, political subdivision, or any other legal or commercial entity and any successor, representative, agent, agency, or instrumentality thereof. See Virginia Code 1-230
  • Writ: A formal written command, issued from the court, requiring the performance of a specific act.

B. Any proceeding to challenge the continued secure inpatient treatment of a person held in custody as a sexually violent predator under Chapter 9 (§ 37.2-900 et seq.) of this title shall be conducted in accordance with § 37.2-910.

Code 1950, §§ 37-122, 37-123; 1950, p. 916; 1968, c. 477, § 37.1-103; 1976, c. 671; 2003, cc. 989, 1018; 2005, c. 716.