The legal process of admitting a patient to a mental health facility against their will when they pose a risk to themselves or others.