 The first few Islamic hospitals that arose in Baghdad, in the early 9th century, were to quarantine those who suffered from leprosy.At first, it was considered by many as a "leprosorium" due to its limited purpose; nonetheless, these hospitals still salaried doctors whose specialties were not solely limited to leprosy.The function of these hospitals soon became diversified over time as newly built hospitals in Baghdad began to incorporate the knowledge from Islamic physicians, scientists such as the Al-Razi.