What is the purpose of the doctor visiting the establishment and prisoners?  
The purpose of the doctor visiting the establishment and prisoners is to examine the healthy sides and ensure cleanliness and food-related matters are taken care of.