 Islamic hospitals attained their endowment through charitable donations or bequests, called waqfs.The legal documents establishing a waqf also set forth rules for how the hospital should be organized and operate in relation to the patient, stating that anyone can be admitted irrespective of race, gender, or citizenship.Patients of all socioeconomic statuses would have had access to full treatment, that is, costs were borne by the hospital itself.