A patient involuntarily committed shall be discharged when, in the opinion of the administrator, or facility director, or if the person is not committed to an inpatient psychiatric facility, the director of the program, the patient no longer meets the commitment criteria.
SDCL 27A-14-2