Here the psychiatrist would have to certify that they had either attempted suicide or threatened suicide and the doctors here were convinced there is a real immediate danger of that.They take this real seriously and both doctors have to agree to the diagnosis.And this is usually considered a short term commitment until the danger has passed and they can become out patient again.
Arizona law for reference.
For both inpatient and outpatient:
ARIZ. REV. STAT. § 36-540 (A). "If the court finds by clear and convincing evidence that the proposed patient, as a result of mental disorder, is a danger to self, is a danger to others, is persistently or acutely disabled or is gravely disabled and in need of treatment, and is either unwilling or unable to accept voluntary treatment . . . ."
ARIZ. REV. STAT. § 36-501(5). "Danger to others" means that the judgment of a person who has a mental disorder is so impaired that he is unable to understand his need for treatment and as a result of his mental disorder his continued behavior can reasonably be expected, on the basis of competent medical opinion, to result in serious physical harm.
ARIZ. REV. STAT. § 36-501(6). "Danger to self" means:
(a) Behavior which, as a result of a mental disorder, constitutes a danger of inflicting serious physical harm upon oneself, including attempted suicide or the serious threat thereof, if the threat is such that, when considered in the light of its context and in light of the individual's previous acts, it is substantially supportive of an expectation that the threat will be carried out.
(b) Behavior which, as a result of a mental disorder, will, without hospitalization, result in serious physical harm or serious illness to the person, except that this definition shall not include behavior which establishes only the condition of gravely disabled.
ARIZ. REV. STAT. § 36-501(16). "Gravely disabled" means a condition evidenced by behavior in which a person, as a result of a mental disorder, is likely to come to serious physical harm or serious illness because he is unable to provide for his basic physical needs.
ARIZ. REV. STAT. § 36-501(33). "Persistently or acutely disabled" means a severe mental disorder that meets all the following criteria:
(a) If not treated has a substantial probability of causing the person to suffer or continue to suffer severe and abnormal mental, emotional or physical harm that significantly impairs judgment, reason, behavior or capacity to recognize reality.
(b) Substantially impairs the person's capacity to make an informed decision regarding treatment and this impairment causes the person to be incapable of understanding and expressing an understanding of the advantages and disadvantages of accepting treatment and understanding and expressing an understanding of the alternatives to the particular treatment offered after the advantages, disadvantages and alternatives are explained to that person.
(c) Has a reasonable prospect of being treatable by outpatient, inpatient or combined inpatient and outpatient treatment.