When inpatient services are provided by a local mental health center to an individual pursuant to this title, charges for such treatment may be assessed to the individual, to any third party resource available, to a legally responsible person, to the county of residence according to chapter 28-13 if the individual is indigent or to the department through contract with the mental health center.
SDCL 27A-5-16