However, there are several circumstances in which individuals can be hospitalized involuntarily. These circumstances are:

If an individual poses danger to self or others
If an individual is unable to care for oneselfHospitalization may also be a treatment option if an individual:

Has access to lethal means (e.g., a firearm or a stockpile of pills)
Does not have social support or people to supervise them
Has a suicide plan
Has symptoms of a psychiatric disorder (e.g., psychosis, mania, etc.) Outpatient treatment
Outpatient treatment allows individuals to remain at their place of residence and receive treatment when needed or on a scheduled basis. Being at home may improve quality of life for some patients, because they will have access to their personal belongings, and be able to come and go freely. Before allowing patients the freedom that comes with outpatient treatment, physicians evaluate several factors of the patient. These factors include the patients level of social support, impulse control and quality of judgment. After the patient passes the evaluation, they are often asked to consent to a "no-harm contract". This is a contract formulated by the physician and the family of the patient. Within the contract, the patient agrees not to harm themself, to continue their visits with the physician, and to contact the physician in times of need. There is some debate as to whether "no-harm" contracts are effective. These patients are then checked on routinely to assure they are maintaining their contract and avoiding dangerous activities (drinking alcohol, driving fast and not wearing a seat belt, etc.).
One study found that 73% of patients with borderline personality disorder have attempted suicide, with the average patient having 3.4 attempts. The following list includes the disorders that have been shown to be the strongest predictors of suicidal ideation. These are not the only disorders that can increase risk of suicidal ideation. The disorders in which risk is increased the greatest include:
Anxiety disorders
Autism spectrum disorder
Major depressive disorder: 162 
Dysthymia
Bipolar disorder
Attention deficit hyperactivity disorder (ADHD)
Premenstrual Dysphoric Disorder (PMDD)
Post-traumatic stress disorder (PTSD) and complex post-traumatic stress disorder (C-PTSD): 278 
Personality disorders
Psychosis (detachment from reality)
Paranoia
Schizophrenia: 104 
Substance use disorders, inhalant use disorder: 538 
Body dysmorphic disorder: 245 
Nightmare disorder: 405 
Gender dysphoria: 454 
Conduct disorder: 473 
Specific learning disorder: 70

Medication side effects
Antidepressant medications are commonly used to decrease the symptoms in patients with moderate to severe clinical depression, and some studies indicate a connection between suicidal thoughts and tendencies and taking antidepressants, increasing the risk of suicidal thoughts in some patients.Some medications, such as selective serotonin re-uptake inhibitors (SSRIs), can have suicidal ideation as a side effect. Moreover, these drugs intended effects, can themselves have unintended consequence of an increased individual risk and collective rate of suicidal behavior: Among the set of persons taking the medication, a subset feel bad enough to want to attempt suicide (or to desire the perceived results of suicide) but are inhibited by depression-induced symptoms, such as lack of energy and motivation, from following through with an attempt.