No person detained under § 34-20A-63 may be detained in any treatment facility for more than five days, excluding Saturdays, Sundays, and legal holidays, except as follows. If a petition for involuntary commitment under § 34-20A-70 has been filed within the five days, excluding Saturdays, Sundays, and legal holidays, the administrator or authorized designee may detain the person until the petition has been heard and determined, but no longer than ten days, excluding Saturdays, Sundays, and legal holidays, after the date the petition was filed.
SDCL 34-20A-69