Principal/First-Listed Diagnosis and Sequencing by Setting

Key Takeaways

  • The inpatient principal diagnosis is the condition established after study to be chiefly responsible for occasioning the admission.
  • The outpatient first-listed diagnosis is the main reason for the encounter after evaluation, unless a guideline or Tabular note directs otherwise.
  • Codebook notes (Code first, Use additional code, manifestation rules) and special chapter rules can override ordinary sequencing.
  • Identical clinical facts can sequence differently across inpatient, outpatient hospital, emergency, and physician office settings.
Last updated: June 2026

Setting Controls Sequencing

The principal diagnosis for an inpatient admission is, by the UHDDS (Uniform Hospital Discharge Data Set) definition, "the condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital for care." It is not necessarily the admitting symptom, the first condition charted, or the highest-paying code. "After study" is the operative phrase: the diagnosis can change once test results return.

For outpatient and physician encounters there is no principal diagnosis; instead the coder selects the first-listed diagnosis — the condition, problem, or reason chiefly responsible for the service provided, determined after the encounter is evaluated. If no definitive diagnosis is reached in an outpatient encounter, code the documented signs, symptoms, abnormal findings, or reason for the visit. Crucially, outpatient coding never reports a rule-out, probable, suspected, or questionable diagnosis as confirmed.

A further outpatient nuance the CCA tests: for a patient receiving diagnostic services only, sequence first the condition, sign, or symptom that is chiefly responsible for the service; for therapeutic services only, sequence the diagnosis the service is treating; and for preoperative evaluations, sequence the reason for the surgery first, then the appropriate Z01.81- preoperative-exam code, then any findings.

ConceptInpatientOutpatient / physician office
Lead diagnosis termPrincipal diagnosisFirst-listed diagnosis
Defining authorityUHDDS, after studyReason for encounter, after evaluation
Uncertain diagnosisMay be coded if stated at dischargeNever coded as confirmed
Only one allowed?One principal; others are secondaryFirst-listed, then additional dx

Tie-Breaker Rules for Inpatient Principal Diagnosis

The UHDDS rules include several tie-breakers the CCA tests directly:

  • Two or more diagnoses equally meet the definition: either may be sequenced first unless circumstances of the admission, therapy, or another guideline direct otherwise.
  • Symptom followed by contrasting/comparative diagnoses (e.g., "chest pain due to either GERD or angina"): sequence the symptom first if no definitive cause is established, or the related conditions as the principal candidate per the contrasting-diagnoses rule.
  • Two or more comparative/contrasting conditions documented as "either/or": code both as if confirmed and either may be principal.
  • Original treatment plan not carried out: the principal diagnosis is still the condition that occasioned the admission, even if surgery was cancelled.
  • Complication of care that occasioned the admission becomes the principal diagnosis.
  • Admission for treatment of a complication of surgery (e.g., postoperative infection): the complication code is principal when it is the reason for the admission.

A classic CCA item gives an admitting symptom that is later explained by a confirmed condition; the trap answer keeps the symptom as principal. Once the underlying condition is established after study, the symptom yields unless the guidelines specifically direct symptom sequencing.

A Sequencing Decision Aid

  1. Identify the setting: inpatient, outpatient hospital, emergency department, clinic, or physician office.
  2. Identify the reason the patient received care.
  3. Review the final assessment and the record after study.
  4. Apply any Tabular sequencing notes (Code first, Use additional code, manifestation pairs).
  5. Confirm whether documented symptoms are integral or separately reportable.
  6. Validate that every code is supported by documentation.

When the Codebook Overrides You

Instructional notes outrank the general principal/first-listed rule. Etiology/manifestation pairs must be sequenced etiology-first, manifestation-second. Obstetric coding sequences the pregnancy complication that prompted the encounter, with chapter 15 codes taking precedence. Poisonings are sequenced before the manifestation, while adverse effects are sequenced after the condition the drug caused. Sepsis rules require the underlying systemic infection first, then any severe sepsis or organ-dysfunction code.

Z codes are first-listed for certain encounters such as routine well exams or aftercare but cannot lead when an active condition is treated.

Special-Chapter Sequencing Cheats

  • HIV: a patient admitted for an HIV-related condition sequences B20 first, then the related condition(s). A patient with asymptomatic HIV status uses Z21. Once a patient has had an HIV-related illness, never revert to Z21.
  • Newborn (chapter 16): a Z38 "liveborn infant" code is the principal diagnosis on the birth record only, and only once.
  • Sepsis/severe sepsis: code the underlying systemic infection (e.g., A41.9) first; for severe sepsis add an R65.2- code plus the acute organ-dysfunction code, never sequencing R65.2- as principal alone.
  • Poisoning: the poisoning code (e.g., T-code) is sequenced first, then the manifestation. Adverse effect of a correctly administered drug sequences the reaction first, then the drug's T-code with the 5th character 5.
  • Obstetrics (chapter 15): the principal diagnosis is the main complication of the pregnancy that prompted the encounter; chapter 15 codes take sequencing priority, with a Z3A weeks-of-gestation code added when known.
  • Admission from observation or outpatient surgery: the condition that occasioned the inpatient admission becomes principal; if a complication of outpatient surgery prompts admission, that complication is principal.

Quick Worked Example

A patient is admitted with severe sepsis due to a UTI with acute kidney injury. Sequence: N39.0 or the urosepsis-clarified infection per documentation as the underlying infection, A41.9 (sepsis) as the systemic infection if documented, R65.20 (severe sepsis without septic shock), then N17.9 (AKI) as the organ dysfunction. The single most common error is leading with R65.2-, which the guidelines prohibit. The CCA exam routinely hides the correct sequence in a one-line Tabular instruction beneath the code family, so always read the full note before ranking the codes.

Test Your Knowledge

An inpatient is admitted for shortness of breath. After study, the provider documents acute exacerbation of COPD as the reason for the admission. What is the principal diagnosis?

A
B
C
D
Test Your Knowledge

A patient is seen in an outpatient clinic for abdominal pain. The provider documents only "abdominal pain" and reaches no definitive diagnosis. What should be first-listed?

A
B
C
D
Test Your Knowledge

A Tabular note directs "Code first the underlying disease" and "Use additional code for the manifestation," and both conditions are documented. What should the coder do?

A
B
C
D