if you’ve been here 2 years you better check you didn’t receive a visa exempt entry stamp if you left on an extension of stay without a re-entry permit.
hospitals don’t issue visas. The only thing that matters is what is acceptable to the hundred odd Thai Embassy’s around the globe. With the possibility that each might have their own unique requirements.