Yes, the meanings are the same here, and the article is required in front of these singular nouns ('hospital' in the sense of a building takes an article in both AmE and BrE). 'Used to be' stresses the beforehandedness of 'was'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.