I probably would have done what you did. But, modern fire alarm systems only close fire doors if the smoke detectors on either side of the door detect smoke. Otherwise, they remain open to make evacuation easier. Sounds like the hospital's fire alarm system is older, or it did not function correctly. BTW, I assume that you felt the door first for heat before you opened it, just in case there was fire on the other side.
_________________________
"We are not allowed to stop thinking"