Medical Coding Guide

Inpatient Coding: Complete Guide to ICD-10-PCS, DRGs & Hospital Billing

Inpatient hospital coding is one of the most specialized and consequential areas of medical coding. Unlike outpatient coding where each service is billed separately, inpatient admissions are paid a single DRG (Diagnosis Related Group) payment that covers all services during the stay. The principal diagnosis, secondary diagnoses, and ICD-10-PCS procedure codes collectively determine the DRG — making accurate documentation and coding directly tied to hospital revenue.

72,000+
ICD-10-CM codes
87,000+
ICD-10-PCS codes
98%
AI accuracy rate
80%
Time saved
Inpatient Coding — AI medical coding tool

AI-generated ICD-10 and CPT codes from clinical notes — Medical Coding Online

How Inpatient Reimbursement Works (IPPS)

Medicare pays inpatient hospitals under the Inpatient Prospective Payment System (IPPS). Each inpatient stay is assigned a single MS-DRG based on the principal diagnosis, significant comorbidities and complications (CCs/MCCs), and procedures performed. The hospital receives one payment for the entire stay.

  • Principal diagnosis drives the MDC (Major Diagnostic Category) assignment
  • CC/MCC presence upgrades the DRG to a higher-paying variant
  • Procedures code in ICD-10-PCS (not CPT) for inpatient claims
  • DRG weight × hospital base rate = payment
  • Outlier cases: additional payment for extraordinarily long/costly stays
  • Transfer rules: reduced payment when patient transferred to another acute care facility

Principal Diagnosis Selection

The principal diagnosis is defined as the condition, after study, chiefly responsible for occasioning the admission. Correct principal diagnosis selection is the single most important coding decision on an inpatient claim — it determines the MDC and often the DRG.

RuleApplication
'After study' ruleCode what was determined after workup, not the admitting symptom
Two or more equal conditionsEither may be sequenced first
Original treatment plan not carried outStill code the diagnosis that caused admission
Symptom vs. definitive diagnosisCode the definitive diagnosis if established
Uncertain diagnoses ('probable')Code as confirmed for inpatient (unlike outpatient)

ICD-10-PCS: Inpatient Procedure Coding

ICD-10-PCS (Procedure Coding System) is used only for inpatient hospital procedures. Unlike CPT codes used in outpatient settings, ICD-10-PCS codes are 7 characters long and are built from a hierarchical system of values.

  • 7-character alphanumeric code structure
  • Character 1: Section (Medical/Surgical, Obstetrics, etc.)
  • Character 2: Body system (Central Nervous, Upper Joints, etc.)
  • Character 3: Root operation (Excision, Repair, Replacement, etc.)
  • Characters 4–7: Body part, approach, device, qualifier
  • Each character is independently selected from a value list
  • Example: 0SR90JZ = replacement of right hip joint with synthetic substitute

CC and MCC Impact on DRG Payment

Complication and Comorbidity (CC) and Major Complication and Comorbidity (MCC) codes are secondary diagnoses that significantly impact DRG assignment. Capturing all CCs and MCCs from the medical record is critical to accurate hospital revenue.

LevelDefinitionPayment Impact
MCCMajor CC — highest severityHighest-paying DRG variant (often 30–50% more)
CCComplication or comorbidityMiddle-tier DRG variant
No CC/MCCNeither presentLowest-paying DRG variant
HAC exclusionHospital-acquired conditionCC/MCC not counted if condition developed during stay

Clinical Documentation Improvement (CDI)

Clinical Documentation Improvement programs work prospectively to ensure physician documentation supports the diagnoses and procedures coded. CDI specialists query physicians when documentation is ambiguous, incomplete, or inconsistent.

  • CDI queries improve CC/MCC capture and DRG accuracy
  • Query when diagnosis is unclear, vague, or clinically conflicting
  • Acceptable query formats: open-ended, multiple-choice, yes/no
  • Non-leading queries only — never suggest a diagnosis not clinically supported
  • Concurrent CDI: review during the stay (preferred) vs. retrospective (after discharge)
  • CDI reduces denials and OIG audit risk by ensuring documentation matches coding

How AI Transforms Inpatient Coding

AI-powered inpatient coding platforms use NLP to extract diagnoses and procedures from medical records, suggest principal diagnosis, flag potential CC/MCC opportunities, and draft ICD-10-PCS codes — dramatically reducing coding time and missed revenue.

  • Extract diagnoses from discharge summaries and progress notes
  • Suggest principal diagnosis based on UHDDS guidelines
  • Flag undocumented CCs/MCCs visible in labs, vitals, or treatment
  • Draft ICD-10-PCS codes from operative reports
  • Generate CDI queries for ambiguous documentation
  • Reduce coding backlog by 40–60% with AI-assisted workflows

Frequently Asked Questions

What is the difference between inpatient and outpatient coding?
Inpatient coding applies to patients admitted to the hospital and uses ICD-10-PCS for procedures, pays under IPPS/DRGs, allows coding of probable diagnoses, and bills on a UB-04. Outpatient coding applies to non-admitted services, uses CPT/HCPCS codes, pays under OPPS/APCs or physician fee schedules, prohibits coding probable diagnoses (code symptoms instead), and bills on either UB-04 or CMS-1500.
What does 'principal diagnosis' mean in inpatient coding?
The principal diagnosis is defined as the condition, after study, chiefly responsible for occasioning the admission to the hospital. It is NOT necessarily the presenting complaint or the chief complaint. After the full clinical workup, coders select the condition that was the primary reason the patient needed inpatient care. For example, a patient admitted for chest pain that is diagnosed as unstable angina would have unstable angina as the principal diagnosis, not chest pain.
Can I code a 'probable' diagnosis for an inpatient stay?
Yes — inpatient coding allows coding of uncertain diagnoses documented as probable, suspected, likely, possible, or rule-out IF the physician documents this at the time of discharge. This is a key difference from outpatient coding guidelines. For example, if the discharge summary documents 'probable pneumonia,' code pneumonia (not the symptom). If the diagnosis is not confirmed, code the presenting symptom for outpatient.
What is the difference between ICD-10-CM and ICD-10-PCS?
ICD-10-CM (Clinical Modification) is the diagnosis code system used for both inpatient and outpatient settings to describe conditions, diseases, and symptoms. ICD-10-PCS (Procedure Coding System) is used ONLY for inpatient hospital procedures — it is never used in outpatient settings. Outpatient procedures use CPT and HCPCS codes instead. ICD-10-PCS has a 7-character code structure with each character representing a specific aspect of the procedure.
How do hospital-acquired conditions (HACs) affect inpatient reimbursement?
Hospital-acquired conditions (HACs) are conditions that were not present on admission but developed during the inpatient stay. CMS does not allow HACs to be counted as CCs or MCCs for DRG assignment — so they cannot upgrade the DRG. Additionally, hospitals with high HAC rates face payment penalties under the HAC Reduction Program. Present-on-Admission (POA) indicators are required on inpatient claims to identify which conditions existed before admission.

Stop Manually Looking Up Inpatient Coding

Paste your clinical notes and our AI will extract accurate Inpatient Coding with confidence scores, denial risk analysis, and a Clean Claim Score — in under 10 seconds.

Free tier: 2 code generations per day. No credit card needed.