Considering that it is NYC, it is amazing, that the doctor got passed the hospital security, with a rifle.

All NYC hospital security, are usually very cautious, in the light of terrorism.

They are also very cautious, because NYC still has the dregs of society, always wanting to rip the hospital off.