Amended  IN  Senate  April 18, 2023

CALIFORNIA LEGISLATURE— 2023–2024 REGULAR SESSION

Senate Bill
No. 883


Introduced by Committee on Public Safety (Senators Wahab (Chair), Bradford, Ochoa Bogh, Skinner, and Wiener)

March 07, 2023


An act to amend Section 12525.5 of Sections 12525.5 and 15403 of, and to amend and renumber Section 7599 of, the Government Code, to amend Sections 192, 679.027, 745, 1004, 1203.4b, 1370, 4019, 13777, 29805, and 30400 of the Penal Code, to amend Section 12801.9 of the Vehicle Code, and to amend Sections 727.13 604, 727.13, and 4336 of the Welfare and Institutions Code, relating to public safety.


LEGISLATIVE COUNSEL'S DIGEST


SB 883, as amended, Committee on Public Safety. Public Safety Omnibus.
(1) Existing law requires all law enforcement agencies, as described, to annually report specified information to the Attorney General regarding pedestrian, traffic, or other stops made, including if an arrest was made and the offense for which the person was charged.
This bill would instead require the offense for which the person was cited or booked.
By increasing duties on local agencies, this bill would impose a state-mandated local program.
(2) Existing law requires the State Public Defender to undertake a study to assess appropriate workloads for public defenders and indigent defense attorneys and submit a report with their findings and recommendations to the Legislature no later than January 1, 2024.
This bill would instead make that report due January 1, 2025.

(2)

(3) Existing law prohibits the crime of vehicular manslaughter, as defined. Existing law defines “gross negligence” for purposes of these provisions to include an exhibition of speed or participation in a sideshow, as defined.
This bill would remove exhibition of speed from this definition and add engaging in a motor vehicle speed contest, as defined.
By changing the definition of a crime, this bill would impose a state-mandated local program.

(3)

(4) Existing law requires law enforcement agencies to provide victims with specified information about victim’s rights and resources.
This bill would fix an erroneous cross-reference in these provisions.

(4)

(5) Existing law prohibits the state from seeking a criminal conviction or sentence on the basis of race, ethnicity, or national origin, as specified.
This bill would fix an erroneous cross-reference in these provisions.
(6) Existing law authorizes a defendant to demur on the accusatory pleading at any time prior to the entry of a plea, when, among other things, it appears on the face of the pleading that the facts stated do not constitute a public offense or the pleading contains matter which, if true, would constitute a legal justification or excuse of the offense charged, or other legal bar to the prosecution.
This bill would additionally authorize a defendant to demur if the statutory provision alleged in the accusatory pleading is constitutionally invalid.

(5)

(7) Under existing law, an incarcerated person who successfully participates as an incarcerated hand crew member in the California Conservation Camp program or in a county incarcerated hand crew, or participates at a Department of Corrections and Rehabilitation institutional firehouse is, upon release, eligible for record expungement, as specified.
This bill would specify that participation in an institutional firehouse must also be successful, as specified, to be qualifying. The bill would make other nonsubstantive clarifying changes to this provision.

(6)

(8) Existing law prohibits a person from being tried for a criminal offense while they are mentally incompetent. Existing law prescribes the procedure for a person found to be mentally incompetent to be restored to competence.
This bill would correct erroneous cross-references in these provisions and make other technical corrections.
(9) Existing law requires the Attorney General to annually collect information relating to anti-reproductive-rights crimes from local district attorneys and elected city attorneys.
This bill would require that information to be collected monthly. By requiring data collection from local district attorneys and elected city attorneys, the bill would impose a state-mandated local program.

(7)

(10) Existing law prohibits a person convicted of specified misdemeanors within the previous 10 years from possessing a firearm, as specified.
This bill would remove an erroneous cross-reference to a felony offense in that provision.

(8)

(11) Existing law prohibits the purchase or sale of a firearm precursor part, as specified.
This bill would make a technical, nonsubstantive change to those provisions.

(9)

(12) Existing law authorizes the Department of Motor Vehicles to issue a driver’s license to a person who is unable to submit satisfactory proof that the applicant’s presence in the United States is authorized under federal law, as specified.
This bill would correct an erroneous cross-reference in those provisions.
(13) Existing law establishes the jurisdiction of the juvenile court over minors who are between 12 and 17 years of age, inclusive.
This bill would, for a person whose case has been certified to a juvenile court and who is granted a record sealing in juvenile court, require all criminal court records associated with that record to also be sealed.

(10)

(14) Existing law prescribes the procedure for the voluntary admission into a psychiatric residential treatment facility for a minor or nonminor dependent ward of the court.
This bill would make a nonsubstantive technical correction to those provisions.

(11)

(15) Existing law requires each county that has received funds from the Mental Health Services Fund to submit an annual report detailing the use of those funds to the State Department of State Hospitals, as specified.
This bill would instead require each county that has received funds from the Mental Health Diversion Fund to submit an annual report detailing the use of those funds to the State Department of State Hospitals, as specified.

(12)

(16) The California Constitution requires the state to reimburse local agencies and school districts for certain costs mandated by the state. Statutory provisions establish procedures for making that reimbursement.
This bill would provide that with regard to certain mandates no reimbursement is required by this act for a specified reason.
With regard to any other mandates, this bill would provide that, if the Commission on State Mandates determines that the bill contains costs so mandated by the state, reimbursement for those costs shall be made pursuant to the statutory provisions noted above.

(13)

(17) This bill would provide that any act enacted by the Legislature during the 2023 calendar year, as specified, that amends, amends and renumbers, adds, repeals and adds, or repeals a section that is amended, amended and renumbered, added, repealed and added, or repealed by this act, shall prevail over this act, whether the act is enacted before, or subsequent to, the enactment of this act.
Vote: MAJORITY   Appropriation: NO   Fiscal Committee: YES   Local Program: YES  

The people of the State of California do enact as follows:


SECTION 1.

 Section 7599 of the Government Code, as added by Section 1 of Chapter 861 of the Statutes of 2014, is amended and renumbered to read:

7599.7598.5.
 (a) For the purposes of this section, the following definitions shall apply:
(1) “Electronically stored information” means data that is created, altered, communicated, and stored in digital form.
(2) “Metadata” means data bearing the record of and not the content of communication, including, but not limited to, the time, date, location, duration, origin, or subject of the communication, and the identity of the person, persons, group, or entity sending or receiving the message.
(b) The state shall not provide material support, participation, or assistance in response to a request from a federal agency or an employee of a federal agency to collect the electronically stored information or metadata of any person if the state has actual knowledge that the request constitutes an illegal or unconstitutional collection of electronically stored information or metadata.

SECTION 1.SEC. 2.

 Section 12525.5 of the Government Code, as added by Section 2 of Chapter 805 of the Statutes of 2022, is amended to read:

12525.5.
 (a) (1) Each state and local agency that employs peace officers shall annually report to the Attorney General data on all stops conducted by that agency’s peace officers for the preceding calendar year.
(2) Each agency that employs 1,000 or more peace officers shall begin collecting data on or before July 1, 2018, and shall issue its first round of reports on or before April 1, 2019. Each agency that employs 667 or more but less than 1,000 peace officers shall begin collecting data on or before January 1, 2019, and shall issue its first round of reports on or before April 1, 2020. Each agency that employs 334 or more but less than 667 peace officers shall begin collecting data on or before January 1, 2021, and shall issue its first round of reports on or before April 1, 2022. Each agency that employs 1 or more but less than 334 peace officers shall begin collecting data on or before January 1, 2022, and shall issue its first round of reports on or before April 1, 2023.
(b) The reporting shall include, at a minimum, the following information for each pedestrian, traffic, or any other type of stop:
(1) The time, date, and location of the stop.
(2) The reason for the stop.
(3) The reason given to the person stopped at the time of the stop.
(4) The result of the stop, such as, no action, warning, citation, property seizure, or arrest.
(5) If a warning or citation was issued, the warning provided or violation cited.
(6) If an arrest was made, the offense for which the person was cited or booked.
(7) The perceived race or ethnicity, gender, and approximate age of the person stopped, provided that the identification of these characteristics shall be based on the observation and perception of the peace officer making the stop, and the information shall not be requested from the person stopped. For motor vehicle stops, this paragraph only applies to the driver, unless any actions specified under paragraph (8) apply in relation to a passenger, in which case the characteristics specified in this paragraph shall also be reported for that passenger.
(8) Actions taken by the peace officer during the stop, including, but not limited to, the following:
(A) Whether the peace officer asked for consent to search the person, and, if so, whether consent was provided.
(B) Whether the peace officer searched the person or any property, and, if so, the basis for the search and the type of contraband or evidence discovered, if any.
(C) Whether the peace officer seized any property and, if so, the type of property that was seized and the basis for seizing the property.
(c) If more than one peace officer performs a stop, only one officer is required to collect and report to the officer’s agency the information specified under subdivision (b).
(d) State and local law enforcement agencies shall not report the name, address, social security number, or other unique personal identifying information of persons stopped, searched, or subjected to a property seizure, for purposes of this section. Notwithstanding any other law, the data reported shall be available to the public, except for the badge number or other unique identifying information of the peace officer involved. Law enforcement agencies are solely responsible for ensuring that personally identifiable information of the individual stopped or any other information that is exempt from disclosure pursuant to this section is not transmitted to the Attorney General in an open text field.
(e) Not later than January 1, 2018, the Attorney General, in consultation with stakeholders, including the Racial and Identity Profiling Advisory Board (RIPA) established pursuant to paragraph (1) of subdivision (j) of Section 13519.4 of the Penal Code, federal, state, and local law enforcement agencies and community, professional, academic, research, and civil and human rights organizations, shall issue regulations for the collection and reporting of data required under subdivision (b). The regulations shall specify all data to be reported, and provide standards, definitions, and technical specifications to ensure uniform reporting practices across all reporting agencies. To the best extent possible, the regulations should be compatible with any similar federal data collection or reporting program.
(f) All data and reports made pursuant to this section are public records within the meaning of Section 7920.530 and are open to public inspection pursuant to Sections 7922.500 to 7922.545, inclusive, 7923.000, and 7923.005.
(g) (1) For purposes of this section, “peace officer,” as defined in Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2 of the Penal Code, is limited to members of the California Highway Patrol, a city or county law enforcement agency, and California state or university educational institutions. “Peace officer,” as used in this section, does not include probation officers and officers in a custodial setting.
(2) For purposes of this section, “stop” means any detention by a peace officer of a person, or any peace officer interaction with a person in which the peace officer conducts a search, including a consensual search, of the person’s body or property in the person’s possession or control.
(h) This section shall become operative on January 1, 2024.

SEC. 3.

 Section 15403 of the Government Code is amended to read:

15403.
 (a) Subject to an appropriation of funds by the Legislature in the annual Budget Act or other measure made for purposes of this section, the State Public Defender, in consultation with the California Public Defenders Association and other subject matter experts, shall undertake a study to assess appropriate workloads for public defenders and indigent defense attorneys and shall submit a report with their findings and recommendations to the Legislature no later than January 1, 2024. 2025.
(b) (1) A report to be submitted pursuant to subdivision (a) shall be submitted in compliance with Section 9795 of the Government Code.
(2) Pursuant to Section 10231.5 of the Government Code, this section is repealed on January 1, 2028. 2029.

SEC. 2.SEC. 4.

 Section 192 of the Penal Code is amended to read:

192.
 Manslaughter is the unlawful killing of a human being without malice. It is of three kinds:
(a) Voluntary—upon a sudden quarrel or heat of passion.
(b) Involuntary—in the commission of an unlawful act, not amounting to a felony; or in the commission of a lawful act which might produce death, in an unlawful manner, or without due caution and circumspection. This subdivision shall not apply to acts committed in the driving of a vehicle.
(c) Vehicular—
(1) Except as provided in subdivision (a) of Section 191.5, driving a vehicle in the commission of an unlawful act, not amounting to a felony, and with gross negligence; or driving a vehicle in the commission of a lawful act which might produce death, in an unlawful manner, and with gross negligence.
(2) Driving a vehicle in the commission of an unlawful act, not amounting to a felony, but without gross negligence; or driving a vehicle in the commission of a lawful act which might produce death, in an unlawful manner, but without gross negligence.
(3) Driving a vehicle in connection with a violation of paragraph (3) of subdivision (a) of Section 550, where the vehicular collision or vehicular accident was knowingly caused for financial gain and proximately resulted in the death of any person. This paragraph does not prevent prosecution of a defendant for the crime of murder.
(d) This section shall not be construed as making any homicide in the driving of a vehicle punishable that is not a proximate result of the commission of an unlawful act, not amounting to a felony, or of the commission of a lawful act which might produce death, in an unlawful manner.
(e) (1) “Gross negligence,” as used in this section, does not prohibit or preclude a charge of murder under Section 188 upon facts exhibiting wantonness and a conscious disregard for life to support a finding of implied malice, or upon facts showing malice, consistent with the holding of the California Supreme Court in People v. Watson (1981) 30 Cal.3d 290.
(2) “Gross negligence,” as used in this section, may include, based on the totality of the circumstances, any of the following:
(A) Participating in a sideshow pursuant to subparagraph (A) of subparagraph (2) of subdivision (i) of Section 23109 of the Vehicle Code.
(B) Engaging in a motor vehicle speed contest pursuant to subdivision (a) of Section 23109 of the Vehicle Code.
(C) Speeding over 100 miles per hour.
(f) (1) For purposes of determining sudden quarrel or heat of passion pursuant to subdivision (a), the provocation was not objectively reasonable if it resulted from the discovery of, knowledge about, or potential disclosure of the victim’s actual or perceived gender, gender identity, gender expression, or sexual orientation, including under circumstances in which the victim made an unwanted nonforcible romantic or sexual advance towards the defendant, or if the defendant and victim dated or had a romantic or sexual relationship. Nothing in this section shall preclude the jury from considering all relevant facts to determine whether the defendant was in fact provoked for purposes of establishing subjective provocation.
(2) For purposes of this subdivision, “gender” includes a person’s gender identity and gender-related appearance and behavior regardless of whether that appearance or behavior is associated with the person’s gender as determined at birth.

SEC. 3.SEC. 5.

 Section 679.027 of the Penal Code is amended to read:

679.027.
 (a) Every law enforcement agency investigating a criminal act and every agency prosecuting a criminal act shall, as provided herein, at the time of initial contact with a crime victim, during followup investigation, or as soon thereafter as deemed appropriate by investigating officers or prosecuting attorneys, inform each victim, or the victim’s next of kin if the victim is deceased, of the rights they may have under applicable law relating to the victimization, including rights relating to housing, employment, compensation, and immigration relief.
