(1) Nothing in this chapter shall prohibit the superintendent or professional person in charge of the hospital or facility in which the person is being involuntarily treated from releasing him or her prior to the expiration of the commitment period when, in the opinion of the superintendent or professional person in charge, the person being involuntarily treated no longer presents a likelihood of serious harm.
Whenever the superintendent or professional person in charge of a hospital or facility providing involuntary treatment pursuant to this chapter releases a person prior to the expiration of the period of commitment, the superintendent or professional person in charge shall in writing notify the court which committed the person for treatment.
(2) Before a person committed under grounds set forth in RCW
71.05.280(3) or
71.05.320(4)(c) is released under this section, the superintendent or professional person in charge shall in writing notify the prosecuting attorney of the county in which the criminal charges against the committed person were dismissed, of the release date. Notice shall be provided at least thirty days before the release date. Within twenty days after receiving notice, the prosecuting attorney may petition the court in the county in which the person is being involuntarily treated for a hearing to determine whether the person is to be released. The prosecuting attorney shall provide a copy of the petition to the superintendent or professional person in charge of the hospital or facility providing involuntary treatment, the attorney, if any, and the guardian or conservator of the committed person. The court shall conduct a hearing on the petition within ten days of filing the petition. The committed person shall have the same rights with respect to notice, hearing, and counsel as for an involuntary treatment proceeding, except as set forth in this subsection and except that there shall be no right to jury trial. The issue to be determined at the hearing is whether or not the person may be released without substantial danger to other persons, or substantial likelihood of committing criminal acts jeopardizing public safety or security. If the court disapproves of the release, it may do so only on the basis of substantial evidence. Pursuant to the determination of the court upon the hearing, the committed person shall be released or shall be returned for involuntary treatment subject to release at the end of the period for which he or she was committed, or otherwise in accordance with the provisions of this chapter.