Welfare and Institutions Code § 7225
ARTICLE 2. Admission
Except as otherwise provided, all patients admitted to a state hospital shall be duly committed or transferred thereto, and shall be subject to the general rules and regulations of the department and of the hospital.