(b) (1)    Every law enforcement agency investigating a criminal act and every agency prosecuting a criminal act shall, as provided herein, at the time of initial contact with a crime victim, during followup investigation, or as soon thereafter as deemed appropriate by investigating officers or prosecuting attorneys, provide or make available to each victim of the criminal act without charge or cost a “Victim Protections and Resources” card described in paragraph (3).
(2) The Victim Protections and Resources card may be designed as part of and included with the “Marsy Rights” card described by Section 679.026.
(3) By June 1, 2025, the Attorney General shall design and make available in PDF or other imaging format to every agency listed in paragraph (1) a “Victim Protections and Resources” card, which shall contain information in lay terms about victim rights and resources, including, but not limited to, the following:
(A) Information about the rights provided by Sections 230 and 230.1 of the Labor Code.
(B) Information about the rights provided by Section 1946.7 of the Civil Code.
(C) Information about the rights provided by Section 1161.3 of the Code of Civil Procedure, including information in lay terms about which crimes and tenants are eligible and under what circumstances.
(D) Information about federal immigration relief available to certain victims of crime.
(E) Information about the program established by Chapter 5 (commencing with Section 13950) of Part 4 of Division 3 of Title 2 of the Government Code, including information about the types of expenses the program may reimburse, eligibility, and how to apply.
(F) Information about the program established by Chapter 3.1 (commencing with Section 6205) of Division 7 of Title 1 of the Government Code.
(G) Information about eligibility for filing a restraining or protective order.
(H) Contact information for the Victims’ Legal Resource Center established by Chapter 11 (commencing with Section 13897) of Title 6 of Part 4.
(I) A list of trauma recovery centers funded by the state pursuant to Section 13963.1 of the Government Code, with their contact information, which shall be updated annually.
(c) This section shall become operative on July 1, 2024, only if General Fund moneys over the multiyear forecasts beginning in the 2024–25 fiscal year are available to support ongoing augmentations and actions, and if an appropriation is made to backfill the Restitution Fund to support the actions in this section.

SEC. 4.SEC. 6.

 Section 745 of the Penal Code is amended to read:

745.
 (a) The state shall not seek or obtain a criminal conviction or seek, obtain, or impose a sentence on the basis of race, ethnicity, or national origin. A violation is established if the defendant proves, by a preponderance of the evidence, any of the following:
(1) The judge, an attorney in the case, a law enforcement officer involved in the case, an expert witness, or juror exhibited bias or animus towards the defendant because of the defendant’s race, ethnicity, or national origin.
(2)  During the defendant’s trial, in court and during the proceedings, the judge, an attorney in the case, a law enforcement officer involved in the case, an expert witness, or juror, used racially discriminatory language about the defendant’s race, ethnicity, or national origin, or otherwise exhibited bias or animus towards the defendant because of the defendant’s race, ethnicity, or national origin, whether or not purposeful. This paragraph does not apply if the person speaking is relating language used by another that is relevant to the case or if the person speaking is giving a racially neutral and unbiased physical description of the suspect.
(3) The defendant was charged or convicted of a more serious offense than defendants of other races, ethnicities, or national origins who have engaged in similar conduct and are similarly situated, and the evidence establishes that the prosecution more frequently sought or obtained convictions for more serious offenses against people who share the defendant’s race, ethnicity, or national origin in the county where the convictions were sought or obtained.
(4) (A) A longer or more severe sentence was imposed on the defendant than was imposed on other similarly situated individuals convicted of the same offense, and longer or more severe sentences were more frequently imposed for that offense on people that share the defendant’s race, ethnicity, or national origin than on defendants of other races, ethnicities, or national origins in the county where the sentence was imposed.
(B) A longer or more severe sentence was imposed on the defendant than was imposed on other similarly situated individuals convicted of the same offense, and longer or more severe sentences were more frequently imposed for the same offense on defendants in cases with victims of one race, ethnicity, or national origin than in cases with victims of other races, ethnicities, or national origins, in the county where the sentence was imposed.
(b) A defendant may file a motion in the trial court or, if judgment has been imposed, may file a petition for writ of habeas corpus or a motion under Section 1473.7 in a court of competent jurisdiction, alleging a violation of subdivision (a). If the motion is based in whole or in part on conduct or statements by the judge, the judge shall disqualify themselves from any further proceedings under this section.
(c) If a motion is filed in the trial court and the defendant makes a prima facie showing of a violation of subdivision (a), the trial court shall hold a hearing. A motion made at trial shall be made as soon as practicable upon the defendant learning of the alleged violation. A motion that is not timely may be deemed waived, in the discretion of the court.
(1) At the hearing, evidence may be presented by either party, including, but not limited to, statistical evidence, aggregate data, expert testimony, and the sworn testimony of witnesses. The court may also appoint an independent expert. For the purpose of a motion and hearing under this section, out-of-court statements that the court finds trustworthy and reliable, statistical evidence, and aggregated data are admissible for the limited purpose of determining whether a violation of subdivision (a) has occurred.
(2) The defendant shall have the burden of proving a violation of subdivision (a) by a preponderance of the evidence. The defendant does not need to prove intentional discrimination.
(3) At the conclusion of the hearing, the court shall make findings on the record.
(d) A defendant may file a motion requesting disclosure to the defense of all evidence relevant to a potential violation of subdivision (a) in the possession or control of the state. A motion filed under this section shall describe the type of records or information the defendant seeks. Upon a showing of good cause, the court shall order the records to be released. Upon a showing of good cause, and in order to protect a privacy right or privilege, the court may permit the prosecution to redact information prior to disclosure or may subject disclosure to a protective order. If a statutory privilege or constitutional privacy right cannot be adequately protected by redaction or a protective order, the court shall not order the release of the records.
(e) Notwithstanding any other law, except as provided in subdivision (k), or for an initiative approved by the voters, if the court finds, by a preponderance of evidence, a violation of subdivision (a), the court shall impose a remedy specific to the violation found from the following list:
(1) Before a judgment has been entered, the court may impose any of the following remedies:
(A) Declare a mistrial, if requested by the defendant.
(B) Discharge the jury panel and empanel a new jury.
(C) If the court determines that it would be in the interest of justice, dismiss enhancements, special circumstances, or special allegations, or reduce one or more charges.
(2) (A) After a judgment has been entered, if the court finds that a conviction was sought or obtained in violation of subdivision (a), the court shall vacate the conviction and sentence, find that it is legally invalid, and order new proceedings consistent with subdivision (a). If the court finds that the only violation of subdivision (a) that occurred is based on paragraph (3) of subdivision (a), the court may modify the judgment to a lesser included or lesser related offense. On resentencing, the court shall not impose a new sentence greater than that previously imposed.
(B) After a judgment has been entered, if the court finds that only the sentence was sought, obtained, or imposed in violation of subdivision (a), the court shall vacate the sentence, find that it is legally invalid, and impose a new sentence. On resentencing, the court shall not impose a new sentence greater than that previously imposed.
(3) When the court finds there has been a violation of subdivision (a), the defendant shall not be eligible for the death penalty.
(4) The remedies available under this section do not foreclose any other remedies available under the United States Constitution, the California Constitution, or any other law.
(f) This section also applies to adjudications and dispositions in the juvenile delinquency system and adjudications to transfer a juvenile case to adult court.
(g) This section shall not prevent the prosecution of hate crimes pursuant to Sections 422.6 to 422.865, inclusive.
(h) As used in this section, the following definitions apply:
(1) “More frequently sought or obtained” or “more frequently imposed” means that the totality of the evidence demonstrates a significant difference in seeking or obtaining convictions or in imposing sentences comparing individuals who have engaged in similar conduct and are similarly situated, and the prosecution cannot establish race-neutral reasons for the disparity. The evidence may include statistical evidence, aggregate data, or nonstatistical evidence. Statistical significance is a factor the court may consider, but is not necessary to establish a significant difference. In evaluating the totality of the evidence, the court shall consider whether systemic and institutional racial bias, racial profiling, and historical patterns of racially biased policing and prosecution may have contributed to, or caused differences observed in, the data or impacted the availability of data overall. Race-neutral reasons shall be relevant factors to charges, convictions, and sentences that are not influenced by implicit, systemic, or institutional bias based on race, ethnicity, or national origin.
(2) “Prima facie showing” means that the defendant produces facts that, if true, establish that there is a substantial likelihood that a violation of subdivision (a) occurred. For purposes of this section, a “substantial likelihood” requires more than a mere possibility, but less than a standard of more likely than not.
(3) “Relevant factors,” as that phrase applies to sentencing, means the factors in the California Rules of Court that pertain to sentencing decisions and any additional factors required to or permitted to be considered in sentencing under state law and under the state and federal constitutions.
(4) “Racially discriminatory language” means language that, to an objective observer, explicitly or implicitly appeals to racial bias, including, but not limited to, racially charged or racially coded language, language that compares the defendant to an animal, or language that references the defendant’s physical appearance, culture, ethnicity, or national origin. Evidence that particular words or images are used exclusively or disproportionately in cases where the defendant is of a specific race, ethnicity, or national origin is relevant to determining whether language is discriminatory.
(5) “State” includes the Attorney General, a district attorney, or a city prosecutor.
(6) “Similarly situated” means that factors that are relevant in charging and sentencing are similar and do not require that all individuals in the comparison group are identical. A defendant’s conviction history may be a relevant factor to the severity of the charges, convictions, or sentences. If it is a relevant factor and the defense produces evidence that the conviction history may have been impacted by racial profiling or historical patterns of racially biased policing, the court shall consider the evidence.
(i) A defendant may share a race, ethnicity, or national origin with more than one group. A defendant may aggregate data among groups to demonstrate a violation of subdivision (a).
(j) This section applies as follows:
(1) To all cases in which judgment is not final.
(2) Commencing January 1, 2023, to all cases in which, at the time of the filing of a petition pursuant to subdivision (f) of Section 1473 raising a claim under this section, the petitioner is sentenced to death or to cases in which the motion is filed pursuant to Section 1473.7 because of actual or potential immigration consequences related to the conviction or sentence, regardless of when the judgment or disposition became final.
(3) Commencing January 1, 2024, to all cases in which, at the time of the filing of a petition pursuant to subdivision (f) of Section 1473 raising a claim under this section, the petitioner is currently serving a sentence in the state prison or in a county jail pursuant to subdivision (h) of Section 1170, or committed to the Division of Juvenile Justice for a juvenile disposition, regardless of when the judgment or disposition became final.
(4) Commencing January 1, 2025, to all cases filed pursuant to Section 1473.7 or subdivision (f) of Section 1473 in which judgment became final for a felony conviction or juvenile disposition that resulted in a commitment to the Division of Juvenile Justice on or after January 1, 2015.
(5) Commencing January 1, 2026, to all cases filed pursuant to Section 1473.7 or subdivision (f) of Section 1473 in which judgment was for a felony conviction or juvenile disposition that resulted in a commitment to the Division of Juvenile Justice, regardless of when the judgment or disposition became final.
(k) For petitions that are filed in cases for which judgment was entered before January 1, 2021, and only in those cases, if the petition is based on a violation of paragraph (1) or (2) of subdivision (a), the petitioner shall be entitled to relief as provided in subdivision (e), unless the state proves beyond a reasonable doubt that the violation did not contribute to the judgment.

SEC. 7.

 Section 1004 of the Penal Code is amended to read:

1004.
 The defendant may demur to the accusatory pleading at any time prior to the entry of a plea, when it appears upon the face thereof either:

1.

(a) If an indictment, that the grand jury by which it was found had no legal authority to inquire into the offense charged, or, if any information or complaint that the court has no jurisdiction of the offense charged therein; therein.

2.

(b) That it does not substantially conform to the provisions of Sections 950 and 952, and also Section 951 in case of an indictment or information; information.

3.

(c) That more than one offense is charged, except as provided in Section 954; 954.

4.

(d) That the facts stated do not constitute a public offense; offense.

5.

(e) That it contains matter which, if true, would constitute a legal justification or excuse of the offense charged, or other legal bar to the prosecution.
(f) That the statutory provision alleged in the accusatory pleading is constitutionally invalid.

SEC. 5.SEC. 8.

 Section 1203.4b of the Penal Code is amended to read:

1203.4b.
 (a) (1) If a defendant successfully participated in the California Conservation Camp program as an incarcerated individual hand crew member, as determined by the Secretary of the Department of Corrections and Rehabilitation, or successfully participated as a member of a county incarcerated individual hand crew, as determined by the appropriate county authority, or successfully participated at an institutional firehouse, as determined by the Secretary of the Department of Corrections and Rehabilitation, and has been released from custody, the defendant is eligible for relief pursuant to this section, except that incarcerated individuals who have been convicted of any of the following crimes are automatically ineligible for relief pursuant to this section:
