The hospital may be able to assist him for a special visa... and/or he can consider the visa for medical reasons
Please enquire at the Royal Thai Embassy in the country of citizenship.
Or better / easier to just apply for a 60 day tourist, which can be extended once adding another 30 days. After that, usually one must leave; so not sure if hospital can have a say in his extending without leaving LOS...