As part of the külliye (a complex of several facilities like a soup kitchen, Koran school, hospital) the Beyazit II mosque in Edirne there used to contained what we'd now call a psychiatric ward. It has been restored in style, and through very many rooms one is shown how the several types of patiens were treated. Music (some ten musicians practised musical therapy, against pain as well as madness), flowing waters and a fine garden would help them improve. And this far ahead of Pinel! In 2017 I found its former functioned had been adjusted, it now was a mentioned as a Medical School (Psychiatry maybe being part of it). I found a fine explanatory text on the web. Part of the displays had been changed, so I took new pictures. For another medical museum in Kayseri, in good surrounding but with hardly anything to show, click here.
The Medical school existed (as a medical school) for hundreds of years and was one of the best in the country. A professor would earn 60 silver coins a day, his deputy had to make do 7, a librarian got 2, servants would get the same, as would the students of which there were 18.