FY 2027 MEDESUN®
Home›Selection of principal diagnosis Section II
Section II · FY 2027

Selection of principal diagnosis — Section II

The UHDDS definition, and the eleven rules that decide which of several conditions is sequenced first on an inpatient record.

Guidelines effective October 1, 2026 – September 30, 2027

The circumstances of inpatient admission always govern the selection of the principal diagnosis. The UHDDS defines it as that condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital for care. Two things outrank these guidelines: the coding conventions in the Tabular List and the Alphabetic Index.

Principal diagnosis (UHDDS)"that condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital for care"Symptom + definitive dxthe definitive diagnosisis principal — II.ATwo interrelated conditionseither may be sequencedfirst — II.BTwo equally meetingthe definitioneither may be sequencedfirst — II.C"Either / or" diagnosescode both as confirmed— II.DTreatment plan not carried outthe condition that occasioned theadmission is still principal — II.FComplication of surgery or carethe complication is the principaldiagnosis — II.G"Probable" at dischargecode it as if established — II.HINPATIENT ONLYOutpatient (Section IV): the term is FIRST-LISTED diagnosis, the UHDDS definition does not apply, and uncertain diagnoses (probable, suspected, rule out) are NEVER coded — code the signs, symptoms or findings instead
Section II — principal diagnosis rules A to K

The UHDDS definitions are used by hospitals to report inpatient data elements in a standardised manner, and can be found in the Federal Register of 31 July 1985 (Vol. 50, No. 147), pp. 31038–40. Their application has since been expanded to all non-outpatient settings — acute care, short term, long term care and psychiatric hospitals, home health agencies, rehabilitation facilities, nursing homes — and they also apply to hospice services at all levels of care.

The eleven principal diagnosis rules#

RuleWhat to do
ASymptoms, signs and ill-defined conditionsNEVER Chapter 18 codes are not used as principal diagnosis when a related definitive diagnosis has been established
BTwo or more interrelated conditions, each potentially meeting the definitionEither condition may be sequenced first — unless the circumstances of the admission, the therapy provided, the Tabular List or the Alphabetic Index indicate otherwise. Interrelated means diseases in the same chapter, or manifestations characteristically associated with a certain disease
CTwo or more diagnoses that equally meet the definitionIn this unusual instance, where the circumstances of admission, the diagnostic workup and/or therapy provided, the Index, the Tabular List and other guidelines give no sequencing direction, any one of them may be sequenced first
DTwo or more comparative or contrasting conditions documented as “either/or”They are coded as if the diagnoses were confirmed and sequenced according to the circumstances of the admission. If no further determination can be made, either may be sequenced first
EA symptom followed by contrasting or comparative diagnosesEXCEPTION Guideline deleted effective October 1, 2014
FOriginal treatment plan not carried outSequence as principal diagnosis the condition which, after study, occasioned the admission — even though treatment may not have been carried out due to unforeseen circumstances
GComplications of surgery and other medical careThe complication code is the principal diagnosis. If the complication is classified to T80–T88 and that code lacks the necessary specificity, assign an additional code for the specific complication
HUncertain diagnosisA diagnosis qualified at discharge as probable, suspected, likely, questionable, possible, still to be ruled out, compatible with, consistent with, or other similar terms, is coded as if it existed or was established. EXCEPTION Applicable only to inpatient admissions to short-term, acute, long-term care and psychiatric hospitals
I.1Admission following medical observationWhere a patient is admitted to observation for a medical condition which worsens or does not improve, and is subsequently admitted as an inpatient of the same hospital for that same condition, the principal diagnosis is the medical condition which led to the hospital admission
I.2Admission following post-operative observationWhere a patient is admitted to observation to monitor a condition or complication developing after outpatient surgery, and is subsequently admitted as an inpatient of the same hospital, apply the UHDDS definition of principal diagnosis
JAdmission from outpatient surgeryReason for the inpatient admission is a complication → the complication is the principal diagnosis.
No complication or other condition documented as the reason → the reason for the outpatient surgery is the principal diagnosis.
Reason is another condition unrelated to the surgery → the unrelated condition is the principal diagnosis
KAdmissions or encounters for rehabilitationSequence first the code for the condition for which the service is being performed. See the table below for the three variants

Rehabilitation admissions — three variants#

SituationFirst-listed / principalExample
The condition for which rehabilitation is provided is still presentThe code for that conditionRehabilitation for right-sided dominant hemiplegia following a cerebral infarction → I69.351
The condition is no longer present, and the rehabilitation does not follow an injuryThe appropriate aftercare codeSevere degenerative osteoarthritis of the hip, hip replacement performed, current admission for rehabilitation → Z47.1 aftercare following joint replacement surgery
Rehabilitation following active treatment of an injuryThe injury code with the appropriate 7th character for subsequent encounterRehabilitation post hip replacement for a right intertrochanteric femur fracture → S72.141D

Where the uncertain-diagnosis rule does and does not apply#

SettingUncertain diagnosisGuideline
Inpatient — short-term, acute, long-term care and psychiatric hospitalsALWAYS Coded as if it existed or was established, based on the diagnostic workup, arrangements for further workup or observation, and the initial therapeutic approachSection II.H and Section III.C
Hospital outpatient and provider officeNEVER Not coded. Code the condition to the highest degree of certainty for that encounter — symptoms, signs, abnormal test results, or other reason for the visitSection IV.H
EXCEPTION HIV, Zika virus and COVID-19NEVER Never coded as confirmed on an uncertain statement, in any setting — three explicit exceptions to Section II.HSection I.C.1.a.1, I.C.1.f.1, I.C.1.g.1.a
EXCEPTION Influenza J09 and J10NEVER Only confirmed cases — another exception to Section II.H. Suspected, possible or probable → J11Section I.C.10.c

Practice questions#

Q1A patient is admitted for a scheduled cholecystectomy for symptomatic cholelithiasis. The surgery is cancelled because of an equipment failure in theatre and the patient is discharged the next day. What is the principal diagnosis?

  1. AA code from Z53 for a procedure not carried out
  2. BThe cholelithiasis
  3. CThe equipment failure
  4. DNo principal diagnosis may be assigned
Show answer & rationale

Correct answer: B. The cholelithiasis

Rationale. Section II.F states that where the original treatment plan is not carried out, the principal diagnosis is the condition which, after study, occasioned the admission to the hospital, even though treatment may not have been carried out due to unforeseen circumstances. A Z53 code may be reported additionally to explain the circumstance, but it does not displace the condition that occasioned the admission.

Q2A patient is admitted to observation for chest pain, which worsens, and is then admitted as an inpatient of the same hospital for that same condition. What is the principal diagnosis?

  1. AAn observation Z code
  2. BThe medical condition which led to the hospital admission
  3. CThe chest pain symptom code in every case
  4. DWhichever condition produces the higher-weighted DRG
Show answer & rationale

Correct answer: B. The medical condition which led to the hospital admission

Rationale. Section II.I.1 states that when a patient is admitted to an observation unit for a medical condition which either worsens or does not improve, and is subsequently admitted as an inpatient of the same hospital for that same medical condition, the principal diagnosis is the medical condition which led to the hospital admission. What that condition is depends on what was established after study.

Q3A patient has outpatient surgery at a hospital and is admitted as an inpatient at the same hospital for a condition entirely unrelated to the surgery. What is the principal diagnosis?

  1. AThe reason for the outpatient surgery
  2. BThe unrelated condition
  3. CA complication code
  4. DEither, at the coder's discretion
Show answer & rationale

Correct answer: B. The unrelated condition

Rationale. Section II.J sets out three outcomes for admission from outpatient surgery: if the reason for the inpatient admission is a complication, the complication is the principal diagnosis; if no complication or other condition is documented as the reason, the reason for the outpatient surgery is the principal diagnosis; and if the reason is another condition unrelated to the surgery, the unrelated condition is the principal diagnosis.

Q4A discharge summary documents “pneumonia versus pulmonary embolism” with no further determination. This is an acute inpatient admission. How is this coded?

  1. ACode the symptoms only
  2. BCode both as if confirmed; either may be sequenced first
  3. CCode only the pneumonia, as the more likely diagnosis
  4. DQuery the provider and assign nothing until the query is answered
