There is called voluntary and involuntary commitment. If you are refering to voluntary commitment, you can commit yourself to a hospital at any time for any reason and be able to sign yourself out at...
James, the half-brother of Jesus and Head of the Church of God @ Jerusalem said:
New International Version (NIV)8 If you really keep the royal law found in Scripture, "Love your neighbor as...