Every hospital established under this part 3 is for the benefit of the inhabitants of the county and of any person falling sick or who is injured or maimed within its limits. Every inhabitant or person who is not indigent shall pay to the board of public hospital trustees or to the officer it designates for the county public hospital reasonable compensation for occupancy, nursing, laboratories, care, medicine, or attendants according to rules prescribed by the board in order to render the use of the hospital of the greatest benefit to the greatest number.