The term '5150' comes from the California Welfare and Institutions Code, which is the legal statute that allows for involuntary psychiatric holds. The number '5150' is the section of the code that specifies the criteria for a 72-hour hold. The term has since become widely used to refer to involuntary psychiatric holds in general.