Oy, if you're very sick and very dangerous, Texas is not the place to be. Oh, it never was and maybe it never will be.
In Maryland, if someone is in the hospital and wants to leave, the vast majority of the time, they get leave. If the staff thinks they should stay, they get to sign a leaving AMA form --against medical advice. In rare instances, if a voluntary patient wants to leave, but they are felt to be imminently dangerous, then they can be certified, and held on the floor until there is hearing. At the hospital where I did my residency, hearings were held on Wednesday when an administrative law judge came in for that purpose, so how long a patient was stuck there without 'due process' depended on what day of the week this went down. In Texas, you can be committed against your will, but apparently as I've learned from yesterday's New York Times, if you've signed in, you can't be held and committed, no matter how sick, psychotic, and dangerous you are. Really? I'm back to my original thought: oy!
From Advocates Seek Mental Health Changes, Including the Power to Detain: