 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.Al-Razi's hospital in Baghdad, had 24 physicians on staff; these physicians had diverse specialties, including, physiologists, occultists, surgeons, and bonesetters.