Except as is provided in § 27A-8-10.1, a voluntary patient eighteen years of age or over has the right to immediate discharge upon written notice of his intention to terminate inpatient treatment. Upon informing a staff member of the inpatient psychiatric facility of the intention to terminate inpatient treatment, the facility shall promptly supply the patient with the required written form.
SDCL 27A-8-10