Objective. Students will apply inpatient-specific Official Guidelines, including the Uniform Hospital Discharge Data Set definition of principal diagnosis, present-on-admission indicators, and the guideline for conditions determined after study.
This lesson, its worked examples and its practice questions has not yet been verified by a licensed clinician in the field or by a certification or approval body. It is a study draft and may contain errors. Do not use it to make decisions about any patient or medication. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
Medical coders use two distinct sets of rules depending on the care setting. In outpatient and physician-office settings, coders select the first-listed diagnosis, which reflects the condition chiefly responsible for the visit at the time services are provided. Inpatient hospital coding follows a different standard governed by the Official Guidelines for Coding and Reporting published jointly by the four cooperating parties: the American Hospital Association (AHA), AHIMA, CMS, and NCHS. These guidelines carry the force of HIPAA-mandated code set rules, making compliance a legal and ethical requirement—not merely a best practice.
Understanding the distinction between settings is essential for patient safety as well: incorrect principal diagnosis selection can affect payment, resource allocation, and public health data that policymakers use to track disease burden and outcomes.
The cornerstone of inpatient coding is the Uniform Hospital Discharge Data Set (UHDDS) definition of principal diagnosis:
> The condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital for care.
Three elements of this definition deserve close attention.
1. After study. The principal diagnosis is not necessarily the admitting diagnosis (the condition the provider suspected when the patient arrived). It is the condition confirmed through the full course of the stay—tests, imaging, consultations, and procedures.
2. Chiefly responsible for occasioning the admission. Of all conditions that could be coded, the one selected must be the primary reason the patient needed inpatient-level care.
3. Established. Documentation in the medical record—physician attestation, discharge summary, operative reports, or other provider notes—must support the selection.
When a patient is admitted with chest pain and, after cardiac workup, is found to have had an acute myocardial infarction (MI), the acute MI becomes the principal diagnosis, not chest pain. Chest pain is a symptom; the MI is the underlying condition established after study. The Official Guidelines are explicit: signs and symptoms that are integral to a confirmed condition are generally not coded separately.
Conversely, if a patient is admitted with chest pain, a full workup is completed, and no definitive cause is found, then chest pain is correctly retained as the principal diagnosis because no condition established after study supplants it.
This rule protects data integrity and patient safety. Coding a symptom when a definitive diagnosis has been confirmed understates disease severity, can skew risk-adjustment models, and may affect decisions about follow-up care.
The admitting diagnosis is captured on the UB-04 claim form and reflects what prompted the admission order. It is not the same as the principal diagnosis. Coders must read the entire discharge summary and record before selecting the principal diagnosis. Relying solely on the admitting diagnosis—or on the emergency department note—is a common and consequential error.
Sometimes two or more conditions meet the UHDDS definition equally—each contributed equally to the admission and was treated equally during the stay. The Official Guidelines permit the coder to sequence either condition as principal in these circumstances. However, when one condition is clearly more resource-intensive or more closely connected to the admission, that condition should be sequenced first. Coders may never query the attending physician solely to improve reimbursement; queries must be clinically motivated and ethically framed.
For inpatient claims submitted to Medicare and Medicaid, each diagnosis code must carry a Present-on-Admission (POA) indicator. The indicator communicates whether the condition existed at the time of the inpatient admission.
POA indicators are critical for hospital-acquired condition (HAC) payment policy. Conditions flagged as N that appear on CMS's HAC list may result in reduced payment to the hospital, incentivizing prevention of complications such as catheter-associated infections or pressure injuries. Accurate POA reporting is therefore both a compliance matter and a patient-safety quality measure.
After selecting the principal diagnosis, coders report additional diagnoses (secondary diagnoses) that meet the UHDDS definition: conditions that affect patient care during the stay by requiring clinical evaluation, therapeutic treatment, diagnostic procedures, extended length of stay, or increased nursing care. Conditions that are monitored but have no effect on the current stay, or that are historically documented but require no management, are generally not coded.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.