In a hospital, they should have had a crash cart with a defibrillator.
If those can’t do it, I understand, but hospitals have to give it a try.
Typically,unless the patient's past medical history is *known* to be bad or with very old people the code teams would work for an hour or more trying to get the patient to the ICU or the OR.
A personal experience: there was a time when all our ER staff,including administrators like myself,were required to be CPR certified.One day,we had a code come in and the ER happened to be quiet except for that one patient.As a result just about the entire staff was assisting in the code.I,and my boss,were standing by awaiting orders when my boss noticed that the medical student who was doing the chest compressions was getting tired (it's difficult work).He asked me if I wanted to take over for the medical student.I was shocked! "Joe,this is a world famous hospital chock full of the best doctors and nurses in the world.Surely somebody better than me can be doing this" I said. Well,turns out I didn't step in...and it seems *highly* unlikely that the physician running the code would have allowed me to even if I had tried.
Thankfully,my boss didn't hold it against me...I continued to get promotions and raises afterward.