(J) (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 attained
competence.
(II) There is no substantial likelihood that the defendant will regain
attain 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 attained 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
attain mental competence in the foreseeable future, the committing court shall proceed pursuant to paragraph (2) 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) (b) 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)
(b) 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) (b) 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) (b) 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 medically necessary and 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) (b) 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) (b) 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) (b) 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 incompetence 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 incompetence 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 attain 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
attain 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 (2) 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 attain 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
attaining competency shall also consider the issue of involuntary medication. Each report shall 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), (1), 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),
(1), 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 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) of this subdivision, subparagraph (D) of paragraph (2) of subdivision (a), or paragraph (1) or (4) of subdivision (b) or paragraph (1) of this subdivision
(b), 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) (A) If a defendant is returned to court pursuant to paragraph (1) of this subdivision, subparagraph (D) of paragraph (2) of subdivision (a), or paragraph (1) or (4) of subdivision (b), and the prosecution elects to dismiss and refile charges pursuant to Section 1387, the court shall presume that the defendant is incompetent unless the court is presented with relevant and credible evidence that the defendant is competent. Such evidence may include medical records, witness statements, or reports by qualified medical experts. If the court is satisfied that it has received substantial evidence that the defendant is competent, the court shall proceed as provided in Section 1369. Otherwise, the court shall find that the defendant is not
mentally competent to stand trial and shall proceed as provided in paragraphs (1) and (3).
(B) If the defendant is found incompetent after the refiling of charges, the defendant may be further committed only for the balance of time remaining pursuant to paragraph (1). The maximum term of commitment as specified in paragraph (1) applies to the aggregate of all previous commitments.
(4)
(5) 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)
(6) 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.