section_path: Hospitals
section_name: Hospitals
paragraph_text: Hospitals
  
  The earliest known Islamic hospital was built in 805 in Baghdad by order of Harun Al-Rashid, and the most important of Baghdad's hospitals was established in 982 by the Buyid ruler 'Adud al-Dawla. The best documented early Islamic hospitals are the great Syro-Egyptian establishments of the 12th and 13th centuries. By the tenth century, Baghdad had five more hospitals, while Damascus had six hospitals by the 15th century and Córdoba alone had 50 major hospitals, many exclusively for the military.
  
  The typical hospital was divided into departments such as systemic diseases, surgery, and orthopedics, with larger hospitals having more diverse specialties. "Systemic diseases" was the rough equivalent of today's internal medicine and was further divided into sections such as fever, infections and digestive issues. Every department had an officer-in-charge, a presiding officer and a supervising specialist. The hospitals also had lecture theaters and libraries. Hospitals staff included sanitary inspectors, who regulated cleanliness, and accountants and other administrative staff. The hospitals were typically run by a three-man board comprising a non-medical administrator, the chief pharmacist, called the shaykh saydalani, who was equal in rank to the chief physician, who served as mutwalli (dean). Medical facilities traditionally closed each night, but by the 10th century laws were passed to keep hospitals open 24 hours a day.
  
  For less serious cases, physicians staffed outpatient clinics. Cities also had first aid centers staffed by physicians for emergencies that were often located in busy public places, such as big gatherings for Friday prayers. The region also had mobile units staffed by doctors and pharmacists who were supposed to meet the need of remote communities. Baghdad was also known to have a separate hospital for convicts since the early 10th century after the vizier 'Ali ibn Isa ibn Jarah ibn Thabit wrote to Baghdad's chief medical officer that "prisons must have their own doctors who should examine them every day". The first hospital built in Egypt, in Cairo's Southwestern quarter, was the first documented facility to care for mental illnesses. In Aleppo 's Arghun Hospital, care for mental illness included abundant light, fresh air, running water and music.
  
  Medical students would accompany physicians and participate in patient care. Hospitals in this era were the first to require medical diplomas to license doctors. The licensing test was administered by the region's government appointed chief medical officer. The test had two steps; the first was to write a treatise, on the subject the candidate wished to obtain a certificate, of original research or commentary of existing texts, which they were encouraged to scrutinize for errors. The second step was to answer questions in an interview with the chief medical officer. Physicians worked fixed hours and medical staff salaries were fixed by law. For regulating the quality of care and arbitrating cases, it is related that if a patient dies, their family presents the doctor's prescriptions to the chief physician who would judge if the death was natural or if it was by negligence, in which case the family would be entitled to compensation from the doctor. The hospitals had male and female quarters while some hospitals only saw men and other hospitals, staffed by women physicians, only saw women. While women physicians practiced medicine, many largely focused on obstetrics.
  
  Hospitals were forbidden by law to turn away patients who were unable to pay. Eventually, charitable foundations called waqfs were formed to support hospitals, as well as schools. Part of the state budget also went towards maintaining hospitals. While the services of the hospital were free for all citizens and patients were sometimes given a small stipend to support recovery upon discharge, individual physicians occasionally charged fees. In a notable endowment, a 13th-century governor of Egypt Al-Mansur Qalawun ordained a foundation for the Qalawun hospital that would contain a mosque and a chapel, separate wards for different diseases, a library for doctors and a pharmacy and the hospital is used today for ophthalmology. The Qalawun hospital was based in a former Fatimid palace which had accommodation for 8,000 people – "it served 4,000 patients daily." The waqf stated,
  
  ... The hospital shall keep all patients, men and women, until they are completely recovered. All costs are to be borne by the hospital whether the people come from afar or near, whether they are residents or foreigners, strong or weak, low or high, rich or poor, employed or unemployed, blind or sighted, physically or mentally ill, learned or illiterate. There are no conditions of consideration and payment, none is objected to or even indirectly hinted at for non-payment.