We don't usually say that in my dialect. I believe "the hospital" should be allowed in this case.
In the hospital would be 'anns an ospadal' not 'ann an'.
I know. But we must speak in English as a native speaker would.
It's the same as them allowing I want for ag iarraidh even though it doesn't literally mean that.