(A) Murder.
(B) Kidnapping.
(C) Rape as defined in paragraph (2) or (6) of subdivision (a) of Section 261 or paragraph (1) or (4) of subdivision (a) of Section 262.
(D) Lewd acts on a child under 14 years of age, as defined in Section 288.
(E) Any felony punishable by death or imprisonment in the state prison for life.
(F) Any sex offense requiring registration pursuant to Section 290.
(G) Escape from a secure perimeter within the previous 10 years.
(H) Arson.
(2) Any denial of relief pursuant to this section shall be without prejudice.
(3) For purposes of this subdivision, successful participation in a conservation camp program or a program at an institutional firehouse and successful participation as a member of a county incarcerated individual hand crew, as determined by the appropriate county authority, means the incarcerated individual adequately performed their duties without any conduct that warranted removal from the program.
(b) (1) The defendant may file a petition for relief with the court in the county where the defendant was sentenced. The court shall provide a copy of the petition to the secretary, or, in the case of a county incarcerated individual hand crew member, the appropriate county authority.
(2) If the secretary or appropriate county authority certifies to the court that the defendant successfully participated in the incarcerated individual conservation camp program, or institutional firehouse, or successfully participated as a member of a county incarcerated individual hand crew, as determined by the appropriate county authority, as specified in subdivision (a), and has been released from custody, the court, in its discretion and in the interests of justice, may issue an order pursuant to subdivision (c).
(3) To be eligible for relief pursuant to this section, the defendant is not required to complete the term of their probation, parole, or supervised release. Notwithstanding any other law, the court, in providing relief pursuant to this section, shall order early termination of probation, parole, or supervised release if the court determines that the defendant has not violated any terms or conditions of probation, parole, or supervised release prior to, and during the pendency of, the petition for relief pursuant to this section.
(4) All convictions for which the defendant is serving a sentence at the time the defendant successfully participates in a program as specified in subdivision (a) are subject to relief pursuant to this section, except that a defendant convicted of any offense listed in subparagraphs (A) to (H), inclusive, of paragraph (1) of subdivision (a) is ineligible for relief pursuant to this section.
(5) (A) A defendant who is granted an order pursuant to this section shall not be required to disclose the conviction on an application for licensure by any state or local agency.
(B) This paragraph does not apply to an application for licensure by the Commission on Teacher Credentialing, a position as a peace officer, public office, or for contracting with the California State Lottery Commission.
(c) (1) If the requirements of this section are met, the court, in its discretion and in the interest of justice, may permit the defendant to withdraw the plea of guilty or plea of nolo contendere and enter a plea of not guilty, or, if the defendant has been convicted after a plea of not guilty, the court shall set aside the verdict of guilty, and, in either case, the court shall thereupon dismiss the accusations or information against the defendant and the defendant shall thereafter be released from all penalties and disabilities resulting from the offense of which the defendant has been convicted, except as provided in Section 13555 of the Vehicle Code.
(2) The relief available pursuant to this section shall not be granted if the defendant is currently charged with the commission of any other offense.
(3) The defendant may make the application and change of plea in person or by attorney.
(d) Relief granted pursuant to this section is subject to the following conditions:
(1) In any subsequent prosecution of the defendant for any other offense, the prior conviction may be pleaded and proved and shall have the same effect as if the accusation or information had not been dismissed.
(2) The order shall state, and the defendant shall be informed, that the order does not relieve the defendant of the obligation to disclose the conviction in response to any direct question contained in any questionnaire or application for licensure by the Commission on Teacher Credentialing, a peace officer, public office, or for contracting with the California State Lottery Commission.
(3) Dismissal of an accusation or information pursuant to this section does not permit a person to own, possess, or have in the person’s custody or control any firearm or prevent their conviction under Chapter 2 (commencing with Section 29800) of Division 9 of Title 4 of Part 6.
(4) Dismissal of an accusation or information underlying a conviction pursuant to this section does not permit a person prohibited from holding public office as a result of that conviction to hold public office.
(5) Dismissal of an accusation or information pursuant to this section does not release the defendant from the terms and conditions of any unexpired criminal protective order that has been issued by the court pursuant to paragraph (1) of subdivision (i) of Section 136.2, subdivision (j) of Section 273.5, subdivision (l) of Section 368, or subdivision (k) of Section 646.9. These protective orders shall remain in full effect until expiration or until any further order by the court modifying or terminating the order, despite the dismissal of the underlying accusation or information.
(e) (1) Relief shall not be granted under this section unless the prosecuting attorney has been given 15 days’ notice of the petition for relief.
(2) It shall be presumed that the prosecuting attorney has received notice if proof of service is filed with the court.
(f) If, after receiving notice pursuant to subdivision (e), the prosecuting attorney fails to appear and object to a petition for dismissal, the prosecuting attorney may not move to set aside or otherwise appeal the grant of that petition.

SEC. 6.SEC. 9.

 Section 1370 of the Penal Code is amended to read:

1370.
 (a) (1) (A) If the defendant is found mentally competent, the criminal process shall resume, the trial on the offense charged or hearing on the alleged violation shall proceed, and judgment may be pronounced.
