It troubles me, however, to to give a government the capability to detain citizens based on the (forgive the scare quotes) "medical" expertise of a psychiatrist. This has been abused [1] and I find significant issues with the credence given to testimony by psychiatrists in the US court system [2]. The lack of science in ever-shifting diagnosis criteria is saddening, and these diagnoses will mirror the prevailing social and political winds. Within some of our lifetimes, of course, homosexuality was a pathology in the DSM.
I'm not sure of the answer here. We do need a way to keep people who are a threat to themselves and others in a safe place, but psychiatry has been and is such a troubling and far-too non-scientific endeavor, long drawing profit from conclusions far beyond our true capabilities to understand the human mind and behavior. I don't want people in the field with anything other than an attitude utter humility and possibly shame exerting control over others' lives.
[1] https://en.wikipedia.org/wiki/Political_abuse_of_psychiatry_...
[2] http://www.newyorker.com/magazine/2009/09/07/trial-by-fire