Md. Code Ann., Health-Gen. § 7-506
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.
Added by Acts 1986, c. 636, § 2, eff. July 1, 1986; Acts 1986, c. 637, § 2, eff. July 1, 1986.