(B) If the defendant is found mentally incompetent, the trial, the hearing on the alleged violation, or the judgment shall be suspended until the person becomes mentally competent.
(i) The court shall order that the mentally incompetent defendant be delivered by the sheriff to a State Department of State Hospitals facility, as defined in Section 4100 of the Welfare and Institutions Code, as directed by the State Department of State Hospitals, or to any other available public or private treatment facility, including a community-based residential treatment system approved by the community program director, or their designee, that will promote the defendant’s speedy restoration to mental competence, or placed on outpatient status as specified in Section 1600.
(ii) However, if the action against the defendant who has been found mentally incompetent is on a complaint charging a felony offense specified in Section 290, the prosecutor shall determine whether the defendant previously has been found mentally incompetent to stand trial pursuant to this chapter on a charge of a Section 290 offense, or whether the defendant is currently the subject of a pending Section 1368 proceeding arising out of a charge of a Section 290 offense. If either determination is made, the prosecutor shall notify the court and defendant in writing. After this notification, and opportunity for hearing, the court shall order that the defendant be delivered by the sheriff to a State Department of State Hospitals facility, as directed by the State Department of State Hospitals, or other secure treatment facility for the care and treatment of persons with a mental health disorder, unless the court makes specific findings on the record that an alternative placement would provide more appropriate treatment for the defendant and would not pose a danger to the health and safety of others.
(iii) If the action against the defendant who has been found mentally incompetent is on a complaint charging a felony offense specified in Section 290 and the defendant has been denied bail pursuant to subdivision (b) of Section 12 of Article I of the California Constitution because the court has found, based upon clear and convincing evidence, a substantial likelihood that the person’s release would result in great bodily harm to others, the court shall order that the defendant be delivered by the sheriff to a State Department of State Hospitals facility, as directed by the State Department of State Hospitals, unless the court makes specific findings on the record that an alternative placement would provide more appropriate treatment for the defendant and would not pose a danger to the health and safety of others.
(iv)  (I) If, at any time after the court finds that the defendant is mentally incompetent and before the defendant is transported to a facility pursuant to this section, the court is provided with any information that the defendant may benefit from diversion pursuant to Chapter 2.8A (commencing with Section 1001.35) of Title 6, the court may make a finding that the defendant is an appropriate candidate for diversion.
(II) Notwithstanding subclause (I), if a defendant is found mentally incompetent and is transferred to a facility described in Section 4361.6 of the Welfare and Institutions Code, the court may, at any time upon receiving any information that the defendant may benefit from diversion pursuant to Chapter 2.8A (commencing with Section 1001.35) of Title 6, make a finding that the defendant is an appropriate candidate for diversion.
(v) If a defendant is found by the court to be an appropriate candidate for diversion pursuant to clause (iv), the defendant’s eligibility shall be determined pursuant to Section 1001.36. A defendant granted diversion may participate for the lesser of the period specified in paragraph (1) of subdivision (c) or two years. If, during that period, the court determines that criminal proceedings should be reinstated pursuant to subdivision (d) of Section 1001.36, the court shall, pursuant to Section 1369, appoint a psychiatrist, licensed psychologist, or any other expert the court may deem appropriate, to determine the defendant’s competence to stand trial.
(vi) Upon the dismissal of charges at the conclusion of the period of diversion, pursuant to subdivision (e) of Section 1001.36, a defendant shall no longer be deemed incompetent to stand trial pursuant to this section.
(vii) The clerk of the court shall notify the Department of Justice, in writing, of a finding of mental incompetence with respect to a defendant who is subject to clause (ii) or (iii) for inclusion in the defendant’s state summary criminal history information.
(C) Upon the filing of a certificate of restoration to competence, the court shall order that the defendant be returned to court in accordance with Section 1372. The court shall transmit a copy of its order to the community program director or a designee.
(D) A defendant charged with a violent felony may not be delivered to a State Department of State Hospitals facility or treatment facility pursuant to this subdivision unless the State Department of State Hospitals facility or treatment facility has a secured perimeter or a locked and controlled treatment facility, and the judge determines that the public safety will be protected.
(E) For purposes of this paragraph, “violent felony” means an offense specified in subdivision (c) of Section 667.5.
(F) A defendant charged with a violent felony may be placed on outpatient status, as specified in Section 1600, only if the court finds that the placement will not pose a danger to the health or safety of others. If the court places a defendant charged with a violent felony on outpatient status, as specified in Section 1600, the court shall serve copies of the placement order on defense counsel, the sheriff in the county where the defendant will be placed, and the district attorney for the county in which the violent felony charges are pending against the defendant.
(G) If, at any time after the court has declared a defendant incompetent to stand trial pursuant to this section, counsel for the defendant or a jail medical or mental health staff provider provides the court with substantial evidence that the defendant’s psychiatric symptoms have changed to such a degree as to create a doubt in the mind of the judge as to the defendant’s current mental incompetence, the court may appoint a psychiatrist or a licensed psychologist to opine as to whether the defendant has regained competence. If, in the opinion of that expert, the defendant has regained competence, the court shall proceed as if a certificate of restoration of competence has been returned pursuant to paragraph (1) of subdivision (a) of Section 1372.
(H) (i) The State Department of State Hospitals may, pursuant to Section 4335.2 of the Welfare and Institutions Code, conduct an evaluation of the defendant in county custody to determine any of the following:
(I) The defendant has regained competence.
(II) There is no substantial likelihood that the defendant will regain competence in the foreseeable future.
(III) The defendant should be referred to the county for further evaluation for potential participation in a county diversion program, if one exists, or to another outpatient treatment program.
(ii) If, in the opinion of the department’s expert, the defendant has regained competence, the court shall proceed as if a certificate of restoration of competence has been returned pursuant to paragraph (1) of subdivision (a) of Section 1372.
(iii) If, in the opinion of the department’s expert, there is no substantial likelihood that the defendant will regain mental competence in the foreseeable future, the committing court shall proceed pursuant to paragraph (3) of subdivision (c) no later than 10 days following receipt of the report.
(2) Prior to making the order directing that the defendant be committed to the State Department of State Hospitals or other treatment facility or placed on outpatient status, the court shall proceed as follows:
(A)  (i) The court shall order the community program director or a designee to evaluate the defendant and to submit to the court within 15 judicial days of the order a written recommendation as to whether the defendant should be required to undergo outpatient treatment, or be committed to the State Department of State Hospitals or to any other treatment facility. A person shall not be admitted to a State Department of State Hospitals facility or other treatment facility or placed on outpatient status under this section without having been evaluated by the community program director or a designee. The community program director or designee shall evaluate the appropriate placement for the defendant between a State Department of State Hospitals facility or the community-based residential treatment system based upon guidelines provided by the State Department of State Hospitals.
(ii) Commencing on July 1, 2023, a defendant shall first be considered for placement in an outpatient treatment program, a community treatment program, or a diversion program, if any such program is available, unless a court, based upon the recommendation of the community program director or their designee, finds that either the clinical needs of the defendant or the risk to community safety, warrant placement in a State Department of State Hospitals facility.
(B) The court shall hear and determine whether the defendant lacks capacity to make decisions regarding the administration of antipsychotic medication. The court shall consider opinions in the reports prepared pursuant to subdivision (a) of Section 1369, as applicable to the issue of whether the defendant lacks capacity to make decisions regarding the administration of antipsychotic medication, and shall proceed as follows:
(i) The court shall hear and determine whether any of the following is true:
(I) Based upon the opinion of the psychiatrist or licensed psychologist offered to the court pursuant to subparagraph (A) of paragraph (2) of subdivision (a) of Section 1369, the defendant lacks capacity to make decisions regarding antipsychotic medication, the defendant’s mental disorder requires medical treatment with antipsychotic medication, and, if the defendant’s mental disorder is not treated with antipsychotic medication, it is probable that serious harm to the physical or mental health of the defendant will result. Probability of serious harm to the physical or mental health of the defendant requires evidence that the defendant is presently suffering adverse effects to their physical or mental health, or the defendant has previously suffered these effects as a result of a mental disorder and their condition is substantially deteriorating. The fact that a defendant has a diagnosis of a mental disorder does not alone establish probability of serious harm to the physical or mental health of the defendant.
(II) Based upon the opinion of the psychiatrist or licensed psychologist offered to the court pursuant to subparagraph (A) of paragraph (2) of subdivision (a) of Section 1369, the defendant is a danger to others, in that the defendant has inflicted, attempted to inflict, or made a serious threat of inflicting substantial physical harm on another while in custody, or the defendant had inflicted, attempted to inflict, or made a serious threat of inflicting substantial physical harm on another that resulted in the defendant being taken into custody, and the defendant presents, as a result of mental disorder or mental defect, a demonstrated danger of inflicting substantial physical harm on others. Demonstrated danger may be based on an assessment of the defendant’s present mental condition, including a consideration of past behavior of the defendant within six years prior to the time the defendant last attempted to inflict, inflicted, or threatened to inflict substantial physical harm on another, and other relevant evidence.
(III) The people have charged the defendant with a serious crime against the person or property, and based upon the opinion of the psychiatrist offered to the court pursuant to subparagraph (C) of paragraph (2) of subdivision (a) of Section 1369, the involuntary administration of antipsychotic medication is substantially likely to render the defendant competent to stand trial, the medication is unlikely to have side effects that interfere with the defendant’s ability to understand the nature of the criminal proceedings or to assist counsel in the conduct of a defense in a reasonable manner, less intrusive treatments are unlikely to have substantially the same results, and antipsychotic medication is appropriate in light of their medical condition.
(ii) (I) If the court finds the conditions described in subclause (I) or (II) of clause (i) to be true, and if pursuant to the opinion offered to the court pursuant to paragraph (2) of subdivision (a) of Section 1369, a psychiatrist has opined that treatment with antipsychotic medications is appropriate for the defendant, the court shall issue an order authorizing the administration of antipsychotic medication as needed, including on an involuntary basis, to be administered under the direction and supervision of a licensed psychiatrist.
(II) If the court finds the conditions described in subclause (I) or (II) of clause (i) to be true, and if pursuant to the opinion offered to the court pursuant to paragraph (2) of subdivision (a) of Section 1369, a licensed psychologist has opined that treatment with antipsychotic medication may be appropriate for the defendant, the court shall issue an order authorizing treatment by a licensed psychiatrist on an involuntary basis. That treatment may include the administration of antipsychotic medication as needed, to be administered under the direction and supervision of a licensed psychiatrist.
(III) If the court finds the conditions described in subclause (III) of clause (i) to be true, and if pursuant to the opinion offered to the court pursuant to paragraph (2) of subdivision (a) of Section 1369, a psychiatrist has opined that it is appropriate to treat the defendant with antipsychotic medication, the court shall issue an order authorizing the administration of antipsychotic medication as needed, including on an involuntary basis, to be administered under the direction and supervision of a licensed psychiatrist.
(iii) An order authorizing involuntary administration of antipsychotic medication to the defendant when and as prescribed by the defendant’s treating psychiatrist at any facility housing the defendant for purposes of this chapter, including a county jail, shall remain in effect when the defendant returns to county custody pursuant to subparagraph (A) of paragraph (1) of subdivision (b) or paragraph (1) of subdivision (c), or pursuant to subparagraph (C) of paragraph (3) of subdivision (a) of Section 1372, but shall be valid for no more than one year, pursuant to subparagraph (A) of paragraph (7). The court shall not order involuntary administration of psychotropic medication under subclause (III) of clause (i) unless the court has first found that the defendant does not meet the criteria for involuntary administration of psychotropic medication under subclause (I) of clause (i) and does not meet the criteria under subclause (II) of clause (i).
(iv) In all cases, the treating hospital, county jail, facility, or program may administer medically appropriate antipsychotic medication prescribed by a psychiatrist in an emergency as described in subdivision (m) of Section 5008 of the Welfare and Institutions Code.
(v) If the court has determined that the defendant has the capacity to make decisions regarding antipsychotic medication, and if the defendant, with advice of their counsel, consents, the court order of commitment shall include confirmation that antipsychotic medication may be given to the defendant as prescribed by a treating psychiatrist pursuant to the defendant’s consent. The commitment order shall also indicate that, if the defendant withdraws consent for antipsychotic medication, after the treating psychiatrist complies with the provisions of subparagraph (C), the defendant shall be returned to court for a hearing in accordance with subparagraphs (C) and (D) regarding whether antipsychotic medication shall be administered involuntarily.
(vi) If the court has determined that the defendant has the capacity to make decisions regarding antipsychotic medication and if the defendant, with advice from their counsel, does not consent, the court order for commitment shall indicate that, after the treating psychiatrist complies with the provisions of subparagraph (C), the defendant shall be returned to court for a hearing in accordance with subparagraphs (C) and (D) regarding whether antipsychotic medication shall be administered involuntarily.
(vii) A report made pursuant to paragraph (1) of subdivision (b) shall include a description of antipsychotic medication administered to the defendant and its effects and side effects, including effects on the defendant’s appearance or behavior that would affect the defendant’s ability to understand the nature of the criminal proceedings or to assist counsel in the conduct of a defense in a reasonable manner. During the time the defendant is confined in a State Department of State Hospitals facility or other treatment facility or placed on outpatient status, either the defendant or the people may request that the court review any order made pursuant to this subdivision. The defendant, to the same extent enjoyed by other patients in the State Department of State Hospitals facility or other treatment facility, shall have the right to contact the patients’ rights advocate regarding the defendant’s rights under this section.
(C) If the defendant consented to antipsychotic medication as described in clause (iv) of subparagraph (B), but subsequently withdraws their consent, or, if involuntary antipsychotic medication was not ordered pursuant to clause (v) of subparagraph (B), and the treating psychiatrist determines that antipsychotic medication has become medically necessary and appropriate, the treating psychiatrist shall make efforts to obtain informed consent from the defendant for antipsychotic medication. If informed consent is not obtained from the defendant, and the treating psychiatrist is of the opinion that the defendant lacks capacity to make decisions regarding antipsychotic medication based on the conditions described in subclause (I) or (II) of clause (i) of subparagraph (B), the treating psychiatrist shall certify whether the lack of capacity and any applicable conditions described above exist. That certification shall contain an assessment of the current mental status of the defendant and the opinion of the treating psychiatrist that involuntary antipsychotic medication has become medically necessary and appropriate.
(D) (i) If the treating psychiatrist certifies that antipsychotic medication has become medically necessary and appropriate pursuant to subparagraph (C), antipsychotic medication may be administered to the defendant for not more than 21 days, provided, however, that, within 72 hours of the certification, the defendant is provided a medication review hearing before an administrative law judge to be conducted at the facility where the defendant is receiving treatment. The treating psychiatrist shall present the case for the certification for involuntary treatment and the defendant shall be represented by an attorney or a patients’ rights advocate. The attorney or patients’ rights advocate shall be appointed to meet with the defendant no later than one day prior to the medication review hearing to review the defendant’s rights at the medication review hearing, discuss the process, answer questions or concerns regarding involuntary medication or the hearing, assist the defendant in preparing for the hearing and advocating for the defendant’s interests at the hearing, review the panel’s final determination following the hearing, advise the defendant of their right to judicial review of the panel’s decision, and provide the defendant with referral information for legal advice on the subject. The defendant shall also have the following rights with respect to the medication review hearing:
(I) To be given timely access to the defendant’s records.
(II) To be present at the hearing, unless the defendant waives that right.
(III) To present evidence at the hearing.
(IV) To question persons presenting evidence supporting involuntary medication.
(V) To make reasonable requests for attendance of witnesses on the defendant’s behalf.
(VI) To a hearing conducted in an impartial and informal manner.
(ii) If the administrative law judge determines that the defendant either meets the criteria specified in subclause (I) of clause (i) of subparagraph (B), or meets the criteria specified in subclause (II) of clause (i) of subparagraph (B), antipsychotic medication may continue to be administered to the defendant for the 21-day certification period. Concurrently with the treating psychiatrist’s certification, the treating psychiatrist shall file a copy of the certification and a petition with the court for issuance of an order to administer antipsychotic medication beyond the 21-day certification period. For purposes of this subparagraph, the treating psychiatrist shall not be required to pay or deposit any fee for the filing of the petition or other document or paper related to the petition.
(iii) If the administrative law judge disagrees with the certification, medication may not be administered involuntarily until the court determines that antipsychotic medication should be administered pursuant to this section.
(iv) The court shall provide notice to the prosecuting attorney and to the attorney representing the defendant, and shall hold a hearing, no later than 18 days from the date of the certification, to determine whether antipsychotic medication should be ordered beyond the certification period.
(v) If, as a result of the hearing, the court determines that antipsychotic medication should be administered beyond the certification period, the court shall issue an order authorizing the administration of that medication.
(vi) The court shall render its decision on the petition and issue its order no later than three calendar days after the hearing and, in any event, no later than the expiration of the 21-day certification period.
(vii) If the administrative law judge upholds the certification pursuant to clause (ii), the court may, for a period not to exceed 14 days, extend the certification and continue the hearing pursuant to stipulation between the parties or upon a finding of good cause. In determining good cause, the court may review the petition filed with the court, the administrative law judge’s order, and any additional testimony needed by the court to determine if it is appropriate to continue medication beyond the 21-day certification and for a period of up to 14 days.
(viii) The district attorney, county counsel, or representative of a facility where a defendant found incompetent to stand trial is committed may petition the court for an order to administer involuntary medication pursuant to the criteria set forth in subclauses (II) and (III) of clause (i) of subparagraph (B). The order is reviewable as provided in paragraph (7).
(3) When the court orders that the defendant be committed to a State Department of State Hospitals facility or other public or private treatment facility, the court shall provide copies of the following documents prior to the admission of the defendant to the State Department of State Hospitals or other treatment facility where the defendant is to be committed:
(A) The commitment order, which shall include a specification of the charges, an assessment of whether involuntary treatment with antipsychotic medications is warranted, and any orders by the court, pursuant to subparagraph (B) of paragraph (2), authorizing involuntary treatment with antipsychotic medications.
(B) A computation or statement setting forth the maximum term of commitment in accordance with subdivision (c).
(C) (i) A computation or statement setting forth the amount of credit for time served, if any, to be deducted from the maximum term of commitment.
(ii) If a certificate of restoration of competency was filed with the court pursuant to Section 1372 and the court subsequently rejected the certification, a copy of the court order or minute order rejecting the certification shall be provided. The court order shall include a new computation or statement setting forth the amount of credit for time served, if any, to be deducted from the defendant’s maximum term of commitment based on the court’s rejection of the certification.
(D) State summary criminal history information.
(E) Jail classification records for the defendant’s current incarceration.
(F) Arrest reports prepared by the police department or other law enforcement agency.
(G) Court-ordered psychiatric examination or evaluation reports.
(H) The community program director’s placement recommendation report.
(I) Records of a finding of mental incompetence pursuant to this chapter arising out of a complaint charging a felony offense specified in Section 290 or a pending Section 1368 proceeding arising out of a charge of a Section 290 offense.
(J) Medical records, including jail mental health records.
(4) When the defendant is committed to a treatment facility pursuant to clause (i) of subparagraph (B) of paragraph (1) or the court makes the findings specified in clause (ii) or (iii) of subparagraph (B) of paragraph (1) to assign the defendant to a treatment facility other than a State Department of State Hospitals facility or other secure treatment facility, the court shall order that notice be given to the appropriate law enforcement agency or agencies having local jurisdiction at the placement facility of a finding of mental incompetence pursuant to this chapter arising out of a charge of a Section 290 offense.
(5) When directing that the defendant be confined in a State Department of State Hospitals facility pursuant to this subdivision, the court shall commit the defendant to the State Department of State Hospitals.
(6) (A) If the defendant is committed or transferred to the State Department of State Hospitals pursuant to this section, the court may, upon receiving the written recommendation of the medical director of the State Department of State Hospitals facility and the community program director that the defendant be transferred to a public or private treatment facility approved by the community program director, order the defendant transferred to that facility. If the defendant is committed or transferred to a public or private treatment facility approved by the community program director, the court may, upon receiving the written recommendation of the community program director, transfer the defendant to the State Department of State Hospitals or to another public or private treatment facility approved by the community program director. In the event of dismissal of the criminal charges before the defendant recovers competence, the person shall be subject to the applicable provisions of the Lanterman-Petris-Short Act (Part 1 (commencing with Section 5000) of Division 5 of the Welfare and Institutions Code). If either the defendant or the prosecutor chooses to contest either kind of order of transfer, a petition may be filed in the court for a hearing, which shall be held if the court determines that sufficient grounds exist. At the hearing, the prosecuting attorney or the defendant may present evidence bearing on the order of transfer. The court shall use the same standards as are used in conducting probation revocation hearings pursuant to Section 1203.2.
Prior to making an order for transfer under this section, the court shall notify the defendant, the attorney of record for the defendant, the prosecuting attorney, and the community program director or a designee.
(B) If the defendant is initially committed to a State Department of State Hospitals facility or secure treatment facility pursuant to clause (ii) or (iii) of subparagraph (B) of paragraph (1) and is subsequently transferred to any other facility, copies of the documents specified in paragraph (3) shall be electronically transferred or taken with the defendant to each subsequent facility to which the defendant is transferred. The transferring facility shall also notify the appropriate law enforcement agency or agencies having local jurisdiction at the site of the new facility that the defendant is a person subject to clause (ii) or (iii) of subparagraph (B) of paragraph (1).
(7) (A) An order by the court authorizing involuntary medication of the defendant shall be valid for no more than one year. The court shall review the order at the time of the review of the initial report and the six-month progress reports pursuant to paragraph (1) of subdivision (b) to determine if the grounds for the authorization remain. In the review, the court shall consider the reports of the treating psychiatrist or psychiatrists and the defendant’s patients’ rights advocate or attorney. The court may require testimony from the treating psychiatrist and the patients’ rights advocate or attorney, if necessary. The court may continue the order authorizing involuntary medication for up to another six months, or vacate the order, or make any other appropriate order.
(B) Within 60 days before the expiration of the one-year involuntary medication order, the district attorney, county counsel, or representative of any facility where a defendant found incompetent to stand trial is committed may petition the committing court for a renewal, subject to the same conditions and requirements as in subparagraph (A). The petition shall include the basis for involuntary medication set forth in clause (i) of subparagraph (B) of paragraph (2). Notice of the petition shall be provided to the defendant, the defendant’s attorney, and the district attorney. The court shall hear and determine whether the defendant continues to meet the criteria set forth in clause (i) of subparagraph (B) of paragraph (2). The hearing on a petition to renew an order for involuntary medication shall be conducted prior to the expiration of the current order.
(8) For purposes of subparagraph (D) of paragraph (2) and paragraph (7), if the treating psychiatrist determines that there is a need, based on preserving their rapport with the defendant or preventing harm, the treating psychiatrist may request that the facility medical director designate another psychiatrist to act in the place of the treating psychiatrist. If the medical director of the facility designates another psychiatrist to act pursuant to this paragraph, the treating psychiatrist shall brief the acting psychiatrist of the relevant facts of the case and the acting psychiatrist shall examine the defendant prior to the hearing.
(b) (1) Within 90 days after a commitment made pursuant to subdivision (a), the medical director of the State Department of State Hospitals facility or other treatment facility to which the defendant is confined shall make a written report to the court and the community program director for the county or region of commitment, or a designee, concerning the defendant’s progress toward recovery of mental competence and whether the administration of antipsychotic medication remains necessary.
If the defendant is in county custody, the county jail shall provide access to the defendant for purposes of the State Department of State Hospitals conducting an evaluation of the defendant pursuant to Section 4335.2 of the Welfare and Institutions Code. Based upon this evaluation, the State Department of State Hospitals may make a written report to the court within 90 days of a commitment made pursuant to subdivision (a) concerning the defendant’s progress toward recovery of mental competence and whether the administration of antipsychotic medication is necessary. If the defendant remains in county custody after the initial 90-day report, the State Department of State Hospitals may conduct an evaluation of the defendant pursuant to Section 4335.2 of the Welfare and Institutions Code and make a written report to the court concerning the defendant’s progress toward recovery of mental competence and whether the administration of antipsychotic medication is necessary.
If the defendant is on outpatient status, the outpatient treatment staff shall make a written report to the community program director concerning the defendant’s progress toward recovery of mental competence. Within 90 days of placement on outpatient status, the community program director shall report to the court on this matter. If the defendant has not recovered mental competence, but the report discloses a substantial likelihood that the defendant will regain mental competence in the foreseeable future, the defendant shall remain in the State Department of State Hospitals facility or other treatment facility or on outpatient status. Thereafter, at six-month intervals or until the defendant becomes mentally competent, if the defendant is confined in a treatment facility, the medical director of the State Department of State Hospitals facility or person in charge of the facility shall report, in writing, to the court and the community program director or a designee regarding the defendant’s progress toward recovery of mental competence and whether the administration of antipsychotic medication remains necessary. If the defendant is on outpatient status, after the initial 90-day report, the outpatient treatment staff shall report to the community program director on the defendant’s progress toward recovery, and the community program director shall report to the court on this matter at six-month intervals. A copy of these reports shall be provided to the prosecutor and defense counsel by the court.
(A) If the report indicates that there is no substantial likelihood that the defendant will regain mental competence in the foreseeable future, custody of the defendant shall be transferred without delay to the committing county and shall remain with the county until further order of the court. The defendant shall be returned to the court for proceedings pursuant to paragraph (3) of subdivision (c) no later than 10 days following receipt of the report. The court shall not order the defendant returned to the custody of the State Department of State Hospitals under the same commitment. The court shall transmit a copy of its order to the community program director or a designee.
(B) If the report indicates that there is no substantial likelihood that the defendant will regain mental competence in the foreseeable future, the medical director of the State Department of State Hospitals facility or other treatment facility to which the defendant is confined shall do both of the following:
(i) Promptly notify and provide a copy of the report to the defense counsel and the district attorney.
(ii) Provide a separate notification, in compliance with applicable privacy laws, to the committing county’s sheriff that immediate transportation will be needed for the defendant pursuant to subparagraph (A).
(C) If a county does not take custody of a defendant committed to the State Department of State Hospitals within 10 calendar days following notification made pursuant to clause (ii) of subparagraph (B), the county shall be charged the daily rate for a state hospital bed, as established by the State Department of State Hospitals.
(2)  The reports made pursuant to paragraph (1) concerning the defendant’s progress toward regaining competency shall also consider the issue of involuntary medication pursuant to paragraph (2) of subdivision (a) of Section 1369. Each report may include, but not be limited to, all of the following:
(A) Whether or not the defendant has the capacity to make decisions concerning antipsychotic medication.
(B) If the defendant lacks capacity to make decisions concerning antipsychotic medication, whether the defendant risks serious harm to their physical or mental health if not treated with antipsychotic medication.
(C) Whether or not the defendant presents a danger to others if the defendant is not treated with antipsychotic medication.
(D) Whether the defendant has a mental disorder for which medications are the only effective treatment.
(E) Whether there are any side effects from the medication currently being experienced by the defendant that would interfere with the defendant’s ability to collaborate with counsel.
(F) Whether there are any effective alternatives to medication.
(G) How quickly the medication is likely to bring the defendant to competency.
(H) Whether the treatment plan includes methods other than medication to restore the defendant to competency.
(I) A statement, if applicable, that no medication is likely to restore the defendant to competency.
(3) After reviewing the reports, the court shall determine if grounds for the involuntary administration of antipsychotic medication exist, whether or not an order was issued at the time of commitment, and shall do one of the following:
(A) If the original grounds for involuntary medication still exist, any order authorizing the treating facility to involuntarily administer antipsychotic medication to the defendant shall remain in effect.
(B) If the original grounds for involuntary medication no longer exist, and there is no other basis for involuntary administration of antipsychotic medication, any order for the involuntary administration of antipsychotic medication shall be vacated.
(C) If the original grounds for involuntary medication no longer exist, and the report states that there is another basis for involuntary administration of antipsychotic medication, the court shall determine whether to vacate the order or issue a new order for the involuntary administration of antipsychotic medication. The court shall consider the opinions in reports submitted pursuant to paragraph (1) of subdivision (b), including any opinions rendered pursuant to Section 4335.2 of the Welfare and Institutions Code. The court may, upon a showing of good cause, set a hearing within 21 days to determine whether the order for the involuntary administration of antipsychotic medication shall be vacated or whether a new order for the involuntary administration of antipsychotic medication shall be issued. The hearing shall proceed as set forth in subparagraph (B) of paragraph (2) of subdivision (a). The court shall require witness testimony to occur remotely, including clinical testimony pursuant to subdivision (d) of Section 4335.2 of the Welfare and Institutions Code. In-person witness testimony shall only be allowed upon a court’s finding of good cause.
(D) If the report states a basis for involuntary administration of antipsychotic medication and the court did not issue such order at the time of commitment, the court shall determine whether to issue an order for the involuntary administration of antipsychotic medication. The court shall consider the opinions in reports submitted pursuant to paragraph (1) of subdivision (b), including any opinions rendered pursuant to Section 4335.2 of the Welfare and Institutions Code. The court may, upon a finding of good cause, set a hearing within 21 days to determine whether an order for the involuntary administration of antipsychotic medication shall be issued. The hearing shall proceed as set forth in subparagraph (B) of paragraph (2) of subdivision (a). The court shall require witness testimony to occur remotely, including clinical testimony pursuant to subdivision (d) of Section 4335.2 of the Welfare and Institutions Code. In-person witness testimony shall only be allowed upon a court’s finding of good cause.
(4) If it is determined by the court that treatment for the defendant’s mental impairment is not being conducted, the defendant shall be returned to the committing court, and, if the defendant is not in county custody, returned to the custody of the county. The court shall transmit a copy of its order to the community program director or a designee.
(5) At each review by the court specified in this subdivision, the court shall determine if the security level of housing and treatment is appropriate and may make an order in accordance with its determination. If the court determines that the defendant shall continue to be treated in the State Department of State Hospitals facility or on an outpatient basis, the court shall determine issues concerning administration of antipsychotic medication, as set forth in subparagraph (B) of paragraph (2) of subdivision (a).
(c) (1) At the end of two years from the date of commitment or a period of commitment equal to the maximum term of imprisonment provided by law for the most serious offense charged in the information, indictment, or misdemeanor complaint, or the maximum term of imprisonment provided by law for a violation of probation or mandatory supervision, whichever is shorter, but no later than 90 days prior to the expiration of the defendant’s term of commitment, a defendant who has not recovered mental competence shall be returned to the committing court, and custody of the defendant shall be transferred without delay to the committing county and shall remain with the county until further order of the court. The court shall not order the defendant returned to the custody of the State Department of State Hospitals under the same commitment. The court shall notify the community program director or a designee of the return and of any resulting court orders.
(2) (A) The medical director of the State Department of State Hospitals facility or other treatment facility to which the defendant is confined shall provide notification, in compliance with applicable privacy laws, to the committing county’s sheriff that immediate transportation will be needed for the defendant pursuant to paragraph (1).
(B) If a county does not take custody of a defendant committed to the State Department of State Hospitals within 10 calendar days following notification pursuant to subparagraph (A), the county shall be charged the daily rate for a state hospital bed, as established by the State Department of State Hospitals.
(3) Whenever a defendant is returned to the court pursuant to paragraph (1) or (4) of subdivision (b) or paragraph (1) of this subdivision and it appears to the court that the defendant is gravely disabled, as defined in subparagraph (A) or (B) of paragraph (1) of subdivision (h) of Section 5008 of the Welfare and Institutions Code, the court shall order the conservatorship investigator of the county of commitment of the defendant 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. Hearings required in the conservatorship proceedings shall be held in the superior court in the county that ordered the commitment. The court shall transmit a copy of the order directing initiation of conservatorship proceedings to the community program director or a designee, the sheriff and the district attorney of the county in which criminal charges are pending, and the defendant’s counsel of record. The court shall notify the community program director or a designee, the sheriff and district attorney of the county in which criminal charges are pending, and the defendant’s counsel of record of the outcome of the conservatorship proceedings.
(4) If a change in placement is proposed for a defendant who is committed pursuant to subparagraph (A) or (B) of paragraph (1) of subdivision (h) of Section 5008 of the Welfare and Institutions Code, the court shall provide notice and an opportunity to be heard with respect to the proposed placement of the defendant to the sheriff and the district attorney of the county in which the criminal charges or revocation proceedings are pending.
(5) If the defendant is confined in a treatment facility, a copy of any report to the committing court regarding the defendant’s progress toward recovery of mental competence shall be provided by the committing court to the prosecutor and to the defense counsel.
(d) With the exception of proceedings alleging a violation of mandatory supervision, the criminal action remains subject to dismissal pursuant to Section 1385. If the criminal action is dismissed, the court shall transmit a copy of the order of dismissal to the community program director or a designee. In a proceeding alleging a violation of mandatory supervision, if the person is not placed under a conservatorship as described in paragraph (3) of subdivision (c), or if a conservatorship is terminated, the court shall reinstate mandatory supervision and may modify the terms and conditions of supervision to include appropriate mental health treatment or refer the matter to a local mental health court, reentry court, or other collaborative justice court available for improving the mental health of the defendant.
(e) If the criminal action against the defendant is dismissed, the defendant shall be released from commitment ordered under this section, but without prejudice to the initiation of proceedings that may be appropriate under the Lanterman-Petris-Short Act (Part 1 (commencing with Section 5000) of Division 5 of the Welfare and Institutions Code).
(f) As used in this chapter, “community program director” means the person, agency, or entity designated by the State Department of State Hospitals pursuant to Section 1605 of this code and Section 4360 of the Welfare and Institutions Code.
(g) For the purpose of this section, “secure treatment facility” does not include, except for State Department of State Hospitals facilities, state developmental centers, and correctional treatment facilities, any facility licensed pursuant to Chapter 2 (commencing with Section 1250) of, Chapter 3 (commencing with Section 1500) of, or Chapter 3.2 (commencing with Section 1569) of, Division 2 of the Health and Safety Code, or any community board and care facility.
(h) This section does not preclude a defendant from filing a petition for habeas corpus to challenge the continuing validity of an order authorizing a treatment facility or outpatient program to involuntarily administer antipsychotic medication to a person being treated as incompetent to stand trial.