Show answer & rationale

Correct answer: B. Code both as if confirmed; either may be sequenced first

Rationale. Section II.D states that in those rare instances when two or more contrasting or comparative diagnoses are documented as either/or, or similar terminology, they are coded as if the diagnoses were confirmed and are sequenced according to the circumstances of the admission — and that if no further determination can be made as to which should be principal, either diagnosis may be sequenced first.

Q5A patient is admitted for rehabilitation following active treatment of a displaced intertrochanteric fracture of the right femur, treated with hip replacement. What is the principal diagnosis?

  1. AZ47.1 aftercare following joint replacement surgery
  2. BS72.141D, the injury code with the 7th character for subsequent encounter
  3. CZ51.89
  4. DThe osteoarthritis code
Show answer & rationale

Correct answer: B. S72.141D, the injury code with the 7th character for subsequent encounter

Rationale. Section II.K states that for rehabilitation services following active treatment of an injury, the injury code with the appropriate seventh character for subsequent encounter is assigned as the first-listed or principal diagnosis, and uses this exact example: rehabilitation post hip replacement for a right intertrochanteric femur fracture is reported with S72.141D. The aftercare code Z47.1 applies only where the rehabilitation does not follow an injury.

Scenarios#

Scenario 1Two interrelated conditions in the same chapter

A patient is admitted with both acute systolic heart failure and atrial fibrillation with rapid ventricular response. Both were present on admission, both were treated, and the record does not identify one as chiefly responsible.

Show coded answer & rationale
SeqCodeDescription
1Eitherthe acute systolic heart failure code, or the atrial fibrillation code, as principal diagnosis
2The otheras a secondary diagnosis

Rationale. Section II.B states that when there are two or more interrelated conditions — such as diseases in the same ICD-10-CM chapter — each potentially meeting the definition of principal diagnosis, either condition may be sequenced first, unless the circumstances of the admission, the therapy provided, the Tabular List or the Alphabetic Index indicate otherwise. Read the Tabular List notes before finalising: an instructional note would override this guideline under Section I.A.

Guideline: Section II.B; Section I.A

Scenario 2A complication that drives the admission

A patient discharged after a knee arthroplasty is readmitted eight days later with a periprosthetic joint infection documented by the surgeon as a complication of the arthroplasty.

Show coded answer & rationale
SeqCodeDescription
1T84.5-Infection and inflammatory reaction due to internal joint prosthesis, with the appropriate 7th character — principal diagnosis
2Organisman additional code identifying the infectious agent
3Specificityan additional code for the specific complication where the T code lacks necessary specificity

Rationale. Section II.G states that when the admission is for treatment of a complication resulting from surgery or other medical care, the complication code is sequenced as the principal diagnosis, and that if the complication is classified to the T80-T88 series and lacks the necessary specificity, an additional code for the specific complication should be assigned. Section I.B.16 requires the provider's documentation of the relationship, which is present here. Section I.C.19.a clarifies that for complication codes, active treatment refers to treatment for the condition described by the code even though it relates to an earlier precipitating problem.

Guideline: Section II.G, I.B.16, I.C.19.a

Scenario 3A symptom that cannot be principal

A patient is admitted with severe abdominal pain. After study the provider establishes acute diverticulitis of the colon with abscess as the cause.

Show coded answer & rationale
SeqCodeDescription
1K57.2-Diverticulitis of large intestine with perforation and abscess — or the applicable code; principal diagnosis

Rationale. Section II.A states that codes for symptoms, signs and ill-defined conditions from Chapter 18 are not to be used as the principal diagnosis when a related definitive diagnosis has been established. Section I.B.5 adds that signs and symptoms routinely associated with a disease process are not assigned as additional codes, so the abdominal pain is not reported at all. The UHDDS definition supports the same answer: the diverticulitis is the condition established after study to be chiefly responsible for occasioning the admission.

Guideline: Section II introduction, II.A; Section I.B.5

Primary sources#