Running a code blue means coordinating a rapid, organized response to a patient in cardiac arrest. Whether you’re the first nurse at the bedside or assigned to a specific team role, your effectiveness depends on knowing the sequence of actions, communicating clearly, and executing your role without hesitation. Here’s how each phase works from the nursing perspective.
First 60 Seconds: Discovery to Activation
The moment you find an unresponsive patient, your priorities are simple: confirm the arrest, call for help, and start compressions. Check for a pulse and breathing. If the patient is pulseless, activate the code (press the code blue button or call the operator) and begin chest compressions immediately. Pull the bed away from the wall if you can, lower the head of the bed flat, and get the backboard under the patient as soon as someone brings the crash cart.
Before compressions begin, or as soon as another team member arrives, someone needs to verify the patient’s code status. This means checking the chart for advance directives or a do-not-resuscitate order. If the patient is a full code, resuscitation proceeds. Assign someone specifically to pull up the chart if you don’t already know.
Establishing the Code Leader
Every code needs one person directing traffic. In many hospitals, the first physician or advanced practice provider on scene assumes this role, but until they arrive, the primary nurse or charge nurse often fills it. UCSF’s code blue protocol recommends a clear introduction: “I am [your name], I am the code leader. Does the patient have a pulse? No? [Name], start chest compressions.” That directness sets the tone. Stand where everyone can see and hear you, and begin assigning tasks immediately.
Even after a physician takes over as code leader, your role as the primary nurse remains critical. You’re the person who knows this patient: their history, their last set of vitals, their labs, their medications. Be ready to relay that information quickly and concisely.
Nursing Roles During the Code
A well-run code distributes work across several clearly defined roles. Not every hospital labels them identically, but the core functions are the same.
- Primary nurse: Calls the code, initiates compressions until relieved, and serves as the main source of patient information for the code leader. You’ll review the chart for recent orders, last vital signs, lab results, and advance directives.
- Secondary nurse: Brings the patient chart and alternates with the primary nurse on compressions. CPR providers should switch every two minutes to prevent fatigue from degrading compression quality.
- Medication nurse: Pulls medications from the crash cart and prepares them for administration as the code leader calls for them. You hand each syringe to the nurse managing IV access, confirming the drug name and dose out loud.
- Recorder: Applies defibrillator pads, manages the defibrillator and transcutaneous pacemaker, troubleshoots equipment issues, and documents everything on the code record: medication names, doses, times, rhythm changes, pulse check results, and all interventions.
In addition to these roles, someone needs to establish IV or intraosseous access if the patient doesn’t already have a line, and someone needs to manage the airway with a bag-valve mask until the team is ready to place an advanced airway. The code leader should assign each of these tasks by name, not by asking for volunteers.
Closed-Loop Communication
Verbal chaos is the fastest way for a code to fall apart. The standard for high-stakes medical communication is a three-step loop. The code leader gives an order using the team member’s name: “Sarah, give 1 mg epinephrine IV push.” Sarah repeats it back: “1 mg epinephrine IV push, confirmed.” After completing the task, Sarah announces it: “Epinephrine 1 mg given.” That closes the loop. Every order, every medication, every task follows this pattern. Team members should also call out any change in the patient’s condition or rhythm without waiting to be asked.
Compressions, Rhythms, and Defibrillation
High-quality chest compressions are the single most important intervention during cardiac arrest. Compress hard and fast, at least two inches deep, at a rate of 100 to 120 per minute, and allow full chest recoil between compressions. Switch compressors every two minutes, ideally during pulse and rhythm checks, because compression quality drops significantly with fatigue even when the compressor doesn’t feel tired.
At each two-minute pause, the team checks the rhythm on the monitor. If the rhythm is ventricular fibrillation or pulseless ventricular tachycardia, it’s shockable. Biphasic defibrillators, which are standard in most hospitals, deliver an initial shock between 120 and 200 joules depending on the manufacturer’s setting. Each subsequent shock should be at equal or greater energy, stepping up until the maximum dose is reached. After every shock, compressions resume immediately for another two minutes before rechecking.
If the rhythm is asystole (flatline) or pulseless electrical activity, the rhythm is not shockable. The team continues compressions and administers medications while working to identify and treat reversible causes.
Monitoring Compression Quality With CO2
If capnography is available, end-tidal CO2 readings give real-time feedback on how well compressions are generating blood flow. A reading below 10 mmHg after 20 minutes of resuscitation suggests very poor perfusion, and the chance of achieving a return of spontaneous circulation at that point drops to roughly 0.5%. Readings at or above 20 mmHg are more favorable. Perhaps the most useful signal is the trend: a rising CO2 value is a strong predictor of successful resuscitation. A sudden, sharp spike in CO2 often signals that the heart has restarted, sometimes before a pulse is even palpable.
What the Recorder Documents
The recorder’s job is one of the most demanding roles because it requires watching everything while also managing the defibrillator. The code record captures the patient’s initial rhythm when the arrest was discovered (asystole, pulseless electrical activity, ventricular tachycardia, or ventricular fibrillation), the time compressions started, the time the backboard and defibrillator pads were placed, and every intervention that follows.
For each medication, document the drug, dose, route, and exact time given. For each defibrillation attempt, record the energy level and the resulting rhythm. Note every pulse check and its result. If an advanced airway is placed, document who placed it, the time, the tube size, the depth at the teeth or gums, and how placement was confirmed (typically with a CO2 detector). The record should also capture IV and intraosseous access attempts, lab draws, blood gas results, and any blood products given. Accurate timestamps matter enormously for post-code review and quality improvement.
Crash Cart Familiarity
You should know the layout of your unit’s crash cart before you ever need it. Crash carts follow standardized organization so that any nurse can find what they need under pressure. Airway equipment, including bag-valve masks, oral airways, laryngoscope blades, and endotracheal tubes, is typically on top or in the uppermost drawer. Resuscitation medications are stored in a separate, clearly labeled drawer. IV supplies, syringes, and fluid bags occupy their own compartments. Blood draw tubes and specimen containers are usually grouped together as well.
The Joint Commission requires consistent organization and correct labeling of medications across crash carts within a facility. If your unit checks crash carts on a schedule, take those checks seriously. Knowing that the second drawer holds your cardiac drugs and that epinephrine is in the front row saves critical seconds during an actual code.
After the Heart Restarts
When a patient achieves return of spontaneous circulation, the code isn’t over. Nursing priorities shift to stabilization across multiple body systems simultaneously. Initiate continuous cardiac monitoring, pulse oximetry, capnography, and frequent blood pressure checks. These give the team real-time information about tissue oxygenation and perfusion.
Assess the patient’s neurological status using a standardized scale like the Glasgow Coma Score. Check the abdomen for distension or guarding. The team will also evaluate for complications caused by CPR itself, such as rib fractures or pneumothorax. Ventilation and oxygenation need to be closely managed, as does blood pressure support. The focus broadens to identifying what caused the arrest in the first place and treating it, while also considering targeted temperature management for patients who remain unresponsive.
Practicing Before It Happens
The nurses who perform best during codes are the ones who’ve rehearsed. Simulation-based training, even informal practice with your team, builds the muscle memory and role clarity that prevent hesitation. Practice closed-loop communication until it feels natural. Run through crash cart contents until you can find epinephrine with your eyes half-closed. Volunteer for the recorder role during simulations so the documentation flow isn’t foreign when it counts. The more automatic the mechanics feel, the more cognitive bandwidth you’ll have for the decisions that actually require thinking.