SEC. 10.

 Section 4019 of the Penal Code, as amended by Section 3 of Chapter 756 of the Statutes of 2022, is amended to read:

4019.
 (a) This section applies in all of the following cases:
(1) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp, including all days of custody from the date of arrest to the date when the sentence commences, under a judgment of imprisonment or of a fine and imprisonment until the fine is paid in a criminal action or proceeding.
(2) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp as a condition of probation after suspension of imposition of a sentence or suspension of execution of sentence in a criminal action or proceeding.
(3) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp for a definite period of time for contempt pursuant to a proceeding other than a criminal action or proceeding.
(4) When a prisoner is confined in a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp following arrest and prior to the imposition of sentence for a felony conviction.
(5) When a prisoner is confined in a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp as part of custodial sanction imposed following a violation of postrelease community supervision or parole.
(6) When a prisoner is confined in a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp as a result of a sentence imposed pursuant to subdivision (h) of Section 1170.
(7) When a prisoner participates in a program pursuant to Section 1203.016 or Section 4024.2. Except for prisoners who have already been deemed eligible to receive credits for participation in a program pursuant to Section 1203.016 prior to January 1, 2015, this paragraph shall apply prospectively.
(8) When a prisoner is confined in or committed to a state hospital or other mental health treatment facility, or to a county jail treatment facility, as defined in Section 1369.1, in proceedings pursuant to Chapter 6 (commencing with Section 1367) of Title 10 of Part 2.
(b) Subject to subdivision (d), for each four-day period in which a prisoner is confined in or committed to a facility as specified in this section, one day shall be deducted from the prisoner’s period of confinement unless it appears by the record that the prisoner has refused to satisfactorily perform labor as assigned by the sheriff, chief of police, or superintendent of an industrial farm or road camp.
(c) For each four-day period in which a prisoner is confined in or committed to a facility as specified in this section, one day shall be deducted from the prisoner’s period of confinement unless it appears by the record that the prisoner has not satisfactorily complied with the reasonable rules and regulations established by the sheriff, chief of police, or superintendent of an industrial farm or road camp.
(d) This section does not require the sheriff, chief of police, or superintendent of an industrial farm or road camp to assign labor to a prisoner if it appears from the record that the prisoner has refused to satisfactorily perform labor as assigned or that the prisoner has not satisfactorily complied with the reasonable rules and regulations of the sheriff, chief of police, or superintendent of an industrial farm or road camp.
(e) A deduction shall not be made under this section unless the person is committed for a period of four days or longer.
(f) It is the intent of the Legislature that if all days are earned under this section, a term of four days will be deemed to have been served for every two days spent in actual custody.
(g) The changes in this section as enacted by the act that added this subdivision shall apply to prisoners who are confined to a county jail, city jail, industrial farm, or road camp for a crime committed on or after the effective date of that act.
(h) The changes to this section enacted by the act that added this subdivision shall apply prospectively and shall apply to prisoners who are confined to a county jail, city jail, industrial farm, or road camp for a crime committed on or after October 1, 2011. Any days earned by a prisoner prior to October 1, 2011, shall be calculated at the rate required by the prior law.
(i) (1) This section shall not apply, and no credits may be earned, for periods of flash incarceration imposed pursuant to Section 3000.08 or 3454.
(2) Credits earned pursuant to this section for a period of flash incarceration pursuant to Section 1203.35 shall, if the person’s probation or mandatory supervision is revoked, count towards the term to be served.
(j) This section shall remain in effect only until January 1, 2028, and as of that date is repealed, unless a later enacted statute, that is enacted before January 1, 2028, deletes or extends that date.

SEC. 11.

 Section 4019 of the Penal Code, as amended by Section 4 of Chapter 756 of the Statutes of 2022, is amended to read:

4019.
 (a) This section applies in all of the following cases:
(1) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp, including all days of custody from the date of arrest to the date when the sentence commences, under a judgment of imprisonment or of a fine and imprisonment until the fine is paid in a criminal action or proceeding.
(2) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp as a condition of probation after suspension of imposition of a sentence or suspension of execution of sentence in a criminal action or proceeding.
(3) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp for a definite period of time for contempt pursuant to a proceeding other than a criminal action or proceeding.
(4) When a prisoner is confined in a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp following arrest and prior to the imposition of sentence for a felony conviction.
(5) When a prisoner is confined in a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp as part of custodial sanction imposed following a violation of postrelease community supervision or parole.
(6) When a prisoner is confined in a county jail, industrial farm, or road camp or a city jail, industrial farm, or road camp as a result of a sentence imposed pursuant to subdivision (h) of Section 1170.
(7) When a prisoner participates in a program pursuant to Section 1203.016 or Section 4024.2. Except for prisoners who have already been deemed eligible to receive credits for participation in a program pursuant to Section 1203.016 prior to January 1, 2015, this paragraph shall apply prospectively.
(8) When a prisoner is confined in or committed to a state hospital or other mental health treatment facility, or to a county jail treatment facility. facility in proceedings pursuant to Chapter 6 (commencing with Section 1367) of Title 10 of Part 2.
(b) Subject to subdivision (d), for each four-day period in which a prisoner is confined in or committed to a facility as specified in this section, one day shall be deducted from the prisoner’s period of confinement unless it appears by the record that the prisoner has refused to satisfactorily perform labor as assigned by the sheriff, chief of police, or superintendent of an industrial farm or road camp.
(c) For each four-day period in which a prisoner is confined in or committed to a facility as specified in this section, one day shall be deducted from the prisoner’s period of confinement unless it appears by the record that the prisoner has not satisfactorily complied with the reasonable rules and regulations established by the sheriff, chief of police, or superintendent of an industrial farm or road camp.
(d) This section does not require the sheriff, chief of police, or superintendent of an industrial farm or road camp to assign labor to a prisoner if it appears from the record that the prisoner has refused to satisfactorily perform labor as assigned or that the prisoner has not satisfactorily complied with the reasonable rules and regulations of the sheriff, chief of police, or superintendent of an industrial farm or road camp.
(e) A deduction shall not be made under this section unless the person is committed for a period of four days or longer.
(f) It is the intent of the Legislature that if all days are earned under this section, a term of four days will be deemed to have been served for every two days spent in actual custody.
(g) The changes in this section as enacted by the act that added this subdivision shall apply to prisoners who are confined to a county jail, city jail, industrial farm, or road camp for a crime committed on or after the effective date of that act.
(h) The changes to this section enacted by the act that added this subdivision shall apply prospectively and shall apply to prisoners who are confined to a county jail, city jail, industrial farm, or road camp for a crime committed on or after October 1, 2011. Any days earned by a prisoner prior to October 1, 2011, shall be calculated at the rate required by the prior law.
(i)  This section shall not apply, and no credits may be earned, for periods of flash incarceration imposed pursuant to Section 3000.08 or 3454.
(j) This section shall become operative on January 1, 2028.

