Every hospital owned by or leased to the county shall be used for the benefit of all inhabitants resident within the county in which the hospital is located, and all such persons shall be entitled to occupance, nursing, care, treatment and maintenance according to the rules and regulations prescribed by the county commissioners. The county commissioners may exclude from the use of the hospital any person who willfully violates any rule or regulation adopted for the hospital by said county commissioners. The county commissioners may charge and collect from persons admitted to the hospital or persons legally responsible for their maintenance, reasonable compensation for the care, treatment and maintenance of such persons.
16 P.S. § 2199.8