 He immediately ordered his muhtasib Sinan ibn Thabit to examine and prevent doctors from practicing until they passed an examination.From this time on, licensing exams were required and only qualified physicians were allowed to practice medicine.The first few Islamic hospitals that arose in Baghdad, in the early 9th century, were to quarantine those who suffered from leprosy.