SEC. 12.

 Section 13777 of the Penal Code is amended to read:

13777.
 (a) The Attorney General shall do each of the following:
(1) Collect information relating to anti-reproductive-rights crimes, including, but not limited to, the threatened commission of these crimes and persons suspected of committing these crimes or making these threats.
(2) Direct local law enforcement agencies, district attorneys, and elected city attorneys to provide to the Department of Justice, in a manner that the Attorney General prescribes, all of the following on an annual a monthly basis:
(A) The total number of anti-reproductive-rights crime-related calls for assistance made to the department:
(B) The total number of arrests for anti-reproductive-rights crimes, reported by which subdivision of Section 423.2 is the basis for the arrest. The report of each crime that violates any other law shall note the code, section, and subdivision that prohibits the crime. The report of any crime that violates both Section 423.2 and any other law shall note both the subdivision of Section 423.2 and the other code, section, and subdivision that prohibits the crime.
(C) The total number of cases in which the district attorney charged an individual with a crime that violates Section 423.2, including the subdivision that prohibits the crime.
(3) Beginning January 1, 2025, report to the Legislature on an annual basis the information collected pursuant to paragraph (2). To avoid production and distribution costs, the Attorney General may submit the reports electronically or as part of any other report that the Attorney General submits.
(4) Develop a plan to prevent, apprehend, prosecute, and report anti-reproductive-rights crimes, and to carry out the legislative intent expressed in subdivisions (c), (d), (e), and (f) of Section 1 of the act that enacts this title in the 2001–02 Regular Session of the Legislature.
(b) In carrying out their responsibilities under this section, the Attorney General shall consult the Governor, the Commission on Peace Officer Standards and Training, and other subject matter experts.

SEC. 7.SEC. 13.

 Section 29805 of the Penal Code is amended to read:

29805.
 (a) (1) Except as provided in Section 29855, subdivision (a) of Section 29800, or subdivision (b), any person who has been convicted of a misdemeanor violation of Section 71, 76, 136.1, 136.5, or 140, subdivision (d) of Section 148, subdivision (f) of Section 148.5, Section 171b, paragraph (1) of subdivision (a) of Section 171c, Section 171d, 186.28, 240, 241, 242, 243, 243.4, 244.5, 245, 245.5, 246.3, 247, 273.5, 273.6, 417, 417.6, 422, 422.6, 626.9, 646.9, 830.95, 17500, 17510, 25300, 25800, 30315, or 32625, subdivision (b) or (d) of Section 26100, or Section 27510, or Section 8100, 8101, or 8103 of the Welfare and Institutions Code, any firearm-related offense pursuant to Sections 871.5 and 1001.5 of the Welfare and Institutions Code, Section 487 if the property taken was a firearm, or of the conduct punished in subdivision (c) of Section 27590, and who, within 10 years of the conviction, owns, purchases, receives, or has in possession or under custody or control, any firearm is guilty of a public offense, punishable by imprisonment in a county jail not exceeding one year or in the state prison, by a fine not exceeding one thousand dollars ($1,000), or by both that imprisonment and fine.
(2) Any person who has an outstanding warrant for any misdemeanor offense described in this subdivision, and who has knowledge of the outstanding warrant, and who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a public offense, punishable by imprisonment in a county jail not exceeding one year or in the state prison, by a fine not exceeding one thousand dollars ($1,000), or by both that imprisonment and fine.
(b) Any person who is convicted, on or after January 1, 2019, of a misdemeanor violation of Section 273.5, and who subsequently owns, purchases, receives, or has in possession or under custody or control, any firearm is guilty of a public offense, punishable by imprisonment in a county jail not exceeding one year or in the state prison, by a fine not exceeding one thousand dollars ($1,000), or by both that imprisonment and fine.
(c) Any person who is convicted on or after January 1, 2020, of a misdemeanor violation of Section 25100, 25135, or 25200, and who, within 10 years of the conviction owns, purchases, receives, or has in possession or under custody or control, any firearm is guilty of a public offense, punishable by imprisonment in a county jail not exceeding one year or in the state prison, by a fine not exceeding one thousand dollars ($1,000), or by both that fine and imprisonment.
(d) Any person who is convicted on or after January 1, 2023, of a misdemeanor violation of Section 273a, subdivision (b) or (c) of Section 368, or subdivision (e) or (f) of Section 29180, and who, within 10 years of the conviction owns, purchases, receives, or has in possession or under custody or control, any firearm is guilty of a public offense, punishable by imprisonment in a county jail not exceeding one year or in the state prison, by a fine not exceeding one thousand dollars ($1,000), or by both that fine and imprisonment.
(e) The court, on forms prescribed by the Department of Justice, shall notify the department of persons subject to this section. However, the prohibition in this section may be reduced, eliminated, or conditioned as provided in Section 29855 or 29860.

SEC. 8.SEC. 14.

 Section 30400 of the Penal Code is amended to read:

30400.
 (a) Except as provided in subdivision (b) and in Section 30420, or except by operation of law, it shall be unlawful for a person to purchase, sell, offer to sell, or transfer ownership of any firearm precursor part in this state that is not a federally regulated firearm precursor part.
(b) This section does not apply to either of the following:
(1) The purchase of a firearm precursor part that is not a federally regulated firearm precursor part by a federally licensed firearms manufacturer or importer, or by a federal licensee authorized to serialize firearms.
(2) The sale, offer to sell, or transfer of ownership of a firearm precursor part that is not a federally regulated firearm precursor part to a federally licensed firearms manufacturer or importer, or to a federal licensee authorized to serialize firearms.
(c) A violation of this section is a misdemeanor punishable by imprisonment in a county jail not exceeding six months, by a fine not exceeding one thousand dollars ($1,000), or by both that fine and imprisonment.

SEC. 9.SEC. 15.

 Section 12801.9 of the Vehicle Code is amended to read:

12801.9.
 (a) (1) Notwithstanding Section 12801.5, the department shall issue an original driver’s license to a person who is unable to submit satisfactory proof that the applicant’s presence in the United States is authorized under federal law if the person meets all other qualifications for licensure and provides satisfactory proof to the department of the person’s identity and California residency.
(2) Notwithstanding Section 12801.5 and commencing no later than July 1, 2027, the department shall issue an identification card to a person who is unable to submit satisfactory proof that the applicant’s presence in the United States is authorized under federal law if the person provides satisfactory proof to the department of the person’s identity and California residency.
(b) The department shall adopt regulations to carry out the purposes of this section, including, but not limited to, procedures for (1) identifying documents acceptable for the purposes of proving identity and California residency, (2) procedures for verifying the authenticity of the documents, (3) issuance of a temporary license pending verification of any document’s authenticity, and (4) hearings to appeal a denial of a license or temporary license, or identification card.
(c) Regulations adopted for purposes of establishing the documents acceptable to prove identity and residency pursuant to subdivision (b) shall be promulgated by the department in consultation with appropriate interested parties, in accordance with the rulemaking provisions of the Administrative Procedure Act (Chapter 3.5 (commencing with Section 11340) of Part 1 of Division 3 of Title 2 of the Government Code), including law enforcement representatives, immigrant rights representatives, labor representatives, and other stakeholders, which may include, but are not limited to, the Department of the California Highway Patrol, the California State Sheriffs’ Association, and the California Police Chiefs Association. The department shall accept various types of documentation for this purpose, including, but not limited to, the following documents:
(1) A valid, unexpired consular identification document issued by a consulate from the applicant’s country of citizenship, or a valid, unexpired passport from the applicant’s country of citizenship.
(2) An original birth certificate, or other proof of age, as designated by the department.
(3) A home utility bill, lease or rental agreement, or other proof of California residence, as designated by the department.
(4) The following documents, which, if in a language other than English, shall be accompanied by a certified translation or an affidavit of translation into English:
(A) A marriage license or divorce certificate.
(B) A foreign federal electoral photo card issued on or after January 1, 1991.
(C) A foreign driver’s license.
(5) A United States Department of Homeland Security Form I-589, Application for Asylum and for Withholding of Removal.
(6) An official school or college transcript that includes the applicant’s date of birth or a foreign school record that is sealed and includes a photograph of the applicant at the age the record was issued.
(7) A United States Department of Homeland Security Form I-20 or Form DS-2019.
(8) A deed or title to real property.
(9) A property tax bill or statement issued within the previous 12 months.
(10) An income tax return.
(d) (1) (A) A license issued pursuant to this section shall bear the following notice: “This card is not acceptable for official federal purposes. This license is issued only as a license to drive a motor vehicle. It does not establish eligibility for employment, voter registration, or public benefits.”
(B) An identification card issued pursuant to this section shall bear the following notice: “This card is not acceptable for official federal purposes. This identification card is issued only as a means of identification. It does not establish eligibility for employment, voter registration, or public benefits.”
(2) The notice described in paragraph (1) shall be in lieu of the notice provided in Section 12800.5.
(3) Paragraphs (1) and (2) shall become inoperative upon the department’s next scheduled revision of the driver’s license or identification card on or after January 1, 2023, at which time, a driver’s license and identification card issued pursuant to this section shall bear the notice described in Section 12800.5 or 13005.5, respectively, as added by the act that added this paragraph.
(e) Notwithstanding Section 40300 or any other law, a peace officer shall not detain or arrest a person solely on the belief that the person is an unlicensed driver, unless the officer has reasonable cause to believe the person driving is under 16 years of age.
(f) The inability to obtain a driver’s license pursuant to this section does not abrogate or diminish in any respect the legal requirement of every driver in this state to obey the motor vehicle laws of this state, including laws with respect to licensing, motor vehicle registration, and financial responsibility.
(g) It is a violation of law to discriminate against a person because the person holds or presents a license or identification card issued under this section, including, but not limited to, the following:
(1) It is a violation of the Unruh Civil Rights Act (Section 51 of the Civil Code), for a business establishment to discriminate against a person because the person holds or presents a license or identification card issued under this section.
(2) (A) It is a violation of the California Fair Employment and Housing Act (Part 2.8 (commencing with Section 12900) of Division 3 of Title 2 of the Government Code) for an employer or other covered person or entity, pursuant to Section 12940 of the Government Code and subdivision (v) of Section 12926 of the Government Code, to discriminate against a person because the person holds or presents a driver’s license or identification card issued pursuant to this section, or for an employer or other covered entity to require a person to present a driver’s license, unless possessing a driver’s license is required by law or is required by the employer and the employer’s requirement is otherwise permitted by law. This section shall not be construed to limit or expand an employer’s authority to require a person to possess a driver’s license.
(B) Notwithstanding subparagraph (A), this section shall not be construed to alter an employer’s rights or obligations under Section 1324a of Title 8 of the United States Code regarding obtaining documentation evidencing identity and authorization for employment. An action taken by an employer that is required by the federal Immigration and Nationality Act (8 U.S.C. Sec. 1324a) is not a violation of law.
(3) It is a violation of Section 11135 of the Government Code for a state or local governmental authority, agent, or person acting on behalf of a state or local governmental authority, or a program or activity that is funded directly or receives financial assistance from the state, to discriminate against an individual because the individual holds or presents a license or identification card issued pursuant to this section, including by notifying a law enforcement agency of the individual’s identity or that the individual carries a license or identification card issued under this section if a notification is not required by law or would not have been provided if the individual held a license issued pursuant to Section 12801 or an identification card issued pursuant to Section 13000.
(h) Driver’s license or identification card information obtained by an employer shall be treated as private and confidential, is exempt from disclosure under the California Public Records Act (Division 10 (commencing with Section 7920.000) of Title 1 of the Government Code), and shall not be disclosed to any unauthorized person or used for any purpose other than to establish identity and authorization to drive, as applicable.
(i) Information collected pursuant to this section is not a public record and shall not be disclosed by the department, except as required by law.
(j) Documents provided by applicants to prove identity or residency pursuant to this section are not public records and shall not be disclosed except in response to a subpoena for individual records in a criminal proceeding or a court order, or in response to a law enforcement request to address an urgent health or safety need if the law enforcement agency certifies in writing the specific circumstances that do not permit authorities time to obtain a court order. Immigration enforcement, as defined in Section 7284.4 of the Government Code, does not constitute an urgent health and safety need for purposes of this subdivision.
(k) A license or identification card issued pursuant to this section shall not be used as evidence of an individual’s citizenship or immigration status for any purpose.
(l) In addition to the fees required by Section 14902, a person applying for an identification card pursuant to this section may be required to pay an additional fee determined by the department that is sufficient to offset the reasonable administrative costs of implementing the provisions of the act that authorized the issuance of identification cards pursuant to this section. If this additional fee is assessed, it shall only apply until June 30, 2030.
(m) This section shall become inoperative on the effective date of a final judicial determination made by any court of appellate jurisdiction that any provision of the act that added this section, or its application, either in whole or in part, is enjoined, found unconstitutional, or held invalid for any reason. The department shall post this information on its internet website.

SEC. 16.

 Section 604 of the Welfare and Institutions Code is amended to read:

604.
 (a) Whenever a case is before any court upon an accusatory pleading and it is suggested or appears to the judge before whom the person is brought that the person charged was, at the date the offense is alleged to have been committed, under the age of 18 years, the judge shall immediately suspend all proceedings against the person on the charge. The judge shall examine into the age of the person, and if, from the examination, it appears to his or her the judge’s satisfaction that the person was at the date the offense is alleged to have been committed under the age of 18 years, he or she the judge shall immediately certify all of the following to the juvenile court of the county:
