Do you think it prudent for *The State* to make such a decision?
I will answer your question, no the state has no right to hold anyone against their will, other then convicted felons and some of my x relatives. If they can get up and walk out they should be allowed to. If it results in death in some fashion it is their choice. This could be illegal imprisonment or even kidnapping IMHO.
The state needs to get out of the lives and deaths of people. It is not their business. Sometimes the road to hell is intentionally paved with good intentions.