CA Penal Code § 1370.01 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 10 - MISCELLANEOUS PROCEEDINGS|CHAPTER 6 - Inquiry into the Competence of the Defendant Before Trial or After Conviction|Section 1370.01.

1370.01.  (a) If the defendant is found mentally competent, the criminal process shall resume, and the trial on the offense charged or hearing on the alleged violation shall proceed. (b) If the defendant is found mentally incompetent, the trial, judgment, or hearing on the alleged violation shall be suspended and the court may do either of the following:(1) (A) Conduct a hearing, pursuant to Chapter 2.8A (commencing with Section 1001.35) of Title 6, and, if the court deems the defendant eligible, grant diversion pursuant to Section 1001.36 for a period not to exceed one year from the date the individual is accepted into diversion or the maximum term of imprisonment provided by law for the most serious offense charged in the misdemeanor complaint, whichever is shorter.(B) If the court opts to conduct a hearing pursuant to this paragraph, the hearing shall be held no later than 30 days after the finding of incompetence. If the hearing is delayed beyond 30 days, the court shall order the defendant to be released on their own recognizance pending the hearing.(C) If the defendant performs satisfactorily on diversion pursuant to this section, at the end of the period of diversion, the court shall dismiss the criminal charges that were the subject of the criminal proceedings at the time of the initial diversion.(D) If the court finds the defendant ineligible for diversion based on the circumstances set forth in subdivision (b) or (d) of Section 1001.36, the court may, after notice to the defendant, defense counsel, and the prosecution, hold a hearing to determine whether to do any of the following:(i) Order modification of the treatment plan in accordance with a recommendation from the treatment provider.(ii) Refer the defendant to assisted outpatient treatment pursuant to Section 5346 of the Welfare and Institutions Code. A referral to assisted outpatient treatment may only occur in a county where services are available pursuant to Section 5348 of the Welfare and Institutions Code, and the agency agrees to accept responsibility for treatment of the defendant. A hearing to determine eligibility for assisted outpatient treatment shall be held within 45 days after the date of the referral. If the hearing is delayed beyond 45 days, the court shall order the defendant, if confined in county jail, to be released on their own recognizance pending that hearing. If the defendant is accepted into assisted outpatient treatment, the charges shall be dismissed pursuant to Section 1385.(iii) Refer the defendant to the county conservatorship investigator in the county of commitment for possible 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. A defendant shall only be referred to the conservatorship investigator if, based on the opinion of a qualified mental health expert, the defendant appears to be gravely disabled, as defined in subparagraph (A) of paragraph (1) of subdivision (h) of Section 5008 of the Welfare and Institution Code. Any hearings required in the conservatorship proceedings shall be held in the superior court in the county of commitment. The court shall transmit a copy of the order directing initiation of conservatorship proceedings to the county mental health director or the director’s designee and shall notify the county mental health director or their designee of the outcome of the proceedings. Before establishing a conservatorship, the public guardian shall investigate all available alternatives to conservatorship pursuant to Section 5354 of the Welfare and Institutions Code. If a petition is not filed within 60 days of the referral, the court shall order the defendant, if confined in county jail, to be released on their own recognizance pending conservatorship proceedings. If the outcome of the conservatorship proceedings results in the establishment of conservatorship, the charges shall be dismissed pursuant to Section 1385.(2) Dismiss the charges pursuant to Section 1385. If the criminal action is dismissed, the court shall transmit a copy of the order of dismissal to the county mental health director or the director’s designee.(c) If the defendant is found mentally incompetent and is on a grant of probation for a misdemeanor offense, the court shall dismiss the pending revocation matter and may return the defendant to supervision. If the revocation matter is dismissed pursuant to this subdivision, the court may modify the terms and conditions of supervision to include appropriate mental health treatment.(d) It is the intent of the Legislature that a defendant subject to the terms of this section receive mental health treatment in a treatment facility and not a jail. A term of four days will be deemed to have been served for every two days spent in actual custody against the maximum term of diversion. A defendant not in actual custody shall otherwise receive day for day credit against the term of diversion from the date the defendant is accepted into diversion. “Actual custody” has the same meaning as in Section 4019.(e) This section shall apply only as provided in subdivision (b) of Section 1367.(Repealed and added by Stats. 2021, Ch. 599, Sec. 2. (SB 317) Effective January 1, 2022.)