> 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 § 7-506

- **Citation**: Md. Code, Health - General § 7-506
- **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=7-506&enactments=false](https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=ghg&section=7-506&enactments=false)
- **Canonical URL**: [https://corpuslaw.us/codes/maryland/health-general/title-7/section-7-506](https://corpuslaw.us/codes/maryland/health-general/title-7/section-7-506)
- **Semantic URL**: [https://corpuslaw.us/codes/maryland/health-general/title-7/section-7-506](https://corpuslaw.us/codes/maryland/health-general/title-7/section-7-506)

## Hierarchy

Article Health - General — Health - General > Title 7

## Text

Any individual who has been admitted to a State residential center 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.
