Cal. Welf. & Inst. Code § 4146
(b)
(5) The court has the discretion to suspend the commitment for compassionate release and release the patient if the court finds that the facts described in subparagraphs (A) and (B) or subparagraphs (B) and (C) exist:
(d) A recommendation for compassionate release submitted to the court shall include at least one medical evaluation, a discharge plan, a postrelease plan for the relocation and treatment of the patient, and the physician’s and medical director’s determination that the patient meets the criteria set forth in subparagraph (A) or (C) of paragraph (5) of subdivision (b). The court shall order the medical director to send copies of all medical records reviewed in developing the recommendation to all of the following parties:
(e)
(g) The executive director of the state hospital or his or her designee shall ensure that upon release, the patient has each of the following in his or her possession, or the possession of the patient’s representative: