Cal. Welf. & Inst. Code § 5977
(a)
(3) If the court finds that the petitioner has made a prima facie showing that the respondent is, or may be, a person described in Section 5972, the court shall do one of the following:
(A) If the petitioner is the director of a county behavioral health agency, or their designee, the court shall do the following:
(iii) Determine whether the petition includes all of the following information and, if it does not, order the county behavioral health agency to submit a written report with the court within 14 court days that includes all of the following:
(B) If the petitioner is a person other than the director of a county behavioral health agency, or their designee, the court shall order a county agency, or their designee, as determined by the court, to investigate, as necessary, file a written report with the court as soon as practicable, but within 30 court days, and provide notice to the respondent and petitioner that a report has been ordered. Parties shall complete the investigation with appropriate urgency. The written report shall include all of the following:
(5) Upon receipt of the report described in subparagraph (B) of paragraph (3), the court shall, within five days, take one of the following actions:
(C) If the court determines, based on the county agency’s report, that the evidence does support a prima facie showing that the respondent is, or may be, a person described in Section 5972, and engagement with the county agency was not effective, the court shall do all of the following:
(b) At the initial appearance on the petition, all of the following shall apply:
(6)
(B) If the original petitioner is described in subdivision (a) or (b) of Section 5974, all of the following apply:
(ii)
(7)
(c)
(d) The following shall apply to any written report submitted by a county behavioral health agency to the court pursuant to this section: