Cal. Welf. & Inst. Code § 5304
(a) The court shall remand a person named in the petition for postcertification treatment to the custody of the State Department of State Hospitals or to a licensed health facility designated by the county of residence of that person for a further period of intensive treatment, not to exceed 180 days from the date of court judgment, if the court or jury finds that the person named in the petition for postcertification treatment has done any of the following: