Cal. Welf. & Inst. Code § 5768.5
(a) When a mental health patient is being discharged from any facility authorized under Section 5675 or 5768, the patient and the patient’s conservator, guardian, or other legally authorized representative shall be given a written aftercare plan prior to the patient’s discharge from the facility. The written aftercare plan shall include, to the extent known, the following components: