Resources / Coding specific conditions
How do I choose the primary diagnosis for a Medicare Part A stay?
Short answer
Choose the condition that the physician’s documentation shows is the primary reason for the Medicare Part A stay, pick the category that best describes it (I0020), and enter its ICD-10-CM code (I0020B). The choice follows the record: it is the reason for the stay as documented, not the diagnosis listed first on a problem list.
You need to be able to show, from the physician’s documentation, why the resident is in the facility for this Part A stay. The steps below follow the RAI Manual, with the ICD-10-CM Official Guidelines where the manual points to code selection.
1. Find the physician's documentation of the reason for the stay.
The manual’s sources for physician diagnoses are the most recent history and physical, transfer documents, discharge summaries, progress notes, and other resources as available.
2. Choose the primary medical condition category (I0020).
Pick the one category, from 13, that best describes the primary reason for the stay. The manual gives examples under each, and one rule worth knowing: if a hip replacement is secondary to a hip fracture, code as fracture. The item is completed only on the 5-day assessment and the Interim Payment Assessment (IPA).
3. Enter the ICD-10-CM code for that condition (I0020B), including the decimal.
- An acute condition can be coded here when it is the primary reason for the stay.
- More often the stay is for an aftereffect of a disease, condition or injury. The manual says subsequent encounter or sequela codes should then be used.
- Rehabilitation. The ICD-10-CM guidelines say to sequence first the condition for which the service is being performed. If that condition is no longer present, they call for the appropriate aftercare code, unless the rehabilitation follows an injury. After an injury, they call for the injury code with the seventh character for subsequent encounter.
- Symptoms. The guidelines say symptom and sign codes are not to be used as the principal diagnosis when a related definitive diagnosis has been established.
4. If the code is listed "Return to Provider", go back to the record.
CMS publishes a mapping of the ICD-10-CM codes recorded in I0020B to clinical categories, and the manual refers you to it. Some codes in that mapping are listed as "Return to Provider". CMS explained the label in its SNF final rules for fiscal years 2019 and 2026:
- Such codes "are not deemed appropriate to enter as the primary reason for SNF care."
- The label "is not intended to reflect any judgment on the importance of recognizing and treating these conditions." CMS’s view is that "there are more specific or appropriate diagnoses that would better serve as the primary diagnosis".
- CMS’s example is generalized muscle weakness (M62.81), which it calls nonspecific. It says a resident with that diagnosis "may obtain a more specific diagnosis that identifies the cause of the generalized muscle weakness."
So treat the label as a prompt to read the record again:
- Look for the more specific diagnosis the physician documented as the reason for the stay, in the sources from step 1.
- If the record does not have one, query the physician. The physician’s answer goes in the record, and the code follows what the physician documented.
- Do not choose a code because of how it is listed in the mapping. The condition behind a "Return to Provider" code still belongs in the record and on the MDS where it applies: CMS says these codes "may still be used as secondary diagnoses when appropriate."
5. Carry the diagnosis into the active diagnoses.
The manual says to include the primary medical condition coded in I0020B in the active diagnosis items (I0100 to I8000) as well.
The manual's examples
- Resident K is admitted after a stroke, with a history of Alzheimer’s dementia and diabetes, all documented in the admitting physician’s history and physical. Category: 01, Stroke. The example code is a sequela code for hemiplegia following the stroke.
- Resident E was hospitalized for a hip fracture, had a total hip replacement, and is admitted for rehabilitation. The admitting physician documents total hip replacement; the hospital discharge summary documents the fracture. Category: 10, Fractures and Other Multiple Trauma, with a subsequent encounter fracture code.
- Resident H had a long hospitalization for pancreatitis and is moving from parenteral to oral nutrition. The hospital discharge diagnoses were incorporated into the facility record. Category: 13, Medically Complex Conditions, with the pancreatitis code. A central line placement does not change this to a surgical category, because the manual does not consider it major surgery.
The manual notes that each code in its examples is only an example of an appropriate code for the category.
If the record conflicts
The ICD-10-CM guidelines say to query the provider when the medical record documentation conflicts.
Sources
- MDS 3.0 RAI Manual v1.20.11, Chapter 3, Section I, I0020 Steps for Assessment, Coding Instructions and Examples (pages I-1 to I-4)
- MDS 3.0 RAI Manual v1.20.11, Chapter 6, PDPM classification, Step 1 (page 6-14)
- ICD-10-CM Official Guidelines for Coding and Reporting, FY 2026, Section I.A.19, Section II (introduction, II.A and II.K) (pages 12, 107, 108, 110)
- CMS PDPM ICD-10-CM Mappings, FY 2026, Clinical Categories by Diagnosis
- FY 2026 SNF PPS Final Rule (CMS-1827-F), 90 FR 37328 and 37330, Technical Updates to the PDPM ICD-10 Mappings
- FY 2019 SNF PPS Final Rule (CMS-1696-F), 83 FR 39201
- MDS 3.0 RAI Manual v1.20.11, Chapter 3, Section A, A0310B (page A-6)
Reviewed by Andrew Turner, PT, DPT, RAC-CTA. Last reviewed November 2026. General information, not legal or billing advice.