Cal. Health & Safety Code § 1262
(a) When a mental health patient is being discharged from one of the facilities specified in subdivision (c), the patient and the patient’s conservator, guardian, or other legally authorized representative, as applicable, 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, all of the following components:
(c) Subdivision (a) applies to all of the following facilities: