The law permits the involuntary commitment of people with psychiatric disabilities who are either dangerous to themselves or others or gravely disabled. A gravely disabled person is someone who may suffer serious harm because he fails to provide for his basic human needs and refuses to accept necessary hospitalization.

Anyone may begin the commitment process by filing with the probate court an application alleging that someone has psychiatric disabilities and is dangerous to himself or others or gravely disabled. Two court-selected physicians examine the person to be committed and a hearing is scheduled 10 days later. The court must order commitment if it finds by clear and convincing evidence that the person meets the commitment requirements. The commitment is for the duration of the psychiatric disabilities or until the patient is discharged in due course of law.

A person may be committed on an emergency basis without a prior hearing, however, if a clinical social worker or advanced practice registered nurse with certain training, physician, or psychologist signs an emergency certificate stating that he has psychiatric disabilities, is dangerous or gravely disabled, and in need of immediate care and treatment.

A police officer may take a person with psychiatric disabilities into custody and deliver him to a general hospital on a court warrant or reasonable belief that the person meets the criteria for emergency commitment.

Hospitals must annually advise all committed patients of their right to a hearing on whether they can be released. Additionally, a court-appointed psychiatrist must examine each patient annually. A full hearing is required at least every two years. Patients may also apply for release at any time and receive a full hearing on the application.

Remarkably similar to what I proposed Isn't it?

No. The bolded portions make it very different.

Even the emergency confinements are limited to 72 hours, not "until it can be determined more conclusively whether you are a danger".