Suicide risk assessment
If after a short stay in the hospital (usually 3 business days), the hospital believes the person is still a risk to themselves, they can ask a court for civil commitment.  If a judge agrees, the judge will order the person to stay in the hospital for a much longer time (usually months).  The person has no right to leave the hospital.