For those who can't afford to fork significant amount there is a risk distribution mechanism called insurance. Pay for proper insurance and follow the rules, there won't be any need to find 30k.
Acquaintance of mine had bad accident in Samui, weeks in coma, after 2 months ICU and multiple operations he got evacuated to his home country. All in all the bill was probably in the vicinity of 10 mil baht, no issues with insurance payments.