1.2 UHDDS Principal Diagnosis Selection Rules

Key Takeaways

  • 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.'
  • The phrase 'after study' dictates that diagnostic workup, pathology findings, and clinical evaluations performed throughout the hospitalization establish the principal diagnosis retrospectively, rather than the admitting complaint.
  • When two or more comparative or contrasting conditions equally meet the UHDDS definition of principal diagnosis, either condition may be sequenced first unless specific guidelines or tabular conventions dictate otherwise.
  • When an elective admission's original treatment plan is cancelled due to an acute complication or contraindication, the condition that occasioned the admission remains the principal diagnosis.
Last updated: August 2026

UHDDS Principal Diagnosis Selection Rules

AHIMA CCS Exam Focus: Principal diagnosis (PDX) selection directly determines the base Medicare Severity Diagnosis Related Group (MS-DRG), relative weight, and hospital reimbursement. The CCS examination rigorously tests Section II of the Official Guidelines for Coding and Reporting. Candidates must know how to identify the true PDX 'after study,' resolve conflicting diagnoses, handle cancelled surgical procedures, and sequence acute versus chronic conditions.


1. The UHDDS Inpatient Standard & 'After Study'

The Uniform Hospital Discharge Data Set (UHDDS) was adopted by the federal government to establish standardized data elements for all inpatient hospital discharges. In inpatient coding, the Principal Diagnosis is formally defined as:

"The condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital for care."

Decoding 'After Study'

The core phrase 'after study' is the single most critical concept in acute inpatient coding. It signifies that the principal diagnosis is not determined by:

  • The provisional diagnosis written in the Emergency Department (ED).
  • The admitting diagnosis on the physician's intake order.
  • The chief complaint stated by the patient.

Instead, the principal diagnosis is established retrospectively at the time of discharge, incorporating all clinical evaluations, laboratory results, diagnostic imaging, surgical procedures, and pathological examinations performed during the entire inpatient stay.

Patient Journey to Principal Diagnosis:
[ED Presentation: Abdominal Pain / Fever] 
     ⬇️ (Inpatient Admission & Clinical Study)
[Workup: CT Abdomen, Blood Cultures, Surgical Consult, Laparoscopy, Pathology]
     ⬇️ (Discharge Synthesis: 'After Study')
[Final Principal Diagnosis: Acute appendicitis with perforation and localized peritonitis, without abscess, with gangrene (K35.32)]

2. Inpatient Principal Diagnosis Selection Guidelines (Section II)

Section II of the Official Guidelines for Coding and Reporting outlines authoritative rules for selecting the principal diagnosis across diverse clinical circumstances:

Guideline II.A: Symptoms, Signs, and Ill-Defined Conditions

  • Definitive Diagnosis Established: Codes for symptoms, signs, and ill-defined conditions from Chapter 18 (R-codes) are not to be used as a principal diagnosis when a related definitive diagnosis has been established after study.
    • Example: A patient is admitted with acute shortness of breath, bilateral leg edema, and paroxysmal nocturnal dyspnea. Echocardiogram and clinical workup confirm acute decompensated systolic heart failure. Correct PDX: I50.21 (Acute systolic heart failure). The symptoms of dyspnea (R06.00) and edema (R60.0) are integral to heart failure and must not be sequenced as principal or secondary diagnoses.
  • No Definitive Diagnosis Established: If thorough diagnostic workup during the admission fails to reveal an underlying definitive etiology, the symptom or sign that occasioned the admission is assigned as the principal diagnosis.

Guideline II.B: Two or More Comparative or Contrasting Conditions

When inpatient documentation describes two or more comparative or contrasting conditions using diagnostic qualifiers such as "either/or," "versus," "rule out," or "compatible with," and the physician's final diagnostic workup does not establish one over the other:

  • Both conditions are coded as if confirmed (inpatient guideline only).
  • Either diagnosis may be sequenced as the principal diagnosis, provided both conditions were evaluated, treated, and equally met the criteria for inpatient admission.
  • If clinical management was directed predominantly toward one condition (e.g., intensive therapy, invasive testing), that condition should be sequenced first.

Guideline II.C: Two or More Diagnoses That Each Potentially Meet the Definition

In situations where a patient presents with two or more distinct acute conditions that each independently meet the definition of principal diagnosis:

  • Any of these diagnoses may be sequenced first as the principal diagnosis, unless chapter-specific guidelines, the Alphabetic Index, or the Tabular List dictate a specific sequencing hierarchy (e.g., Sepsis, Obstetrics, HIV, Acute Myocardial Infarction).
Clinical PresentationCo-Existing Acute ConditionsInpatient Workup & TreatmentPDX Sequencing Determination
72yo female admitted with severe RLQ pain and concurrent crushing substernal chest pain.1. Acute Appendicitis (K35.80)<br/>2. Acute NSTEMI (I21.4)Emergency cardiac catheterization with stent placement, followed by laparoscopic appendectomy.Either Acute NSTEMI or Acute Appendicitis may be sequenced as PDX. (Both independently necessitated acute inpatient care).
65yo male with severe COPD admitted with acute hypercapnic respiratory failure and concurrent acute sepsis secondary to right lower lobe pneumonia.1. Sepsis (A41.9)<br/>2. Acute Respiratory Failure (J96.01)<br/>3. Lobar Pneumonia (J18.1)Intensive care unit admission, mechanical ventilation, broad-spectrum IV antibiotics, continuous nebulizers.Sepsis (A41.9) must be sequenced as PDX per Chapter 1 specific guidelines (Guideline I.C.1.d), overriding general Guideline II.C.

