The governing body or board of county commissioners is responsible for securing bedclothing, laundry, board, nursing when required, and all necessaries for the comfort and welfare of the prisoners.
If a prisoner or any person under arrest receives medical treatment pursuant to this section for which the governing board or board of county commissioners is liable, the receipt of such medical treatment shall, as to the person receiving such treatment, operate as an assignment by operation of law of any rights to medical support, insurance proceeds, or both, that the prisoner or person under arrest may have for himself. Any rights or amounts so assigned shall be applied against the cost of medical care paid under this section. Any payments made under this section for medical care not recovered shall constitute a lien pursuant to § 28-14-1.
SDCL 24-11-21