Cal. Health & Safety Code § 1284
A licensed inpatient mental health facility shall be subject to the provisions of Section 5622 of the Welfare and Institutions Code.