Why is that the government's problem? Hospitals can just require payment in advance or the use of some kind of escrow service.
https://asia.nikkei.com/Spotlight/Asia-Insight/Tourism-prove...
Also interestingly enough while searching for the above article, it seems Chinese medical tourism in Thailand is also on the rise.