In any civil or criminal action brought pursuant to K.S.A. 2023 Supp. 65-6755 or 65-6756, and amendments thereto, upon a motion by either party or sua sponte, the court shall determine whether the anonymity of any woman upon whom an abortion or attempted abortion was performed shall be preserved if such woman does not give consent to the public disclosure of her name. If the court determines that such woman's anonymity should be preserved, then the court shall issue appropriate orders to the parties, witnesses and counsel and shall direct that the court records of the proceedings be sealed and all individuals who are not a party to the action, witnesses or counsel be excluded from the courtroom or hearing room to the extent necessary to safeguard the woman's identity from public disclosure. Each such order shall be accompanied by specific written findings explaining why the anonymity of the woman should be preserved from public disclosure, why the order is essential to that end, how the order is narrowly tailored to serve that interest and why no reasonable less restrictive alternative exists. This section shall not be construed to conceal the identity of the plaintiff or of witnesses from the defendant.
K.S.A. 65-6757