(a) Whenever involuntary commitment proceedings have been commenced as required by K.S.A. 22-3303, and amendments thereto, the prosecuting attorney for the pending criminal proceeding shall have standing, concurrent with the prosecuting attorney of the county in which the hearing is held, to appear at such proceedings, call or inquire of any witness with information relevant to the hearing and offer argument to the court. The defendant's attorney in the pending criminal proceeding shall also have standing to appear at such proceedings, call or inquire of any witness with information relevant to the hearing and offer argument to the court. If the defendant is not committed to a treatment institution or facility as a patient, the defendant shall remain in the institution or facility where committed pursuant to K.S.A. 22-3303, and amendments thereto, until the court has determined that additional evaluation and treatment is no longer warranted pursuant to subsection (d). The prosecuting attorney shall promptly notify the court and the prosecuting attorney of the county where the criminal proceedings are pending for the purpose of providing victim notification of the result of the involuntary commitment proceeding.

(b) Whenever involuntary commitment proceedings have been commenced as required by K.S.A. 22-3303, and amendments thereto, and the defendant is committed to a treatment institution or facility as a patient but thereafter is to be discharged pursuant to the care and treatment act for mentally ill persons, the defendant shall remain in the institution or facility where committed pursuant to K.S.A. 22-3303, and amendments thereto, and the head of the treatment institution or facility shall promptly notify the court and the prosecuting attorney of the county where the criminal proceedings are pending for the purpose of providing victim notification that the defendant is to be discharged from the involuntary commitment.

(c) When giving notification to the court and the prosecuting attorney pursuant to subsection (a) or (b), the treatment institution or facility shall include in such notification an opinion from the head of the treatment institution or facility as to whether or not the defendant is now competent to stand trial. Upon request of the prosecuting attorney, the court may set a hearing on the issue of whether or not the defendant has been restored to competency. If such hearing request is granted, the prosecuting attorney shall provide victim notification regarding the hearing date. Such hearing request shall be filed within 14 days of completion of the notification from the head of the treatment institution or facility pursuant to subsection (a) or (b). The hearing shall take place within 21 days after receipt of the hearing request unless the court finds that exceptional circumstances warrant delay of the hearing. If no such hearing request is made within 14 days after receipt of notice pursuant to subsection (a) or (b), the court shall order the defendant to be discharged from commitment and shall dismiss without prejudice the charges against the defendant, and the period of limitation for the prosecution for the crime charged shall not continue to run until the defendant has been determined to have attained competency in accordance with K.S.A. 22-3302, and amendments thereto. The prosecuting attorney shall provide victim notification regarding the discharge order.

(d) (1) Whenever involuntary commitment proceedings have been commenced as required by K.S.A. 22-3303, and amendments thereto, and the defendant has not been committed or has been released from such commitment pursuant to subsection (a) or (b) but the court determines that a probability still does not exist that the defendant will regain competency within the foreseeable future, the court shall consider the nature of the pending criminal proceedings to determine if additional evaluation and treatment are necessary and:

(A) If the defendant is charged with a misdemeanor or nonperson felony, the court shall dismiss the criminal proceedings without prejudice, and the prosecuting attorney shall provide victim notification.

(B) Except as provided in paragraph (1)(C), if the defendant is charged with a person felony, the court shall provide notice to the parties of the pending criminal proceedings that, unless the prosecuting attorney objects in writing within 14 days of receipt of such notice, the criminal proceedings shall be dismissed without prejudice. If the prosecuting attorney objects, the court shall set the matter for hearing within 14 days after receipt of such objection to determine whether to enter an order of further commitment for additional evaluation and treatment pursuant to paragraph (2). The court may grant a continuance of the hearing for good cause.

(C) If the defendant is charged with an off-grid felony, any nondrug severity level 1 through 3 felony or a violation of K.S.A. 21-3504, 21-3511 or 21-3719, prior to their repeal, or K.S.A. 21-5506(b), 21-5508(b), or 21-5812(b), and amendments thereto, or an attempt, conspiracy or criminal solicitation of an offense described in this subparagraph, the court shall set the matter for hearing to determine whether to enter an order of further commitment for additional evaluation and treatment pursuant to paragraph (2).

(2) At a hearing held pursuant to this subsection, the prosecuting attorney has the burden to establish, by clear and convincing evidence, that there is a compelling state interest in ordering further evaluation and treatment for the defendant. The defendant shall be represented by counsel at such hearing but is not required to be present at the discretion of the court. The defendant's attorney in the pending criminal proceeding shall also have standing to appear at such proceedings, call or inquire of any witness with information relevant to the hearing and offer argument to the court. In making a determination whether there is a compelling state interest in ordering further evaluation and treatment, the court shall review the nature and seriousness of the pending charges, including whether there is probable cause to support the pending charges, and shall consider:

(A) Whether the alleged offenses create a serious risk to public safety and evaluate:

(i) Whether the charge includes an allegation that the defendant actually inflicted bodily or emotional harm on another person or created a reasonable apprehension of bodily or emotional harm to another person;

(ii) the extent of the impact of the alleged offense on public safety;

(iii) the number and nature of related charges pending against the defendant;

(iv) the length of potential confinement if the defendant is convicted; and

(v) the number of potential and actual victims or persons impacted by the defendant's alleged acts;

(B) the prior history of the defendant, including, but not limited to, criminal history, treatment history and history of violence; and

(C) any evidence of whether further treatment is likely to be successful in restoring competency or reducing the risk of offender recidivism.

(3) If the court finds that there is a compelling state interest in ordering further evaluation and treatment of the defendant, the court shall proceed in accordance with K.S.A. 22-3303, and amendments thereto. If the court finds that there is no compelling state interest in ordering further evaluation and treatment, the case shall be dismissed without prejudice, and the prosecuting attorney shall provide victim notification.

History: L. 1977, ch. 121, § 3; L. 1987, ch. 116, § 1; L. 1996, ch. 167, § 44; L. 2010, ch. 61, § 3; L. 2011, ch. 91, § 16; L. 2014, ch. 5, § 2; L. 2022, ch. 76, § 9; L. 2026, ch. 119, § 5; April 30.