Guideline II.E: Original Treatment Plan Not Carried Out

When a patient is admitted to an acute inpatient hospital for a specific elective surgery or medical therapy, and the planned procedure is cancelled or postponed due to an acute contraindication, complication, or unforeseen clinical event:

Sequencing When Planned Treatment is Cancelled:
[Principal Diagnosis] ➔ Condition that OCCASIONED the admission (e.g., Osteoarthritis, Colon Mass)
[Secondary Diagnosis] ➔ Acute contraindication / complication (e.g., Acute Atrial Fibrillation)
[Secondary Z-Code]   ➔ Reason for cancellation (e.g., Z53.09 Procedure not carried out due to contraindication)
  • Example: A patient is admitted as an inpatient for elective total hip replacement due to severe primary osteoarthritis of the left hip. Immediately following admission, pre-operative ECG reveals new-onset atrial fibrillation with rapid ventricular response. Surgery is cancelled, cardiology is consulted, and the patient is placed on IV diltiazem. Correct PDX: M16.12 (Unilateral primary osteoarthritis, left hip). Secondary Diagnoses: I48.91 (Unspecified atrial fibrillation), Z53.09 (Procedure not carried out due to contraindication).

Guideline II.F: Admissions Following Outpatient Surgery

When a patient undergoes outpatient ambulatory surgery and is subsequently admitted to the hospital as an inpatient, apply the following three rules:

  1. Admission for Complication: If the inpatient admission is due to a postoperative complication (e.g., uncontrolled bleeding, urinary retention, bowel perforation), sequence the complication code as the principal diagnosis.
  2. Admission for Unrelated Condition: If admitted for an acute condition entirely unrelated to the surgery (e.g., patient suffers an acute stroke or acute MI in recovery), sequence the unrelated acute condition as the principal diagnosis.
  3. Admission for Extended Monitoring / Routine Care (No Complication): If admitted for continuing observation or standard recovery because of pre-existing comorbidities without any documented surgical complication, sequence the condition that occasioned the outpatient surgery as the principal diagnosis.

3. General Sequencing Conventions: Acute vs. Chronic Conditions

According to General Coding Guideline I.B.8 (Acute and Chronic Conditions):

  • When the same condition is described as both acute (or subacute) and chronic, and the Alphabetic Index provides separate acute and chronic subentries at the same indentation level, code both and sequence the acute code first.
  • First check for a combination code. When one code describes both acute and chronic forms, report that combination code rather than separate acute and chronic codes.
Examples to verify in the current Tabular List:
• Acute on chronic systolic heart failure: I50.23 (one combination code)
• Acute and chronic cholecystitis: K81.2 (one combination code)
• Acute and chronic respiratory failure: choose the applicable J96.2- acute-and-chronic combination code, including the documented hypoxia/hypercapnia subtype
• If genuinely separate acute and chronic codes are indexed at the same level and no combination code applies: code both, acute first

4. Inpatient Clinical Case Studies

Case 1: Syncope vs. Sick Sinus Syndrome

  • Documentation: An 81-year-old female presents to the ED following a syncopal episode while gardening. She is admitted to telemetry for syncope evaluation. Continuous cardiac telemetry demonstrates severe sinus pauses of 4.2 seconds, and electrophysiology consult confirms sick sinus syndrome. A permanent dual-chamber pacemaker is successfully implanted.
  • Coding Analysis: The patient presented with syncope (R55), but 'after study,' the definitive underlying etiology responsible for the admission was established as sick sinus syndrome (I49.5).
  • PDX Assignment: I49.5 (Sick sinus syndrome). Syncope is integral to the dysrhythmia and is not coded.

Case 2: Acute Lower GI Bleeding vs. Bleeding Diverticulosis

  • Documentation: A 68-year-old male is admitted with bright red blood per rectum and orthostatic dizziness. Colonoscopy reveals active bleeding from multiple sigmoid diverticula, treated with endoclip placement.
  • Coding Analysis: Gastrointestinal hemorrhage (K92.2) is a symptom code. The definitive diagnosis established after study is diverticulosis of large intestine with hemorrhage.
  • PDX Assignment: K57.31 (Diverticulosis of large intestine without perforation or abscess with bleeding).
Test Your Knowledge

A 64-year-old female is admitted to the acute inpatient hospital for an elective laparoscopic sigmoid colectomy for chronic diverticulitis. Shortly after admission, while awaiting transport to the operating room, she experiences sudden chest tightness and diaphoresis. An ECG confirms an acute ST-elevation myocardial infarction (STEMI). Surgery is cancelled, and the patient is transferred to the cardiac catheterization lab. What is the correct principal diagnosis for this inpatient stay?

A
B
C
D
Test Your Knowledge

An 82-year-old male is admitted with severe confusion, altered mental status, and fever. Diagnostic workup reveals both acute pyelonephritis (E. coli) and acute toxic/metabolic encephalopathy. Both conditions were present on admission, received extensive diagnostic evaluation and intravenous therapy throughout the 5-day stay, and both met criteria for inpatient hospitalization. How should the principal diagnosis be selected?

A
B
C
D
Test Your Knowledge

A patient is admitted with acute-on-chronic respiratory failure with hypoxia due to severe COPD. Which diagnosis code best represents the documented respiratory failure?

A
B
C
D