🎓 100% Free — No subscription, no login required. Download your free CPC Study Kit →

ICD-10-CM has two distinct sets of guidelines depending on the care setting — one for outpatient encounters and one for inpatient admissions. These guidelines differ in meaningful ways and applying the wrong set of rules to the wrong setting is one of the most consistently tested error types on the CPC exam. This article makes the differences crystal clear so you always know which rules to apply.

Where the Guidelines Come From

The ICD-10-CM Official Guidelines for Coding and Reporting are published annually by CMS and the NCHS (National Center for Health Statistics). The guidelines are organized into four sections. Section I contains general coding guidelines that apply to all settings. Section II covers inpatient hospital guidelines. Section III covers reporting of additional diagnoses in the inpatient setting. Section IV covers outpatient coding guidelines. On the CPC exam, Sections II and IV are most heavily tested because of their key differences.

Side-by-Side Comparison

🏥 Inpatient Guidelines (Section II)

🏢 Outpatient Guidelines (Section IV)

The Uncertain Diagnosis Rule — The Most Tested Difference

The single most important difference between inpatient and outpatient guidelines — and the one tested most frequently on the CPC exam — is how uncertain diagnoses are handled.

Inpatient — Uncertain Diagnoses Coded as Confirmed

In the inpatient setting, if the physician documents a condition as “probable,” “suspected,” “likely,” “questionable,” “possible,” or “still to be ruled out” at the time of discharge — that condition may be coded as if it were confirmed. The rationale is that the patient has undergone extensive workup during the admission and the physician’s clinical judgment at discharge represents their best assessment.

Words that trigger this rule in the inpatient setting include: probable, suspected, likely, questionable, possible, consistent with, compatible with, and indicative of.

Outpatient — Uncertain Diagnoses NEVER Coded as Confirmed

In the outpatient setting, the opposite rule applies. You never code a probable, suspected, or rule-out diagnosis as confirmed. Instead you code the sign or symptom that brought the patient in for care. The physician has not had the opportunity to complete a full workup and their uncertainty must be reflected in the code assignment.

⚠️ The Most Common Exam Mistake: Applying the inpatient uncertain diagnosis rule to an outpatient scenario. If the CPC exam question describes an office visit or emergency department encounter with “rule out” or “possible” language — code the symptoms. If it describes a hospital admission with “probable” or “suspected” at discharge — code the suspected condition as confirmed. Setting is everything.

Additional Diagnoses — Inpatient vs Outpatient

The rules for what gets coded as an additional diagnosis also differ by setting:

Situation Inpatient Outpatient
Chronic conditions Code if monitored, treated, or affects care Code if documented and affects management
Conditions that develop during stay Code as additional diagnoses Code if present and treated during encounter
Abnormal test findings Code only if clinical significance is documented Code if no definitive diagnosis established
Integral symptoms Do not code separately when diagnosis confirmed Do not code separately when diagnosis confirmed
Uncertain conditions Code as confirmed if documented at discharge Code signs/symptoms — never as confirmed

Settings That Are Always Outpatient

It is important to know which care settings use outpatient guidelines regardless of how the visit is described. These are always outpatient settings governed by Section IV:

⭐ CPC Exam Tip: CPC questions almost always tell you the setting — look for it immediately. Words like “office visit,” “ED encounter,” “outpatient surgery,” or “clinic” tell you to use outpatient Section IV rules. Words like “admitted,” “hospital stay,” or “inpatient” tell you to use Section II rules. Read the setting before answering the question.
💡 Key Fact: The CPC exam primarily tests outpatient coding because the CPC credential focuses on physician office and outpatient coding. Inpatient coding rules appear on the exam but the majority of scenarios are outpatient. When in doubt — default to outpatient rules unless the scenario specifically describes a hospital admission.

When a patient has multiple diagnoses at a single encounter, which one goes first on the claim? The answer depends entirely on the setting — inpatient hospital or outpatient. The terms used are different, the selection rules are different, and mixing them up is one of the most common errors beginner coders make. This article clears up the confusion once and for all.

Two Settings, Two Different Terms

The ICD-10-CM Official Guidelines for Coding and Reporting are divided into separate sections for inpatient and outpatient coding — and for good reason. The rules governing which diagnosis is reported first differ significantly between the two settings. Understanding which term applies in which setting is the foundation of this topic.

🏥 Inpatient — Principal Diagnosis

Used when a patient is admitted to an acute care hospital and occupies a bed overnight. The principal diagnosis is selected after study — meaning after all workup and treatment during the stay is complete.

🏢 Outpatient — First-Listed Diagnosis

Used in physician offices, clinics, emergency departments, same-day surgery, and outpatient settings. The first-listed diagnosis is the main reason for the visit — determined at the time of the encounter.

Principal Diagnosis — Inpatient Rule

The Uniform Hospital Discharge Data Set (UHDDS) defines the principal diagnosis as the condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital for care. Three words in this definition are critical: after study.

This means the principal diagnosis is not necessarily what the admitting physician wrote on the admission order. It is the condition determined — after all testing, imaging, consultations, and treatment during the hospitalization — to be the primary reason the patient needed to be admitted. The admitting diagnosis and the principal diagnosis may be the same, but they are often different once the workup is complete.

Inpatient Principal Diagnosis Selection Rules

💡 Key Point: In the inpatient setting, probable or suspected diagnoses MAY be coded as if confirmed — this is the opposite of the outpatient rule. A hospitalized patient documented as having “probable pneumonia” is coded with the pneumonia code, not just the symptom code.

First-Listed Diagnosis — Outpatient Rule

In the outpatient setting, the term first-listed diagnosis replaces principal diagnosis. The first-listed diagnosis is the main condition treated or investigated during the encounter. For outpatient visits, code the condition to the highest degree of certainty — but do NOT code uncertain diagnoses as confirmed.

Outpatient First-Listed Diagnosis Selection Rules

⚠️ Common Mistake: Applying inpatient rules to outpatient coding. In outpatient settings, you NEVER code a probable, suspected, or rule-out diagnosis as confirmed. If the physician documents “rule out appendicitis,” code the presenting symptom — such as abdominal pain — not the appendicitis. This is the single most frequently tested distinction in this topic area.

Side-by-Side Comparison

Feature Principal Diagnosis (Inpatient) First-Listed Diagnosis (Outpatient)
Setting Acute inpatient hospital admission Physician office, clinic, ED, outpatient surgery
Timing of selection After study — determined at discharge At the time of the encounter
Uncertain diagnoses Code as if confirmed (probable, likely, suspected) Never code as confirmed — code signs/symptoms instead
Governing guidelines UHDDS definition + Section II of ICD-10-CM guidelines Section IV of ICD-10-CM guidelines
Admitting diagnosis Reported separately from principal diagnosis Not applicable

Additional Diagnoses and Comorbidities

Beyond the first-listed or principal diagnosis, additional diagnoses are reported when they affect patient care during the encounter. In the inpatient setting, additional diagnoses are called secondary diagnoses and include comorbidities, complications, and other conditions that require clinical evaluation, therapeutic treatment, diagnostic procedures, extended hospital stay, or nursing care. In the outpatient setting, additional diagnoses are coded when they are treated, affect treatment decisions, or are chronic conditions managed alongside the primary condition.

⭐ CPC Exam Tip: CPC exam questions about diagnosis sequencing almost always specify the setting — look for words like “office visit,” “admitted to hospital,” “emergency department,” or “outpatient surgery.” The setting tells you which rules apply. Outpatient = first-listed = no uncertain diagnoses coded as confirmed. Inpatient = principal = uncertain diagnoses may be coded as confirmed.

Sepsis coding is one of the most frequently tested and commonly misunderstood topics in medical coding. The ICD-10-CM guidelines for sepsis are detailed, specific, and slightly different from how many coders initially approach the condition. This guide breaks down sepsis coding step-by-step so you understand how to identify sepsis, code it correctly, and assign the proper site-of-infection diagnosis.

What is Sepsis?

Sepsis is a life-threatening condition caused by the body’s response to infection. It occurs when microorganisms (bacteria, viruses, or fungi) spread into the bloodstream and trigger a systemic inflammatory response. Sepsis progresses in severity:

⭐ Important Note: In ICD-10-CM, the terminology “severe sepsis” still appears in the guidelines and in clinical documentation. However, the coding structure has evolved to be more precise about organ dysfunction. Always look for documentation of organ failure or dysfunction when coding sepsis.

How to Code Sepsis in ICD-10-CM

Step 1: Identify the Infecting Organism

The first step in coding sepsis is to identify the organism causing the infection. ICD-10-CM requires you to code the specific organism whenever possible. The infecting organism is coded with a code from category A40 (Streptococcal sepsis) or A41 (Other sepsis).

Organism Type ICD-10-CM Code Range
Streptococcal sepsis A40.0–A40.9
Staphylococcal sepsis A41.0–A41.1
Streptococcal pneumoniae A40.3
E. coli sepsis A41.5
Pseudomonas sepsis A41.5
Sepsis, unspecified organism A41.9

Step 2: Code the Site of Infection

Once you’ve identified the organism, you must code the site where the infection originated. This is crucial because the source of infection affects treatment and patient outcomes. Common sites include:

💡 Key Rule: You must code both the sepsis (A40/A41) AND the underlying site of infection. Coding only the sepsis code without the infection site is incomplete. The infection site tells the story of how the sepsis started.

Step 3: Code Associated Organ Dysfunction

If the patient develops severe sepsis or septic shock with acute organ failure, you must code the organ dysfunction. This includes:

The Sepsis Coding Sequence

🏥 Inpatient Sepsis Coding

🏢 Outpatient Sepsis Coding

Real-World Sepsis Coding Examples

Example 1: Sepsis with Pneumonia

Clinical Scenario: 68-year-old admitted with fever, shortness of breath, and low blood pressure. Chest X-ray shows left lower lobe pneumonia. Blood cultures grow Staphylococcus aureus. Patient requires mechanical ventilation.

Codes to Assign:

Why These Codes? The sepsis code comes first because sepsis was the reason for admission. The pneumonia code identifies where the infection originated. The respiratory failure code documents the acute organ dysfunction requiring mechanical ventilation.

Example 2: Urosepsis (Urinary Tract Sepsis)

Clinical Scenario: 82-year-old female with E. coli sepsis secondary to urinary tract infection. Patient has acute kidney injury requiring dialysis.

Codes to Assign:

Why These Codes? E. coli is a Gram-negative organism, so A41.5 applies. The UTI code shows the source. The acute kidney injury code documents the serious complication.

Example 3: Post-Surgical Sepsis

Clinical Scenario: Patient develops streptococcal sepsis on post-op day 3 after abdominal surgery. Source is intra-abdominal abscess from surgical site infection.

Codes to Assign:

Why These Codes? Streptococcal sepsis becomes the principal diagnosis. The peritonitis code identifies the infected site. The procedural complication code shows this is a post-operative infection.

Common Sepsis Coding Mistakes

❌ Mistake #1: Coding only the sepsis code without the site of infection. The site must always be coded as a secondary diagnosis to tell the complete clinical story.
❌ Mistake #2: Using “SIRS” (systemic inflammatory response syndrome) codes instead of sepsis codes. SIRS codes are used only when there is no confirmed infection. If infection is documented, code sepsis, not SIRS.
❌ Mistake #3: Forgetting to code organ dysfunction. If the patient has septic shock, respiratory failure, kidney injury, or coagulopathy — these must be coded separately with their own codes.
❌ Mistake #4: Using a non-specific sepsis code when a specific organism is documented. If E. coli, Staph, or Strep is identified — use the specific code, not A41.9 (unspecified).

Sepsis and Septic Shock — The Key Distinction

Condition Definition ICD-10-CM Code
Sepsis SIRS with confirmed or suspected infection A40–A41
Severe Sepsis Sepsis with acute organ dysfunction (still used in documentation) A40–A41 + organ dysfunction codes
Septic Shock Sepsis with persistent hypotension requiring vasopressor support R57.2 (Septic shock)

When a patient has septic shock, you code both the sepsis code (A40 or A41) AND the septic shock code (R57.2). Septic shock is always a serious complication and the codes work together to paint the complete clinical picture.

⭐ CPC Exam Tip: Sepsis questions on the exam frequently test whether you remember to code the site of infection. A question will describe sepsis and you must identify not just that sepsis occurred, but what the source was. Read carefully for infection sites — UTI, pneumonia, wound infection, abdominal infection, etc.

Summary: The Sepsis Coding Checklist

When you encounter sepsis in a medical record, ask yourself these questions:

  1. Is infection confirmed or suspected? → Code A40 or A41
  2. What organism is documented? → Use specific code (Staph, Strep, Gram-negative, etc.)
  3. What is the source/site of infection? → Code site separately (UTI, pneumonia, abscess, etc.)
  4. Are there complications? → Code respiratory failure, kidney injury, shock, coagulopathy, etc.
  5. Is this severe sepsis or septic shock? → Add appropriate severity/shock codes
  6. What is the principal/first-listed diagnosis? → Usually sepsis if that’s why patient was admitted

Every medical claim submitted to an insurance payer requires two types of codes — procedure codes that describe what was done, and diagnosis codes that describe why it was done. ICD-10-CM is the system used for diagnosis coding in the United States. Understanding how it works is just as important as understanding CPT, and it is tested heavily on the CPC exam. This guide introduces ICD-10-CM from the very beginning.

What Does ICD-10-CM Stand For?

ICD-10-CM stands for the International Classification of Diseases, 10th Revision, Clinical Modification. Let’s break that down:

Why Was ICD-10-CM Created?

The previous system, ICD-9-CM, had been in use since 1979 and had run out of room. With only about 14,000 codes, ICD-9 could not keep up with advances in medicine, new diseases, and the need for more specific documentation. ICD-10-CM solved these problems dramatically — it contains over 70,000 codes, allowing for a level of clinical specificity that was impossible under ICD-9.

More specificity means better data. Better data means more accurate tracking of disease patterns, more precise research, improved public health reporting, and more accurate payment for services. Specificity is the core purpose of ICD-10-CM.

💡 Key Point: ICD-10-CM is used for diagnosis coding in ALL healthcare settings in the United States — outpatient, inpatient, physician offices, home health, hospice, and more. It is required on every claim submitted to Medicare, Medicaid, and most commercial payers.

ICD-10-CM vs ICD-9-CM — Key Differences

Feature ICD-9-CM ICD-10-CM
Code structure 3–5 characters, numeric with some letters 3–7 alphanumeric characters
First character Always a number (except E and V codes) Always a letter
Total codes ~14,000 ~70,000+
Laterality Not specified in most codes Specified — left, right, bilateral
Implementation date 1979–2015 October 1, 2015 to present
Specificity Limited Highly detailed

How ICD-10-CM Codes Are Organized

The ICD-10-CM codebook is divided into two main parts — the Alphabetic Index and the Tabular List. Just like the CPT codebook, you always start in the index and verify in the tabular list — never code from the index alone.

The Alphabetic Index

The Alphabetic Index lists conditions, diseases, symptoms, injuries, and other health problems in alphabetical order. Main terms are listed alphabetically with indented subterms beneath them that narrow down the diagnosis. The index contains three sections: the Index to Diseases and Injuries, the Index to External Causes, and the Table of Neoplasms.

The Tabular List

The Tabular List organizes all ICD-10-CM codes numerically into 21 chapters based on body system or type of condition. Each chapter contains categories, subcategories, and codes with full descriptions, includes and excludes notes, and coding instructions.

The 21 Chapters of ICD-10-CM

Chapter Code Range Content
1 A00–B99 Infectious and parasitic diseases
2 C00–D49 Neoplasms
3 D50–D89 Blood and blood-forming organ diseases
4 E00–E89 Endocrine, nutritional, metabolic diseases
5 F01–F99 Mental, behavioral, neurodevelopmental disorders
6 G00–G99 Nervous system diseases
7 H00–H59 Eye and adnexa diseases
8 H60–H95 Ear and mastoid process diseases
9 I00–I99 Circulatory system diseases
10 J00–J99 Respiratory system diseases
11 K00–K95 Digestive system diseases
12 L00–L99 Skin and subcutaneous tissue diseases
13 M00–M99 Musculoskeletal and connective tissue diseases
14 N00–N99 Genitourinary system diseases
15 O00–O9A Pregnancy, childbirth, and puerperium
16 P00–P96 Perinatal conditions
17 Q00–Q99 Congenital malformations and chromosomal abnormalities
18 R00–R99 Symptoms, signs, abnormal findings
19 S00–T88 Injury, poisoning, external causes
20 V00–Y99 External causes of morbidity
21 Z00–Z99 Factors influencing health status (Z-codes)
⭐ CPC Exam Tip: Memorize the letter ranges for each chapter — especially the high-yield ones. Know that C codes are neoplasms, E codes are endocrine/diabetes, I codes are cardiovascular, S and T codes are injuries, and Z codes are factors influencing health. This lets you navigate the tabular list quickly during the exam.
⚠️ Common Mistake: Confusing ICD-10-CM (diagnosis coding) with ICD-10-PCS (procedure coding). ICD-10-PCS is used only for inpatient hospital procedure coding. The CPC exam tests ICD-10-CM for diagnosis coding and CPT for outpatient procedure coding. ICD-10-PCS is tested on different certifications such as the CIC.

Not every patient visit involves a disease or injury. Sometimes a person comes in for a routine checkup, to receive a vaccine, or simply because they have a family history of cancer and want to be screened. These encounters still require diagnosis codes — and that is exactly what Z-codes are for. Chapter 21 of ICD-10-CM contains the Z-codes (Z00–Z99), and understanding when and how to use them is essential for both the CPC exam and real-world outpatient coding.

What Are Z-Codes?

Z-codes are ICD-10-CM diagnosis codes that describe factors influencing health status and contact with health services — situations that are not classified as diseases or injuries but still explain why a patient is seeking care or provide important context about their health history. They replaced the V-codes used in ICD-9-CM and serve the same general purpose but with far greater specificity.

Z-codes can be used as first-listed diagnoses, as additional diagnoses, or in some cases only as additional diagnoses — never as the primary reason for a visit. Understanding which role a particular Z-code plays is part of mastering their use.

💡 Key Point: Z-codes describe circumstances — not conditions. They answer the question “why is this patient here?” when the answer is not a disease or injury. They are especially important in preventive medicine, screening, follow-up care, and encounters related to family or personal history.

The Six Main Uses of Z-Codes

1. Contact and Exposure to Communicable Disease

Used when a patient has been exposed to a communicable disease but shows no signs of infection. The patient has not yet contracted the disease — the encounter is for evaluation after potential exposure.

Z20.–

Contact with and exposure to communicable diseases

Example: Z20.828 — Contact with and exposure to COVID-19

2. Inoculations and Vaccinations

Used when the sole reason for the encounter is to receive a vaccine. The Z-code is the first-listed diagnosis and the vaccine administration CPT code captures the procedure.

Z23

Encounter for immunization

Used as first-listed diagnosis for all vaccination encounters regardless of vaccine type

3. Status Codes

Status codes indicate that a patient has a particular health status — such as having a device implanted, being a carrier of a disease, or having undergone a past procedure that affects current care. Status codes are typically used as additional codes alongside the primary diagnosis.

Z79.4

Long-term use of insulin

Added when a Type 2 diabetic patient uses insulin — one of the most commonly used status codes

Z95.1

Presence of aortocoronary bypass graft

Documents that the patient has had prior CABG surgery — affects ongoing cardiac care decisions

4. History Codes

History codes capture significant past conditions that no longer exist but are relevant to current care. Personal history codes (Z86–Z87) document the patient’s own past conditions. Family history codes (Z80–Z84) document conditions in blood relatives that increase the patient’s own risk.

Z85.3

Personal history of malignant neoplasm of breast

Used after breast cancer has been successfully treated and is no longer active — important for ongoing surveillance coding

Z82.49

Family history of ischemic heart disease and other diseases of the circulatory system

Documents increased cardiovascular risk based on family history — supports medical necessity for preventive screenings

5. Screening Codes

Screening codes are used when a patient with no signs or symptoms undergoes a test to detect a condition before it causes problems. The screening Z-code is the first-listed diagnosis for these encounters.

Z12.11

Encounter for screening for malignant neoplasm of colon

Used for routine colonoscopy screening in patients with no GI symptoms — the screening code, not a symptom, is first-listed

6. Observation and Evaluation

Used when a patient is observed after a suspected condition that is ultimately ruled out. The patient is observed but no disease or injury is confirmed at the end of the encounter.

Z03.89

Encounter for observation for other suspected diseases and conditions ruled out

Used when a patient is evaluated for a suspected condition that is ultimately not confirmed during the encounter

Most Commonly Tested Z-Codes for the CPC Exam

Z-Code Description First-Listed or Additional?
Z00.00 Encounter for general adult medical examination without abnormal findings First-listed
Z23 Encounter for immunization First-listed
Z12.11 Encounter for screening for colon cancer First-listed
Z79.4 Long-term use of insulin Additional only
Z79.01 Long-term use of anticoagulants Additional only
Z87.891 Personal history of nicotine dependence Additional only
Z85.3 Personal history of breast cancer Additional only
Z34.– Encounter for supervision of normal pregnancy First-listed
Z51.11 Encounter for antineoplastic chemotherapy First-listed
Z96.641 Presence of right artificial knee joint Additional only
⭐ CPC Exam Tip: CPC exam questions about Z-codes often test two things — whether the Z-code is appropriate as a first-listed diagnosis, and whether the correct Z-code is chosen over a disease code. Key rule: if a confirmed disease exists and is being treated, the disease code leads. The Z-code for history or screening only leads when there is no active disease being treated at that encounter.
⚠️ Common Mistake: Using a personal history Z-code when the condition is still active. If a patient currently has cancer, code the active cancer — not the personal history code. Personal history codes (Z85–Z87) are only used after the condition has been resolved, cured, or is no longer present.
📥 Free Study Kit

Get Your Free CPC Study Kit

6 free study guides delivered to your inbox. CPT cheat sheets, ICD-10 summary, and 90-day planner — all in one kit.

No spam. Unsubscribe anytime. Not affiliated with AAPC®.