Before releasing any inmate or terminating supervision of any parolee who is a danger to self or others, or gravely disabled as a result of a mental health disorder, and who does not come within the provisions of Section 2962, the Director of Corrections may, upon probable cause, place, or cause to be placed, the person in a state hospital pursuant to the Lanterman-Petris-Short Act, Part 1 (commencing with Section 5000) of Division 5 of the Welfare and Institutions Code.
Ca. Pen. Code § 2974