A respondent may, at any time, request the court to terminate or modify an order of the court, in which case a hearing must be held in accordance with this chapter. Upon its own motion, the court may conduct a hearing to determine if the conditions requiring the confinement or restriction of the respondent continue to exist. Notice of at least five days, but no more than ten business days, must be provided to all parties to the hearing under this section. If the court, at a hearing held upon motion of the respondent or its own motion, finds that the conditions requiring confinement or restriction no longer exist, the court shall order the immediate release of the respondent. If the court finds that the conditions continue to exist but that a different remedy is appropriate under this chapter, the court may modify its order accordingly.
N.D.C.C. § 23-07.6-10