The superintendent or the director may release a patient subject to a fourteen-day evaluation and treatment order or a seven-day emergency order if, in the superintendent's or director's opinion, the respondent does not meet the criteria of a person requiring treatment or, before the expiration of the fourteen-day order, the respondent no longer requires inpatient treatment. The court must be notified of the release and the reasons therefor. If the respondent is released because the respondent does not meet the criteria of a person requiring treatment, the court shall dismiss the petition.
N.D.C.C. § 25-03.1-18