(1) That the person (naming him or her) them) is charged with a crime (briefly stating its nature).
(2) That the person appears to have been under the age of 18 years at the date the offense is alleged to have been committed, giving the date of birth of the person when known.
(3) That proceedings have been suspended against the person on the charge by reason of his or her their age, with the date of the suspension.
The judge shall attach a copy of the accusatory pleading to the certification.
(b) When a court certifies a case to the juvenile court pursuant to subdivision (a), it shall be deemed that jeopardy has not attached by reason of the proceedings prior to certification, but the court may not resume proceedings in the case, nor may a new proceeding under the general law be commenced in any court with respect to the same matter unless the juvenile court has found that the minor is not a fit subject for consideration under the juvenile court law and has ordered that proceedings under the general law resume or be commenced.
(c) The certification and accusatory pleading shall be promptly transmitted to the clerk of the juvenile court. Upon receipt thereof, the clerk of the juvenile court shall immediately notify the probation officer who shall immediately proceed in accordance with Article 16 (commencing with Section 650).
(d) This section does not apply to any minor who may have a complaint filed directly against him or her them in a court of criminal jurisdiction pursuant to Section 707.01.
(e) If the person whose case has been certified to a juvenile court is granted a record sealing in juvenile court, all criminal court records associated with said record shall also be ordered sealed.

SEC. 10.SEC. 17.

 Section 727.13 of the Welfare and Institutions Code is amended to read:

727.13.
 (a) (1) Whenever voluntary admission into a psychiatric residential treatment facility is sought for a minor or nonminor dependent who is subject to a petition pursuant to Section 601 or 602, the court shall review the application for a voluntary admission as described in this section. A minor may not be admitted for inpatient treatment prior to court authorization unless the minor is subject to an involuntary hold pursuant to Chapter 2 (commencing with Section 5585.50) of Part 1.5 of Division 5.
(2) For purposes of this section, “voluntary admission” for a child within the custody of a parent, guardian, or Indian custodian refers to the parent, guardian, or Indian custodian’s voluntary decision to have the child admitted to a psychiatric residential treatment facility. “Voluntary admission” for a child not within the custody of a parent, guardian, or Indian custodian refers to the child’s decision to voluntarily admit themselves pursuant to Section 6552. “Voluntary admission” for a nonminor dependent refers to the nonminor dependent’s decision to voluntarily admit themselves.
(b) (1) When a parent, guardian, or Indian custodian who retains physical custody of a minor under the jurisdiction of the juvenile court pursuant to Section 601 or 602 seeks to have a minor admitted to a psychiatric residential treatment facility, or when a minor who is the subject of a petition pursuant to Section 601 or 602 seeks to make a voluntary admission to a psychiatric residential treatment facility, the probation officer shall file an ex parte application for an order authorizing the voluntary admission pursuant to Section 6552 within 48 hours of being informed of the request or, if the courts are closed for more than 48 hours after being informed of the request, on the first judicial day after being informed of the request. The application shall satisfy the requirements of Title 3 of the California Rules of Court, and include all of the following:
(A) A brief description of the minor mental disorder.
(B) The name of the psychiatric residential treatment facility proposed for treatment.
(C) A brief description of how the mental disorder may reasonably be expected to be cured or ameliorated by the course of treatment offered by the psychiatric residential treatment facility.
(D) A brief description of why the facility is the least restrictive setting for care and why there are no other available hospitals, programs, or facilities which might better serve the minor’s medical needs and best interest.
(E) A copy of the plan required by subdivisions (c) and (d) of Section 16010.10.
(F) (i) If the parent, guardian, or Indian custodian is seeking the minor’s admission to the facility, the basis of their belief that the minor’s admission to a psychiatric residential treatment facility is necessary.
(ii) If the minor is seeking admission, whether the parent, guardian, or Indian custodian agrees with the minor request for admission.
(G) A description of any mental health services, including community-based mental health services, that were offered or provided and an explanation for why those services were not sufficient, or an explanation for why no such services were offered or provided.
(H) A statement describing how the minor was given the opportunity to confer privately with their counsel regarding the application.
(I) A brief description of whether any member of the minor’s child and family team, if applicable, objects to the admission, and the reasons for the objection, if any.
(J) The information required by this paragraph shall be sufficient to satisfy the applicant’s initial burden of establishing the need for an ex parte hearing required by subdivision (c) of Rule 3.1202 of the California Rules of Court.
(2) Upon receipt of an ex parte application pursuant to paragraph (1), the juvenile court shall schedule a hearing for the next judicial day. The court clerk shall immediately notify the probation officer and the minor’s counsel of the date, time, and place for the hearing.
(3) The probation officer shall provide notice of the hearing in accordance with Title 3 of the California Rules of Court to the minor and their counsel of record, the minor’s parents or guardian, the minor’s tribe in the case of an Indian child, and any person designated as the minor’s educational or developmental representative pursuant to subdivision (b) of Section 726. The provisions in subdivision (c) of Section 527 of the Code of Civil Procedure shall apply to notice of the hearing. The probation officer shall make arrangements for the minor to be transported to the hearing.
(c) (1) At the hearing, the court shall consider evidence in the form of oral testimony under oath, affidavit, or declaration, or other admissible evidence, including a probation department court report, as to all of the following:
(A) Whether the minor suffers from a mental disorder which may reasonably be expected to be cured or ameliorated by a course of treatment offered by the psychiatric residential treatment facility in which the minor wishes to be placed.
(B) Whether the psychiatric residential treatment facility is the least restrictive setting for care.
(C) Whether there is any other available hospital, program, or facility which might better serve the minor’s medical needs and best interest, including less restrictive facilities or community-based care.
(D) Whether and how the minor, parent, or legal guardian, as appropriate, has been advised of the nature of inpatient psychiatric services, patient’s rights as identified in Section 6006, and their right to contact a patients’ rights advocate.
(E) Whether and how the probation officer addressed the possible voluntary admission with the minor’s attorney.
(F) Whether the minor was given the opportunity to confer privately with their attorney while considering a voluntary admission.
(G) Whether and how the possible voluntary admission was addressed with the child and family team, whether any member of the team objects to voluntary admission, and the reasons for the objection.
(H) The probation department’s plan for the minor, as described in Section 16010.10.
(I) A brief description of any community-based mental health services that were offered or provided, or an explanation for why no such services were offered or provided.
(2) (A) If the minor’s parent, guardian, or Indian custodian seeks to give voluntary consent to the child’s admission, the court shall inquire about the child’s position on the admission.
(B) If the minor seeks to give voluntary consent to admission, the court shall inquire of the minor whether they knowingly and intelligently consent to admission into the psychiatric residential treatment facility, and whether they are giving consent without fear or threat of detention or initiation of conservatorship proceedings.
(3) The court shall not continue the hearing unless the minor consents to the continuance and the court determines that additional evidence is necessary to support the findings required by subdivision (c). Any continuance shall be for only such period of time as is necessary to obtain the evidence and only if it is not detrimental to the minor’s health condition.
(d) (1) The court may grant a parent, guardian, or Indian custodian’s request to have a child admitted, or authorize the minor’s voluntary consent to admission, into a psychiatric residential treatment facility only if it finds, by clear and convincing evidence, all of the following:
(A) That the minor suffers from a mental disorder which may reasonably be expected to be cured or ameliorated by a course of treatment offered by the hospital, facility, or program in which the minor wishes to be placed.
(B) That the psychiatric residential treatment facility is the least restrictive setting to treat the child’s mental disorder.
(C) That there is no other available hospital, program, facility, or community-based care which might better serve the minor’s medical needs and best interest.
(D) That the minor has given knowing and intelligent consent to admission to the facility and that the consent was not made under fear or threat of detention or initiation of conservatorship proceedings.
(E) That the minor and, where appropriate, the parent or guardian have been advised of the nature of inpatient psychiatric, patient’s rights as identified in Section 6006, and their right to contact a patients’ rights advocate.
(2) (A) When authorizing a parent’s or guardian’s consent to admission or the minor’s voluntary consent, the court may make any orders necessary to ensure that the child welfare services agency promptly makes all necessary arrangements to ensure that the minor is discharged in a timely manner and with all services and supports in place as necessary for a successful transition into a less restrictive setting.
(B) The court’s order authorizing the admission to a psychiatric residential treatment facility shall be effective until the first of the following events occurs: (1) the parent, guardian, or Indian custodian, or the child if admission was granted pursuant to Section 6552, withdraws consent for the child to be present in the psychiatric residential treatment facility, (2) the court finds that the child no longer suffers from a mental disorder that may reasonably expected to be ameliorated by the treatment offered by the facility or that the psychiatric residential treatment facility is no longer the least restrictive setting for the treatment of the child’s mental health needs, or (3) the court makes a superseding order.
(3) For minors who were in the custody of their parent, legal guardian or Indian custodian at the time of the authorization of admission, and based on the evidence presented during the ex parte hearing, the court shall consider whether the parent’s, legal guardian’s or Indian custodian’s conduct contributed to the deterioration of the minor’s mental disorder. If the court determines that the parent’s, legal guardian’s, or Indian custodian’s conduct may have contributed to the deterioration, it shall direct the county probation department to investigate whether the child may be safely returned to the custody of the parent, legal guardian or Indian custodian upon their discharge from the psychiatric residential treatment facility and to take appropriate action, including, but not limited to, assessing the minor pursuant to Section 241.1, making a report to the county child welfare services agency’s suspected child abuse and neglect hotline, or proceeding to modify court orders pursuant to Article 20 (commencing with Section 775).
(e) (1) Whenever a nonminor dependent under the supervision of a county juvenile probation department seeks to voluntarily consent to admission to a psychiatric residential treatment facility, the probation officer shall file an ex parte application within 48 hours of the request or, if the courts are closed for more than 48 hours after being informed of the request, on the first judicial day after being informed of the request, for a hearing to address whether the nonminor dependent has been advised of the nature of inpatient psychiatric services, patient’s rights as identified in Section 6006, and their right to contact a patients’ rights advocate, and gives informed voluntary consent to admission. The application shall satisfy the requirements of Title 3 of the California Rules of Court, and include all of the following:
(A) A brief description of the medical necessity for admission into a psychiatric residential treatment facility.
(B) The name of the psychiatric residential treatment facility proposed for treatment.
(C) A copy of the probation department’s plan developed pursuant to subdivisions (c) and (d) of Section 16010.10.
(D) A description of any mental health services, including community-based mental health services, that were offered or provided to the nonminor dependent and an explanation for why those services were not sufficient, or an explanation for why no such services were offered or provided.
(E) A brief description of whether the nonminor dependent believes admission to a less restrictive facility would not adequately address their mental disorder.
(F) A statement describing how the nonminor dependent was given the opportunity to confer privately with their counsel regarding the application.
(G) The information required by this paragraph shall be considered sufficient to satisfy the applicant’s initial burden of establishing the need for an ex parte hearing required by subdivision (c) of Rule 3.1202 of the California Rules of Court.
(2) Upon receipt of an ex parte application pursuant to paragraph (1), the juvenile court shall schedule a hearing for the next judicial day. The court clerk shall immediately notify the probation officer and the nonminor dependent’s counsel of the date, time, and place for the hearing.
(3) The probation officer shall provide notice of the hearing in accordance with Title 3 of the California Rules of Court to all parties to the proceeding and their counsel of record, the nonminor dependent’s tribe, if applicable, the nonminor dependent’s court-appointed special advocate, if applicable, and any person designated as the nonminor dependent’s educational or developmental representative pursuant to subdivision (b) of Section 726. The provisions in subdivision (c) of Section 527 of the Code of Civil Procedure shall apply to notice of the hearing. The probation officer shall make arrangements for the nonminor dependent to be present for the hearing.
(4) At the hearing, the court shall consider evidence in the form of oral testimony under oath, affidavit, or declaration, or other admissible evidence, as to all of the following:
(A) Whether the nonminor dependent’s receipt of treatment in the psychiatric residential treatment facility is medically necessary.
(B) Whether there is an available less restrictive setting sufficient to meet the nonminor dependent’s needs, including a less restrictive facility or community-based care.
(C) Whether and how the nonminor dependent has been advised of the nature of inpatient psychiatric services, patient’s rights as identified in Section 6006, and their right to contact a patients’ rights advocate.
(D) Whether and how the probation officer addressed the voluntary admission with the nonminor dependent’s attorney, including whether the nonminor dependent was given the opportunity to confer privately with their attorney about a voluntary admission.
(E) Whether and how the possible voluntary admission was addressed with the child and family team, whether any member of the team objects to voluntary admission, and the reasons for the objection.
(F) The probation department’s plan for the nonminor dependent, as described in Section 16010.10.
(5) (A) The court shall make a finding whether the nonminor dependent has given knowing and intelligent consent to admission. If the court finds that the nonminor dependent has not given knowing and intelligent consent, it shall direct the probation officer to convey its finding to the facility and direct the facility to discharge the nonminor dependent. If the court finds that the nonminor dependent has given knowing and intelligent consent, nothing in this section requires a court order to discharge the nonminor if the nonminor dependent subsequently withdraws their consent.
(B) The court may make any orders necessary to ensure that the probation department promptly makes all necessary arrangements to ensure that the nonminor dependent is discharged in a timely manner and with all services and supports in place as necessary for a successful transition into a less restrictive setting.
(6) The judicial proceedings described in this subdivision shall not delay a nonminor dependent’s access to medically necessary services as defined in Section 14059.5 and Section 1396d(r) of Title 42 of the United States Code, which may include voluntary admission to a psychiatric residential treatment facility for inpatient psychiatric services, while the judicial proceedings are ongoing.
(f) (1) (A) No later than 60 days following the admission of a minor to a psychiatric residential treatment facility, and every 30 days thereafter, the court shall hold a review hearing on the minor’s placement in the facility and the medical necessity of the placement.
(B) If the hearing described in subparagraph (A) coincides with the date for a review hearing pursuant to Section 727.2, the court may hold the hearing simultaneously with the status review hearing.
(C) At the hearing described in subparagraph (A), the court shall consider all of the following:
(i) Whether the minor, or parent or guardian, continues to consent to the voluntary admission made pursuant to this section.
(ii) Whether the minor continues to suffer from a mental disorder which may reasonably be expected to be cured or ameliorated by a course of treatment offered by the facility.
(iii) Whether there continues to be no other available hospital, program, facility, or community-based mental health service which might better serve the minor’s medical needs and best interest.
(iv) Whether the psychiatric residential treatment facility, which is licensed pursuant to Section 4081, continues to meet its legal obligation to provide services to the minor.
(v) The county probation department’s plan as described in subdivisions (c) and (d) of Section 16010.10, and the department’s actions to implement that plan.
(D) If the court finds that the minor or their parent or guardian continues to give voluntary consent to admission, that the minor continues to suffer from a mental disorder which may reasonably be expected to be cured or ameliorated by a course of treatment offered by the facility, and that there continues to be no other available hospital, program, facility, or community-based mental health service which might better serve the minor’s medical need and best interest, the court may authorize continued inpatient psychiatric services for the minor in a psychiatric residential treatment facility. If the child has been in the facility for over 30 days, there shall be a rebuttable presumption that the facility is not the least restrictive alternative to serve the child’s medical need and best interest.
(E) (i) If the court finds that the minor or their parent or guardian no longer consents to the minor’s admission, the court shall direct the probation officer to work immediately with the facility for discharge to a different setting with the appropriate and necessary services and supports in place. A statement from the minor’s attorney that the minor no longer gives voluntary consent to the admission to the facility may be sufficient to support a finding that the minor no longer gives voluntary consent. The court shall set a hearing no later than 30 days to verify that the minor has been discharged. If the minor has not been discharged by the time of the hearing, the court shall issue any and all orders to effectuate the child’s immediate discharge, including exercising its powers under subdivision (b) of Section 727. This paragraph does not preclude involuntary detention of the minor pursuant to the requirements of the Children’s Civil Commitment and Mental Health Treatment Act of 1988 or Lanterman-Petris-Short Act if the minor withdraws voluntary consent. This paragraph does not preclude a parent, guardian, Indian custodian, or the minor’s probation officer or attorney from arranging the minor’s discharge from the facility without a court order.
(ii) If the court’s determination under clause (i) includes a determination that the minor should receive treatment through another hospital, program, facility, or community-based mental health service, the court shall hold a hearing no later than 60 days from the child’s discharge to ensure that the other services have been provided.
(F) If the court determines the psychiatric residential treatment facility, which is licensed pursuant to Section 4081, failed to meet its legal obligation to provide services to the minor, it may direct the social worker to engage with the facility to ensure the minor is receiving all necessary services. If necessary, the court may exercise its powers under subdivision (b) of Section 727.
(G) The court may make any orders necessary to ensure that the county probation department makes all necessary arrangements for the minor’s discharge promptly and that all services and supports are in place for the minor’s successful transition to a different setting. The court may direct the social worker to work with the facility on the child’s aftercare plans as appropriate based on the child’s progress.
(2) (A) No later than 60 days following the admission of a nonminor dependent to a psychiatric residential treatment facility, and every 30 days thereafter, the court shall hold a review hearing on the child or nonminor dependent’s placement in the facility and the medical necessity of that placement.
(B) If the hearing described in subparagraph (A) coincides with the date for a hearing pursuant to Sections 366.31 and 727.25, the court may hold the hearing simultaneously with the status review hearing.
(C) At the hearing in subparagraph (A), the court shall consider all of the following:
(i) Whether the nonminor dependent continues to consent to the voluntary admission made pursuant to this section.
(ii) Whether there is an available less restrictive setting sufficient to meet the nonminor dependent’s needs, including a less restrictive facility or community-based care.
(iii) Whether the nonminor dependent continues to meet medical necessity for care and treatment in the psychiatric residential treatment facility.
(iv) Whether the psychiatric residential treatment facility, which is licensed pursuant to Section 4081, continues to meet its legal obligation to provide services to the nonminor dependent.
(v) The county child welfare agency’s plan as described in subdivisions (c) and (d) of Section 16010.10, and the agency’s actions to implement that plan.
(D) If the court finds at any review hearing that the nonminor dependent continues to voluntarily consent to admission and that the evidence supports the nonminor dependent’s need for care and treatment in the psychiatric residential treatment facility, the court shall enter these findings in the record and direct the probation officer to transmit them to the facility or interdisciplinary team. If the nonminor dependent continues to voluntarily consent to admission, the court may direct the probation officer to work with the facility on the nonminor dependent’s aftercare plans as appropriate based on the nonminor dependent’s needs to achieve independence.
(E) (i) If the court finds that the nonminor dependent no longer voluntarily consents, the court shall direct the probation officer to notify the facility and immediately work with the nonminor dependent and the facility for discharge to a less restrictive setting with the appropriate and necessary services and supports in place. A statement from the nonminor dependent’s attorney that the nonminor dependent no longer gives voluntary consent to the admission to the facility may be sufficient to support a finding that the nonminor dependent no longer gives voluntary consent. The court shall set a hearing no later than 30 days to verify that the nonminor dependent has been discharged. If the nonminor dependent has not been discharged by the time of the hearing, the court shall issue any and all orders to effectuate the nonminor dependents’s immediate discharge, including exercising its powers under subdivision (b) of Section 727. This paragraph does not preclude involuntary detention of the nonminor dependent pursuant to the requirements of the Lanterman-Petris-Short Act if the nonminor dependent withdraws voluntary consent. This paragraph does not preclude the nonminor dependent from arranging their own discharge from the facility without a court order.
(ii) If the court’s determination under clause (i) includes a determination that the nonminor dependent should receive treatment through another hospital, program, facility, or community-based mental health service, the court shall hold a hearing no later than 60 days from the nonminor dependent’s discharge to ensure that the other services have been provided.
(F) This paragraph does not prevent the court from holding review hearings more frequently at its discretion.
(g) (1) The court’s order authorizing a request for admission to a psychiatric residential treatment facility shall be effective until the first of the following events occurs: (1) the parent, guardian, or Indian custodian, or minor if admission was granted pursuant to Section 6552, or nonminor dependent withdraws consent for the minor or nonminor dependent to be present in the psychiatric residential treatment facility, (2) the court finds that the minor or nonminor dependent no longer suffers from a mental disorder that may reasonably expected to be ameliorated by the treatment offered by the facility or that the psychiatric residential treatment facility is no longer the least restrictive setting for the treatment of the minor’s mental health needs, or (3) the court makes a superseding order. This section does not require a court order to discharge a patient if the parent, guardian, Indian custodian, minor, or nonminor dependent withdraw their consent for admission.
(2) Whenever a minor or nonminor dependent is discharged due to revocation of consent to admission, the county probation department shall, within two court days of being notified of the revocation of consent, file a petition pursuant to Section 778 requesting an order vacating the court’s authorization of the minor’s or nonminor dependent’s admission to the facility. This subdivision does not require a court order for the discharge of a minor arranged for by the child’s probation officer or attorney or nonminor dependent when consent to admission has been withdrawn.
(h) At any review hearing pursuant to Section 366.31, 727.2, or 727.25, if a minor or nonminor dependent has been admitted to a psychiatric residential treatment facility, as defined in Section 1250.10, pursuant to the consent of a conservator, the court shall review the probation department’s plan developed pursuant to subdivisions (c) and (d) of Section 16010.10. The court may make any orders necessary to ensure that the probation department promptly makes all necessary arrangements to ensure that the minor or nonminor dependent is discharged in a timely manner and with all services and supports in place as necessary for a successful transition to a less restrictive setting. The court may direct the probation officer to work with the facility or, where appropriate, the minor’s or nonminor dependent’s court-appointed conservator to ensure the minor or nonminor dependent is receiving all necessary child welfare services and to develop the minor’s or nonminor dependent’s aftercare plan as appropriate based on the evidence of the minor’s or nonminor dependent’s progress.
(i) The documentation required by this section shall not contain information that is privileged or confidential under existing state or federal law or regulation without the appropriate wavier or consent.
(j) For purposes of this section, a “psychiatric residential treatment facility” refers to a psychiatric residential treatment facility defined in Section 1250.10 of the Health and Safety Code.
(k) All provisions in this section that apply to nonminor dependents shall apply equally to foster children who remain under juvenile court jurisdiction pursuant to subdivision (a) of Section 303 after reaching the age of majority even if they do not meet the definition of “nonminor dependent” contained in subdivision (v) of Section 11400.

