If any person is admitted to a state facility, the resident and any legally responsible person is liable for the cost of the care, support, maintenance, and treatment of such persons to the extent and in the manner provided by this title. If the resident is not a proper charge of any county but is a charge of the federal government, the costs shall be assessed against the appropriate agency of the federal government.
SDCL 27A-13-4