purposes and, except as permitted by Subsections (h) and (l), engage exclusively in performing one or more of the following charitable functions:(1) providing medical care without regard to the beneficiaries' ability to pay, which in the case of a nonprofit hospital or hospital system means providing charity care and community benefits in accordance with Section 11.1801;(2) providing support or