SEC. 11.SEC. 18.

 Section 4336 of the Welfare and Institutions Code is amended to read:

4336.
 (a) As used in this section, “department” means the State Department of State Hospitals.
(b) (1) The department shall implement a growth cap program for all counties for individuals committed pursuant to Section 1370 of the Penal Code. The department shall charge counties penalty payments as described in this subdivision to implement the growth cap program.
(2) The baseline number of individuals determined to be incompetent to stand trial on felony charges for each county shall be the number of felony incompetency determinations made in the 2021–22 fiscal year for each county. For any county with zero felony incompetency to stand trial determinations in the 2021–22 fiscal year, the baseline shall be set at one individual.
(3) (A) Commencing with the 2022–23 fiscal year and each fiscal year thereafter, for each felony incompetent to stand trial determination that exceeds the baseline number identified in paragraph (2), a county shall pay the penalty amount described in subparagraph (C).
(B) The department shall reconcile the total county incompetent to stand trial determinations against the baseline by September 30 each year.
(C) Calculations shall be based on the published per individual rate set forth by the department for state hospital treatment for individuals found incompetent to stand trial on a felony charge, as follows:
(i) Each county shall make penalty payments equivalent to 50 percent of the rate for the 5th, 6th, and 7th individual felony incompetent to stand trial determinations over the baseline, 75 percent of the rate for the 8th and 9th individual felony incompetent to stand trial determinations over the baseline, and 100 percent of the rate for the 10th and all subsequent felony incompetent to stand trial determinations over the baseline.
(ii) (I) Commencing with the 2026–27 fiscal year and each fiscal year thereafter, a county with a felony mental health diversion or community-based restoration contract with the department shall, for the third and any subsequent individual felony incompetent to stand trial determinations over the baseline, make penalty payments equivalent to 100 percent of the rate.
(II) Commencing with the 2026–27 fiscal year and each fiscal year thereafter, any county without a felony mental health diversion or community-based restoration contract with the department shall, for the third and any subsequent individual felony incompetent to stand trial determinations over the baseline, make penalty payments equivalent to 150 percent of the rate.
(D) Commencing with the 2022–23 fiscal year, the department shall periodically notify the superior court and relevant county agencies of each county, including, but not limited to, the county administrator, behavioral health department, sheriff, public defender, and district attorney of the total number of felony incompetent to stand trial determinations made in that county for the current fiscal year compared to the baseline determination for that county.
(E) Commencing with the 2023–24 fiscal year, each county shall remit payment to the department in an amount equal to the amount identified in the invoice issued to the county administrator or their designee by the department. The penalty payment shall be due no later than 90 days after the date that the invoice is received by the county. The penalty funds shall be collected as revenue by the department and deposited by the Controller into the Mental Health Diversion Fund, created pursuant to subdivision (c).
(F) A county may pay these penalty payments from any local funding source available, including funds received by the county through contracts issued by the department to the county for purposes of serving the felony incompetent to stand trial population.
(G) Commencing with the 2023–24 fiscal year, and each fiscal year thereafter, notwithstanding any other budgetary or accounting requirements, the department shall make the final determination of the proper budgeting and accounting of the penalties received, deposited, and disbursed from the Mental Health Diversion Fund to each county as appropriate.
(c) (1) The Mental Health Diversion Fund is hereby created in the State Treasury. The fund shall receive penalty payments from each county as collected by the department pursuant to this section. All moneys in the fund are reserved and continuously appropriated, without regard to fiscal years. The funds collected in the fund shall be used for the purpose of supporting county activities that will divert individuals with serious mental illnesses away from the criminal justice system and lead to the reduction of felony incompetent to stand trial determinations.
(2) Activities supported by the funds collected in the Mental Health Diversion Fund shall include one or more of the following:
(A) Prebooking mental health diversion to serve those with serious mental illness and prevent their felony arrest. The target population that shall be served are individuals demonstrating psychosis manifesting as hallucinations, delusions, disorganized thoughts, or disorganized behavior at the time of the interaction.
(B) Postbooking mental health diversion to serve those with serious mental illness and who are likely to be found incompetent to stand trial, to prevent the incompetent to stand trial determination and divert the individual from incarceration. The target population that shall be served are individuals diagnosed with a mental disorder as identified in the most recent edition of the Diagnostic and Statistical Manual of Mental Disorders, including, but not limited to, bipolar disorder, schizophrenia, and schizoaffective disorder but excluding a primary diagnosis of antisocial personality disorder, borderline personality disorder, and pedophilia, and who are presenting non-substance-induced psychotic symptoms.
(C) Reentry services and support to serve those who have been restored to competency following a felony incompetent to stand trial commitment and directly released to the community from jail.
(d) (1) Beginning in the 2024–25 fiscal year, each county that has received funds from the Mental Health Diversion Fund shall submit an annual report to the department, on or before October 1 of each fiscal year, identifying how funds were used in the prior fiscal year.
(2) The department shall, by no later than July 1, 2024, publish an administrative letter to counties outlining the required form and content of the report.
(3) Annual reports submitted by each county subject to this section shall include, without limitation, the number of individuals served, the services and support provided, and the projected impact to the number of felony incompetent to stand trial determinations by the county.
(e) Commencing with the 2023–24 fiscal year, and each fiscal year thereafter, the department shall submit a schedule to the Controller of disbursements of funds from the Mental Health Diversion Fund to each county. Disbursements for each county shall equal the amount of county payments made to the department in accordance with subdivision (b).
(f) Notwithstanding Chapter 3.5 (commencing with Section 11340) of Part 1 of Division 3 of Title 2 of the Government Code, the department may implement, interpret, or make specific this section by means of a departmental letter or other similar instruction, as necessary.

SEC. 12.SEC. 19.

 No reimbursement is required by this act pursuant to Section 6 of Article XIII B of the California Constitution for certain costs that may be incurred by a local agency or school district because, in that regard, this act creates a new crime or infraction, eliminates a crime or infraction, or changes the penalty for a crime or infraction, within the meaning of Section 17556 of the Government Code, or changes the definition of a crime within the meaning of Section 6 of Article XIII B of the California Constitution.
However, if the Commission on State Mandates determines that this act contains other costs mandated by the state, reimbursement to local agencies and school districts for those costs shall be made pursuant to Part 7 (commencing with Section 17500) of Division 4 of Title 2 of the Government Code.

SEC. 13.SEC. 20.

 Any section of any act enacted by the Legislature during the 2023 calendar year that takes effect on or before January 1, 2024, and that amends, amends and renumbers, adds, repeals and adds, or repeals a section that is amended, amended and renumbered, added, repealed and added, or repealed by this act, shall prevail over this act, whether the act is enacted before, or subsequent to, the enactment of this act.