> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Md. Code, Health - General § 10-804

- **Citation**: Md. Code, Health - General § 10-804
- **Node Type**: section
- **Jurisdiction**: Maryland (state)
- **Code Body**: Code of Maryland (Aug. 2026 snapshot) (Md. Code)
- **Official Source**: [https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=ghg&section=10-804&enactments=false](https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=ghg&section=10-804&enactments=false)
- **Canonical URL**: [https://corpuslaw.us/codes/maryland/health-general/title-10/section-10-804](https://corpuslaw.us/codes/maryland/health-general/title-10/section-10-804)
- **Semantic URL**: [https://corpuslaw.us/codes/maryland/health-general/title-10/section-10-804](https://corpuslaw.us/codes/maryland/health-general/title-10/section-10-804)

## Hierarchy

Article Health - General — Health - General > Title 10

## Text

(a) Any individual who has been admitted to a facility or Veterans’ Administration hospital or any person on behalf of the individual may apply at any time to a court of competent jurisdiction for a writ of habeas corpus to determine the cause and the legality of the detention.

(b) The Director, in the name of the Administration, may make an application for a writ of habeas corpus to determine whether a facility properly admitted or properly holds an individual. The State’s Attorney for the county where the facility is located or the individual is a resident, on behalf of the Administration, shall file the application.
