Cal. Penal Code § 1001.36
(b) A defendant is eligible for pretrial diversion pursuant to this section if both of the following criteria are met:
(c) For any defendant who satisfies the eligibility requirements in subdivision (b), the court must consider whether the defendant is suitable for pretrial diversion. A defendant is suitable for pretrial diversion if all of the following criteria are met:
(d) A defendant may not be placed into a diversion program, pursuant to this section, for the following current charged offenses:
(f) As used in this chapter, the following terms have the following meanings:
(1) “Pretrial diversion” means the postponement of prosecution, either temporarily or permanently, at any point in the judicial process from the point at which the accused is charged until adjudication, to allow the defendant to undergo mental health treatment, subject to all of the following:
(A)
(C) The period during which criminal proceedings against the defendant may be diverted is limited as follows:
(g) If any of the following circumstances exists, the court shall, after notice to the defendant, defense counsel, and the prosecution, hold a hearing to determine whether the criminal proceedings should be reinstated, whether the treatment should be modified, or whether the defendant should be conserved and referred to the conservatorship investigator of the county of commitment to initiate conservatorship proceedings for the defendant pursuant to Chapter 3 (commencing with Section 5350) of Part 1 of Division 5 of the Welfare and Institutions Code:
(4) Based on the opinion of a qualified mental health expert whom the court may deem appropriate, either of the following circumstances exists:
(j) The defendant shall be advised that, regardless of the defendant’s completion of diversion, both of the following apply:
(m)
(2) The prosecution shall bear the burden of proving, by clear and convincing evidence, both of the following are true:
(3)