Medical terms
What is code status?
Code status in medicine refers to a patient’s documented resuscitation preferences and the medical orders that guide the care team if the heart or breathing stops. The most common are full code, do not resuscitate (DNR) and do not intubate (DNI).
Written by Karim Ali, MD, board-certified emergency physician. Last reviewed November 2026.

What it means
In hospitals, a “code” is the emergency response to cardiac arrest (the heart stops pumping effectively) or respiratory arrest (breathing stops). A patient’s code status records which resuscitation treatments they want, or do not want, if that happens.
Without a documented decision, the team attempts resuscitation when it is medically appropriate. So code status is usually discussed and documented at hospital admission, and early in the care of anyone who is seriously ill, to make sure what happens matches what the patient wants.
Is code status the same as code blue?
No. Code blue is a hospital alert, most often used for cardiac or respiratory arrest, that calls the resuscitation team to the bedside. Code status tells that team whether, and how far, to resuscitate. Alert names vary between hospitals.
Full code, DNR and DNI
| Code status | CPR during cardiac arrest | Intubation for respiratory failure |
|---|---|---|
| Full code | Attempted | Permitted |
| DNR, intubation allowed | Not attempted | Permitted |
| DNR and DNI | Not attempted | Not permitted |
These are common combinations. Others may be possible, depending on the clinical situation and hospital policy. Treatments are provided when medically appropriate and consistent with the patient’s goals.
- Full code
- Resuscitation is attempted if the heart or breathing stops. Depending on the situation, this may include cardiopulmonary resuscitation (CPR) with chest compressions, defibrillation (electric shocks), emergency medications and intubation (a breathing tube connected to a ventilator). Full code is the default when no other decision has been documented. It does not mean every possible treatment is appropriate for every patient.
- DNR (do not resuscitate)
- During cardiac arrest, CPR is not attempted: no chest compressions, no shocks to restart the heart and no medications given as part of CPR. It is also written DNAR (do not attempt resuscitation), and some hospitals use “allow natural death.” A DNR order does not, by itself, limit other treatment. Treatment for a dangerous heart rhythm before the heart stops, including electrical cardioversion, may still be offered if it fits the patient’s goals.
- DNI (do not intubate)
- A breathing tube is not placed, so there is no invasive mechanical ventilation. Other breathing support, such as oxygen or noninvasive ventilation through a tight-fitting mask (CPAP or BiPAP), may still be appropriate if it fits the patient’s wishes.
- Individualized resuscitation orders
- Some patients choose specific limits, such as DNR with intubation allowed. Separately, orders that allow only some parts of CPR, such as medications without chest compressions, are sometimes called a “partial” or “limited” code. These choices should be medically appropriate, discussed with the physician and clearly documented, so the team knows exactly what to do in an emergency.
Does DNR mean do not treat?
No. DNR means do not resuscitate, not do not treat. A DNR order applies only during cardiac arrest. A patient with a DNR order who develops pneumonia, for example, may still receive antibiotics, oxygen and intensive care if those treatments are medically appropriate and consistent with their wishes. The same is true of fluids, blood transfusions, surgery and dialysis.
Research has found that clinicians sometimes read more into a DNR order than it says. So the plan for every other treatment deserves its own conversation and its own place in the medical record. Before surgery, the team should confirm whether the DNR order stays in place during the operation. If you are unsure, ask the care team which treatments will continue.
Code status, goals of care and comfort care
Code status answers one question: what to do if the heart or breathing stops. Goals of care answer a wider one: what the patient’s treatment is intended to achieve, given their condition and values.
Comfort-focused care (often called comfort care or comfort measures only) puts relief of pain, breathlessness and distress ahead of treatments aimed at prolonging life. People receiving comfort-focused care usually also have a DNR order. A DNR order on its own does not mean comfort-focused care.
Who decides
A patient with decision-making capacity can accept or decline resuscitation. If the patient cannot decide, a legally authorized surrogate, such as a health care agent named in an advance directive or another decision-maker recognized by state law, decides based on what the patient would want or, if that is not known, what is in their best interests. The care team should support that decision, not leave it to the family alone.
The physician’s role is to explain honestly what resuscitation involves, how likely it is to help and what other treatment will continue, and to give a recommendation. Clinicians are not obliged to provide treatment that would not be medically appropriate. When patients, families and clinicians disagree, hospital processes such as an ethics consultation can help.
Outside the hospital, a portable medical order such as a POLST form, meant for people with serious illness or frailty, tells emergency medical services (EMS) and other clinicians what the person wants. The names, such as POLST, MOLST or POST, and the rules vary by state.
Why the emergency department asks early
In the emergency department, a seriously ill patient may need a breathing tube or resuscitation within minutes. Asking early, while the patient can still answer, lets the team follow their wishes instead of guessing.
Being asked about code status does not necessarily mean the team expects the worst. It is a routine question for anyone who is seriously ill.
Outside the United States
The terms on this page are those used in the United States. Other countries use different words, forms and laws. In the United Kingdom, the term is DNACPR (do not attempt cardiopulmonary resuscitation). In many areas the decision is recorded on a ReSPECT form, which also gives recommendations for other emergency treatment; other areas, including Wales, use their own forms. In Australia, the term is often “not for resuscitation” (NFR), recorded on a resuscitation plan or goals of care form that varies by state and health service.
Common questions
- Is DNR the same as DNI?
- No. DNR is about cardiac arrest: no CPR during cardiac arrest. DNI is about breathing: no breathing tube for invasive mechanical ventilation. A patient may choose one, both or neither, although some combinations, such as CPR without intubation, need an individual discussion because of their clinical limits.
- What does “no code” mean?
- It is informal hospital shorthand for a DNR order. Because shorthand can be misunderstood, the written order and a direct conversation matter more than the phrase.
- Is an advance directive the same as a DNR order?
- No. An advance directive records a person’s wishes and may name someone to make decisions for them. A DNR order is a medical order written by a clinician, often based on those wishes.
- Can code status be changed?
- Yes. A patient with decision-making capacity can change their code status at any time, and it should be revisited when their health or goals change.
References (10)
- Opinion 5.4: Orders Not to Attempt Resuscitation (DNAR). American Medical Association Code of Medical Ethics, 2016.
- Do-not-resuscitate order. MedlinePlus, US National Library of Medicine, 2026.
- The Effect of Do-Not-Resuscitate Orders on Physician Decision-Making. Journal of the American Geriatrics Society, 2002.
- Hospital Do-Not-Resuscitate Orders: Why They Have Failed and How to Fix Them. Journal of General Internal Medicine, 2011.
- Do Not Resuscitate. StatPearls, 2022.
- Part 3: Ethics: 2025 American Heart Association Guidelines for Cardiopulmonary Resuscitation and Emergency Cardiovascular Care. Circulation, 2025.
- Learn What a POLST Form Is, Who It’s For, and How It Helps. National POLST.
- ReSPECT: Recommended Summary Plan for Emergency Care and Treatment. Resuscitation Council UK.
- Where in the UK has adopted the ReSPECT process? Resuscitation Council UK.
- Using Resuscitation Plans in End of Life Decisions (PD2014_030). NSW Ministry of Health, 2014.
Why is the game called Code Status?
Code status is a term I use in everyday practice as an emergency physician. I wanted the game’s name to be memorable, rooted in real medicine and reflective of the decisions we make at the bedside.
Code Status is an interactive emergency medicine simulation where players manage realistic patient cases, make clinical decisions and learn from their consequences. See how it works or browse the cases.
This page is general education, not medical or legal advice. Rules on resuscitation orders vary by state and country. For decisions about your own care or a family member’s, talk with the care team.