Section 356.15 - Expenses1. All charges and expenses for the safekeeping and maintenance of prisoners shall be allowed by the board of supervisors, with the exception of charges and expenses for the following prisoners:a. Those committed or detained by the authority of the courts of the United States, in which cases the United States must pay such expenses to the county.b. Those committed for violation of a city ordinance, in which case the city shall pay expenses to the county.c. Those committed or detained from another state, in which case the governmental entity from the other state sending the prisoners shall pay expenses to the county.2. Notwithstanding the charges and expenses allowed pursuant to subsection 1, the costs of required medical aid furnished to prisoners in the custody of the county sheriff pursuant to section 356.5 shall be paid as specified in sections 356.15A and 804.28.