Stage 8 · ACLS Lab

Megacode case builder

For instructors: build a megacode from the simulator's building blocks (the rhythm, the patient, the setting, an H or T cause, how the arrest progresses), check it against the engine, then play it or share it as a link.

Guidelines: AHA 2020 with the 2023 update and confirmed 2025 changes; PALS 2020 with the 2025 pediatric updates

Reflects the AHA 2020 adult algorithms with the 2023 focused update, updated for the 2025 AHA Guidelines for CPR and ECC where the change could be confirmed; acute coronary syndromes follow the 2025 ACC/AHA guideline and stroke the 2026 AHA/ASA guideline. Pediatric content follows the AHA 2020 PALS algorithms with the 2025 AHA/AAP pediatric updates where confirmed.

Instructor-made cases are not clinically reviewed. Each one is checked against the engine (a model answer must finish it), but the combination is the instructor's. Learners see this label, and built cases never count towards their progress.

The builder needs JavaScript. The reviewed cases are on the megacode page.

Guidelines and sources

Reflects the AHA 2020 adult algorithms with the 2023 focused update, updated for the 2025 AHA Guidelines for CPR and ECC where the change could be confirmed; acute coronary syndromes follow the 2025 ACC/AHA guideline and stroke the 2026 AHA/ASA guideline.

Algorithms and doses follow the AHA 2020 Guidelines for CPR and ECC, adult algorithms (Part 3: Adult Basic and Advanced Life Support, Circulation 2020;142(suppl 2):S366–S468), checked for changes in:

  • 2023 AHA Focused Update on Adult Advanced Cardiovascular Life Support (Circulation 2024;149:e254–e273)
  • 2025 AHA Guidelines for CPR and ECC, Part 9: Adult Advanced Life Support

Changes in the 2025 guidelines reflected here:

  • Synchronized cardioversion of atrial fibrillation: an initial energy of at least 200 J with a biphasic defibrillator is now recommended, rather than a lower first shock.
  • The tachycardia algorithm refers to the device's recommended energy level rather than listing energies for each rhythm.
  • Intravenous access is preferred to intraosseous access as the first attempt in cardiac arrest.
  • Double sequential defibrillation and vector-change defibrillation for refractory VF remain of uncertain benefit.
  • Sotalol is no longer listed in the tachycardia algorithm; procainamide and amiodarone remain.
  • Routine calcium and sodium bicarbonate are not recommended in cardiac arrest; both are kept for specific causes.
  • After ROSC: titrate oxygen to an SpO₂ of 90–98%, keep the MAP at 65 mm Hg or more, and use deliberate temperature control (32–37.5 °C) for patients not following commands.
  • Polymorphic VT is treated as unstable and defibrillated.

Sources:

  1. Panchal AR, et al. Part 3: Adult Basic and Advanced Life Support: 2020 American Heart Association Guidelines for Cardiopulmonary Resuscitation and Emergency Cardiovascular Care. Circulation. 2020;142(16 suppl 2):S366–S468.
  2. Perman SM, et al. 2023 American Heart Association Focused Update on Adult Advanced Cardiovascular Life Support. Circulation. 2024;149:e254–e273.
  3. Lavonas EJ, et al. 2023 American Heart Association Focused Update on the Management of Patients With Cardiac Arrest or Life-Threatening Toxicity Due to Poisoning. Circulation. 2023;148:e149–e184.
  4. Part 7: Adult Basic Life Support. 2025 American Heart Association Guidelines for Cardiopulmonary Resuscitation and Emergency Cardiovascular Care. Circulation. 2025;152(16 suppl 2).
  5. Part 9: Adult Advanced Life Support. 2025 American Heart Association Guidelines for Cardiopulmonary Resuscitation and Emergency Cardiovascular Care. Circulation. 2025;152(16 suppl 2):S538–S577.
  6. Part 10: Adult and Pediatric Special Circumstances of Resuscitation. 2025 American Heart Association Guidelines for Cardiopulmonary Resuscitation and Emergency Cardiovascular Care. Circulation. 2025;152(16 suppl 2).
  7. Part 11: Post–Cardiac Arrest Care. 2025 American Heart Association Guidelines for Cardiopulmonary Resuscitation and Emergency Cardiovascular Care. Circulation. 2025;152(16 suppl 2).
  8. Rao SV, et al. 2025 ACC/AHA/ACEP/NAEMSP/SCAI Guideline for the Management of Patients With Acute Coronary Syndromes. Circulation. 2025;151(13):e771–e862.
  9. Prabhakaran S, et al. 2026 Guideline for the Early Management of Patients With Acute Ischemic Stroke (AHA/ASA). Stroke. 2026. doi:10.1161/STR.0000000000000513.

The full 2025 guideline text could not be opened when this page was drafted; the 2025 changes listed were confirmed from summaries of AHA's published 2025 algorithms and highlights. Drug doses are the 2020 algorithm doses, which those 2025 algorithms keep. All text and pictures here are original teaching material, not reproductions of AHA algorithms. Education only, not a treatment protocol.