If you don't know CPR, you might want to consider learning.
CPR has a much better success rate when something like an electric shock stops an otherwise-healthy person's heart.
The broken ribs were much more painful than the subsequent ICD implant. Although subsequently meeting the people who broke my ribs was actually a very happy and positive experience.
Please learn CPR if you can.
They can save your life in a hospital, but just as easily kill you by mistake or side effect of whatever intervention they are doing. Also, walking (or being able to walk) is very important for longevity.
But the speed of the first response of the cardiac arrest is what matters. Since the brain is without oxygen. Assuming the person makes it to a hospital alive, they'll cool off the body to prevent brain damage. For every minute you survive, your odds get better.
If it wasn't for those meddling Europeans and their stupid taxes, we could get those down to 25, and, and, an errrr....very respectable 'Irish' 14% respectively.
When I had an ICD implanted a few days later the surgical team stressed how massively lucky I'd been. They all stopped what they were doing and stared at me when the lead person read out my case history.
I don't think I had significant neurological issues as a result. Perhaps I should check my HN comment history to see if my rate of karma accrual changed around the date of the event.
The percentage of cardiac arrest survivors with positive outcomes 30 days after release depends on the type of cardiac arrest, and can range from 40% to 82%:
In-hospital cardiac arrest (IHCA) The 30-day survival rate for IHCA is around 25% in the United States and up to 35% in European countries. *In one study, the 30-day survival rate was 40%, with 34% of survivors having good neurological outcomes*.
Out-of-hospital cardiac arrest (OHCA) The probability of survival after OHCA can be increased by providing immediate cardiopulmonary resuscitation (CPR) and using an automated external defibrillator (AED). In one study, *10% of people who experienced OHCA survived with a favorable neurological outcome*.
https://pmc.ncbi.nlm.nih.gov/articles/PMC8359113/