When detention or temporary housing services are provided by a local mental health center to individuals awaiting a commitment hearing, charges for such services may be assessed to the county of residence of the individual provided, however, the provisions of chapter 28-14 shall not apply. Costs shall be based on a schedule of usual, ordinary, and reasonable charges for such services as approved by the department or by agreement with the county.
SDCL 27A-5-17