Hospital Inpatient Billing: UB-04, Revenue Codes, MS-DRG, and IPPS Explained

THE SHORT ANSWER
Hospital inpatient billing is facility billing, and it is a different job from physician billing. When a patient is admitted to a hospital, the hospital bills for its resources, the room, the nursing care, the operating room time, the drugs, the supplies, the imaging, and the laboratory work, on the UB-04 claim form, known formally as the CMS-1450, transmitted electronically as the 837I transaction. The physicians who treat that patient bill separately for their own work on the CMS-1500, transmitted as the 837P. The same stay usually produces two claims, and the two claims must agree on the patient, the dates, and the diagnosis, even though they use different forms, different code sets, and different payment systems.
Medicare pays the inpatient facility claim under the Inpatient Prospective Payment System, known as IPPS. Under IPPS, one payment covers the whole admission. The payment is set by the Medicare Severity Diagnosis Related Group, or MS-DRG, assigned to the stay. The MS-DRG grouper takes the principal diagnosis, the secondary diagnoses with their complication and comorbidity status, the inpatient procedures coded in ICD-10-PCS, the patient age and sex, and the discharge status, and produces a single group. That group carries a relative weight, and the payment is the weight multiplied by the hospital base rate, adjusted for local labor costs through the wage index and for teaching and disproportionate share status where those adjustments apply. The hospital is paid the DRG amount whether the stay used more resources or fewer, which is why one coding error can reprice the whole admission.
Three facts define the rest of the work. First, revenue codes are the key coding element that exists only in facility billing. Every service line on a UB-04 carries a revenue code that says which department provided the service, and there is no equivalent on the professional claim. Second, inpatient procedures are coded in ICD-10-PCS, not in CPT. CPT has no role on an inpatient facility claim. Third, the admission decision itself is a billing decision. Under the two-midnight rule, a Medicare inpatient admission is generally appropriate when the admitting practitioner expects the patient to need medically necessary hospital care that crosses two midnights, and the record supports that expectation. A shorter expected stay is generally billed as outpatient observation instead, and observation nights do not count toward the three day inpatient stay Medicare requires before skilled nursing facility coverage.
This guide walks the claim in order: the two claims one stay produces, the anatomy of the UB-04, the revenue code system, how MS-DRG grouping works and why one error reprices a stay, the two-midnight rule and inpatient versus observation status, the outpatient APC side for completeness, and the denials that repeat when any of these pieces is wrong.
TWO CLAIMS, ONE STAY: FACILITY BILLING VERSUS PROFESSIONAL BILLING
The single most common misunderstanding in hospital billing is treating the hospital claim and the physician claim as two versions of the same bill. They are not. They are two claims for two different things, submitted by two different billing entities, paid under two different systems, and they happen to describe the same patient on the same dates.
The facility claim pays the hospital for what it provided: the bed, the room and board, the nursing staff, the equipment, the operating room, the drugs, the supplies, the imaging, and the laboratory work. It is submitted by the hospital on the UB-04, or electronically as the 837I. Its code sets are ICD-10-CM for diagnoses, ICD-10-PCS for inpatient procedures, CPT and HCPCS for outpatient services, and revenue codes, condition codes, and value codes that exist only on the institutional claim. Medicare pays it under IPPS for inpatient stays and under the Outpatient Prospective Payment System, or OPPS, for outpatient services.
The professional claim pays the physician for the work the physician did: the evaluation, the decision making, the procedures the physician performed, and the daily management of the patient. It is submitted by the physician or the physician group on the CMS-1500, or electronically as the 837P. Its code sets are CPT and HCPCS for the services and ICD-10-CM for the diagnoses. Medicare pays it under the Physician Fee Schedule, on relative value units, not under a DRG.
| Item | Facility claim | Professional claim |
|---|---|---|
| Who submits it | The hospital | The physician or physician group |
| Claim form | UB-04, CMS-1450 | CMS-1500 |
| Electronic transaction | 837I | 837P |
| What it pays for | The room, nursing, equipment, drugs, supplies, imaging, laboratory work | The physician work, evaluation, decision making, procedures |
| Procedure code set, inpatient | ICD-10-PCS | CPT, not used for the facility stay |
| Diagnosis code set | ICD-10-CM | ICD-10-CM |
| Codes only this claim carries | Revenue codes, condition codes, value codes, type of bill | Place of service, professional modifiers |
| Medicare payment system, inpatient | IPPS, one MS-DRG payment per admission | Physician Fee Schedule, per service |
| Medicare payment system, outpatient | OPPS, APCs per service | Physician Fee Schedule, per service |
The two claims must agree even though they are separate. The patient, the dates of service, and the principal diagnosis should tell the same story on both claims, and a mismatch is one of the first things a payer edit or an auditor checks. When the facility claim says the patient was admitted for sepsis and the professional claim says the physician treated pneumonia, one of the two is wrong, and the payer will not sort it out in the hospital favor. The practical rule is simple: the facility coder and the professional coder work from the same record, and the diagnosis that drove the admission is the principal diagnosis on both claims, coded to the same level of specificity the record supports.
Place of service is where the two tracks visibly interact. A physician who sees a patient in the hospital is paid the facility rate under the Physician Fee Schedule, because the hospital absorbs the overhead, and the same service in the physician office is paid the non-facility rate, because the physician absorbs it. The hospital claim and the professional claim for the same encounter therefore carry different place of service values, and each is correct for its own claim. A hospital employed physician is no exception: even when the physician works for the hospital, the professional claim is billed separately under the physician National Provider Identifier, with the hospital place of service, and the professional fee flows to the physician group or the hospital physician enterprise, not to the hospital facility account.
Other institutional settings use the same UB-04 form, which is why the form matters beyond hospitals. Skilled nursing facilities, home health agencies, hospice providers, inpatient psychiatric facilities, and ambulatory surgery centers all submit institutional claims, each under its own payment system and its own type of bill. The inpatient hospital rules in this guide do not transfer to those settings. For how the ambulatory surgery center facility fee works, see our guide at https://neximedbilling.com/blog/ambulatory-surgery-center-billing-facility-fee-pos-24/
For how skilled nursing facility consolidated billing works, including which services are excluded from the bundle, see our guide at https://neximedbilling.com/blog/snf-consolidated-billing-medicare-excluded-services/
For how home health billing works under the Patient-Driven Groupings Model and its 30 day periods, see our guide at https://neximedbilling.com/blog/home-health-billing-pdgm-30-day-periods/
For how hospice billing works under Medicare, including the notice of election and the levels of care, see our guide at https://neximedbilling.com/blog/hospice-billing-medicare-noe-levels-of-care-cap/
THE UB-04 CLAIM FORM, FIELD BY FIELD
The UB-04, formally the CMS-1450, is the standard paper claim form for institutional providers, and the 837I is its electronic counterpart under HIPAA. It is the facility equivalent of the CMS-1500, but the resemblance ends at the idea of a form. The UB-04 carries fields the CMS-1500 does not have, because a hospital stay carries information a physician visit does not: the type of bill, the statement period, the admission and discharge dates, the discharge status, the condition and occurrence codes, the value codes, the revenue code service lines, and the present on admission indicators.
Every field on the form carries payment weight. A wrong type of bill sends the claim to the wrong payment system. A wrong discharge status changes the DRG or triggers a transfer payment instead of the full DRG. A missing present on admission indicator can cost the hospital the complication that would have raised the DRG. The table below is the field map a billing team should be able to recite. Form locator numbers, shown as FL, are the numbered boxes on the paper UB-04, and each maps to a loop or segment on the 837I.
| Form locator | Field | What it does, and why it matters |
|---|---|---|
| FL 4 | Type of bill | Three digits that say what kind of facility, what kind of bill, and how often it is submitted. Decides which payment system reads the claim |
| FL 6 | Statement period | The from and through dates of the billing period, the admission date through the discharge date for an inpatient stay |
| FL 8 | Patient name and identifier | The patient, matched to the hospital record and the payer eligibility file |
| FL 10 | Birth date | Patient date of birth, used for eligibility and for DRG grouping, since age is a grouper input |
| FL 12 | Admission date | The date the inpatient order took effect and the stay began |
| FL 14 | Admission type | Whether the admission was emergency, urgent, elective, newborn, or trauma, which supports medical necessity review |
| FL 15 | Admission source | Where the patient came from, the emergency department, a physician referral, a transfer from another facility, or a skilled nursing facility |
| FL 17 | Discharge status | A two digit code saying where the patient went at discharge, home, another acute care hospital, a skilled nursing facility, home health, expired, or left against medical advice. A transfer to another acute care hospital changes the payment |
| FL 18 through FL 28 | Condition codes | Two character codes describing the circumstances of the claim, such as an information only claim or a change in patient status |
| FL 29 through FL 30 | Accident state | The state where an accident occurred, when the admission follows an accident |
| FL 31 through FL 34 | Occurrence codes and dates | Significant events during the stay, such as the accident date or the date of an onset |
| FL 35 through FL 36 | Occurrence span codes and dates | Spans of time during the stay, such as a period of non-covered care |
| FL 39 through FL 41 | Value codes and amounts | Codes paired with dollar amounts, such as covered days, the deductible amount, or coinsurance amounts |
| FL 42 through FL 49 | Revenue codes, service lines | One line per department or service, each with a revenue code, a charge, and, for outpatient lines, a HCPCS code |
| FL 50 through FL 55 | Payer information | The payer or payers on the claim, in payment order |
| FL 56 | National Provider Identifier | The billing provider NPI for the facility |
| FL 67 | Principal diagnosis and present on admission indicator | The condition established after study to be chiefly responsible for the admission, with its present on admission indicator |
| FL 67A through FL 67Q | Other diagnoses and present on admission indicators | Secondary diagnoses, each with its own present on admission indicator. These carry the complications and comorbidities that move the DRG |
| FL 69 | Admitting diagnosis | The diagnosis recorded at admission, before the full workup |
| FL 70 | Patient reason for visit | The reason the patient sought care, in the patient words or the presenting complaint |
| FL 72 | External cause of injury codes | The cause of an injury, when the admission follows one |
| FL 74 | Principal procedure and date | The principal inpatient procedure in ICD-10-PCS, with the date performed |
| FL 74A through FL 74E | Other procedures and dates | Additional inpatient procedures in ICD-10-PCS, each with its date |
| FL 76 | Attending provider | The attending physician, by name and NPI |
| FL 77 | Operating physician | The operating physician, when a procedure was performed |
| FL 80 | Remarks | Free text remarks for the payer, used sparingly, since remarks do not fix a coding error |
Three fields deserve a closer look, because they are where inpatient claims most often go wrong: the type of bill in FL 4, the discharge status in FL 17, and the principal diagnosis with its present on admission indicator in FL 67.
Type of bill, FL 4: three digits that choose the payment system
The type of bill is a three digit code, and each digit has its own meaning. The first digit is the type of facility: 1 is a hospital, 2 is a skilled nursing facility, 3 is a home health agency, and 8 is a hospice, among others. The second digit is the bill classification: 1 is inpatient Part A, 3 is outpatient, 4 is other outpatient, and 5 is intermediate care. The third digit is the claim frequency: 1 is admit through discharge, 7 is a replacement of a prior claim, and 8 is a void or cancel of a prior claim.
| Type of bill | Meaning |
|---|---|
| 0111 | Hospital, inpatient Part A, admit through discharge. The standard inpatient facility claim |
| 0117 | Hospital, inpatient Part A, replacement of a prior claim. A corrected claim, not a new claim |
| 0118 | Hospital, inpatient Part A, void or cancel of a prior claim. Cancels the earlier claim entirely |
| 0121 | Hospital, inpatient Part B, admit through discharge. Used when Part B pays for an inpatient stay, for example after a Part A denial is rebilled |
| 0131 | Hospital, outpatient, admit through discharge. The standard outpatient facility claim, including observation and emergency department facility services |
| 0137 | Hospital, outpatient, replacement of a prior claim |
| 0141 | Hospital, other outpatient, admit through discharge. Used for laboratory services billed as outpatient |
The frequency digit is a common source of duplicate denials. A corrected claim must go out as a replacement, with frequency 7, referencing the original claim, or the payer reads it as a second claim for the same stay and denies it as a duplicate. A claim sent twice as a new admit through discharge, frequency 1, is a duplicate by construction, and resubmitting it the same way does not fix it. When a claim needs correcting after payment, the replacement claim carries the corrected lines and the payer adjusts the original payment. When a claim should never have been submitted, the void, frequency 8, cancels it, and a new claim, if one is owed, starts fresh.
Discharge status, FL 17: where the patient went decides what the hospital is paid
Discharge status is a two digit code that says where the patient went when the stay ended. It matters for two reasons. First, some MS-DRGs change with discharge status, because the grouper treats a discharge home differently from a discharge to a skilled nursing facility or to home health. Second, and more consequentially, a transfer to another acute care hospital changes the payment itself. When a patient is transferred to another acute care hospital, the discharging hospital is paid a per diem amount for each day of the stay, not the full DRG payment. The receiving hospital then bills its own DRG for the rest of the care. A discharge status that says home when the patient was actually transferred to another hospital overstates the payment, and a discharge status that says transfer when the patient went home understates it. Both are audit findings, and the transfer case is the expensive one, because the payer recovers the difference between the full DRG and the per diem amount.
The common discharge status values a billing team sees every day are discharge home, discharge to a skilled nursing facility, discharge to home with home health services, discharge or transfer to another acute care hospital, discharge to an inpatient rehabilitation facility, discharge to a long term care hospital, expired, and left against medical advice. Each has its own code, and the code must match the discharge disposition in the medical record, not the plan the care team discussed on the day before discharge. When the discharge plan changes at the last minute, the status code must change with it, and the coder, not the discharge planner, is the one who has to catch the change.
Principal diagnosis and present on admission, FL 67
The principal diagnosis is the condition established after study to be chiefly responsible for occasioning the admission of the patient to the hospital. That definition, from the Uniform Hospital Discharge Data Set, is worth reading twice, because it is not the diagnosis the patient arrived with, and it is not the most serious diagnosis on the chart. It is the condition that, after the workup, explains why the patient was admitted. A patient admitted with chest pain who turns out to have a myocardial infarction has a principal diagnosis of myocardial infarction, not chest pain. A patient admitted with shortness of breath who turns out to have heart failure has a principal diagnosis of heart failure. The admitting diagnosis in FL 69 is the working diagnosis at the door. The principal diagnosis in FL 67 is the answer after study, and the two often differ.
Every diagnosis on the claim carries a present on admission indicator, known as POA, which says whether the condition was present at the time the inpatient order was written. The indicator values are Y for yes, the condition was present at admission; N for no, the condition was not present at admission; U for unknown, the documentation is insufficient to determine whether it was present; and W for clinically undetermined, the provider cannot clinically determine whether it was present. The POA indicator is not paperwork. It decides whether a secondary diagnosis counts as a complication or comorbidity for DRG grouping. A complication that was present on admission can raise the DRG. A hospital acquired condition, one that developed during the stay and was not present on admission, does not raise the DRG, and under the hospital acquired condition payment policy, Medicare does not pay the higher DRG rate for a stay when the only complication is a hospital acquired condition that was not present on admission. That is the rule behind the POA discipline: a coder who marks a hospital acquired infection as present on admission inflates the DRG, and a coder who marks a genuine admission complication as not present on admission deflates it. Both errors are visible in the record, and both are audited.
REVENUE CODES: THE FACILITY-ONLY CODE SET
Revenue codes are the coding element that has no equivalent in professional billing, and they are the reason the UB-04 looks so different from the CMS-1500. A revenue code is a three or four digit code, usually shown as four digits with a leading zero, that appears on each service line of a UB-04 claim to identify the department or the type of service that produced the charge. The codes are maintained by the National Uniform Billing Committee, known as the NUBC, and they are required on all UB-04 claims. Every charge on the claim must sit on a service line with a revenue code, and the revenue code must match the department that actually provided the service.
The hospital chargemaster, also called the Charge Description Master or CDM, is the database behind the revenue codes. It maps every service, supply, drug, and item the hospital bills to a revenue code, a charge amount, and, for outpatient services, an associated HCPCS code. When a nurse administers a drug, when the laboratory runs a test, when the operating room is used, the chargemaster line for that item carries the revenue code that lands on the claim. A chargemaster error therefore becomes a claim error automatically, and at volume: one wrong revenue code on a chargemaster line repeats on every claim that uses that line until someone catches it.
| Revenue code range | Department or service |
|---|---|
| 010x | Room and board, inpatient. 0110 is a medical or surgical room, 0120 is intensive care, 0140 is a coronary care unit |
| 020x | Intensive care and specialty care rooms |
| 0250 | Pharmacy, general |
| 0260 | Intravenous solutions |
| 0270 | Medical and surgical supplies |
| 030x | Laboratory. 0300 is laboratory general, 0301 is chemistry, 0302 is immunology |
| 032x | Radiology, diagnostic |
| 033x | Radiology, therapeutic |
| 035x | Computed tomography, CT scan |
| 036x | Operating room services. 0360 is operating room services, general |
| 037x | Anesthesia |
| 038x | Blood and blood products |
| 041x | Respiratory services |
| 042x | Physical therapy |
| 043x | Occupational therapy |
| 044x | Speech-language pathology |
| 045x | Emergency room. 0450 is emergency room, general |
| 051x | Clinic. 0510 is clinic general, 0512 is urgent care |
| 063x | Drugs requiring detailed coding. 0636 is drugs requiring detailed coding, used for high cost drugs |
| 071x | Recovery room |
| 076x | Observation room. 0762 is the observation room code used for observation services |
| 080x | Inpatient renal dialysis |
| 090x | Behavioral health services |
Three revenue code rules cause most of the errors. First, the revenue code must match the service. A laboratory charge on a pharmacy revenue code, or an operating room charge on a recovery room code, is a mismatch the payer edit will catch, and it is also a sign to an auditor that the chargemaster mapping is wrong. Second, for outpatient claims, each revenue code line is paired with a HCPCS or CPT code that says what specific service the department performed, while inpatient claims typically do not include CPT codes at all: the revenue codes and the ICD-10-PCS procedure codes describe the services. A CPT code on an inpatient facility line is a red flag, because inpatient procedures belong in ICD-10-PCS. Third, observation services are billed under revenue code 0762, and observation is an outpatient service even when the patient spends the night in a hospital bed. A 0762 line on a claim billed as inpatient is a contradiction that will deny, and it is usually the visible sign that the patient status decision went wrong before the claim was built.
HOW MS-DRG GROUPING WORKS
The MS-DRG is the unit of inpatient payment. Under IPPS, Medicare pays a fixed amount per admission based on the assigned MS-DRG, regardless of the length of stay or the number of services delivered. The model pays for complete and accurate documentation, and it penalizes gaps, because a diagnosis that is documented but never coded, or coded but never documented, does not reach the grouper.
The grouper takes a defined set of inputs and produces one output, the DRG for the admission. The inputs, in the order a coder should check them, are the principal diagnosis, the secondary diagnoses and whether each is a complication or comorbidity or a major complication or comorbidity, the ICD-10-PCS procedure codes, the patient age and sex, and the discharge status. The grouper first assigns the case to a Major Diagnostic Category, based on the principal diagnosis. It then divides the category by whether a procedure was performed and which procedure, and then by the complication and comorbidity tier: no complication or comorbidity, with a complication or comorbidity, or with a major complication or comorbidity. That tier is where most of the money moves, because each tier carries a different relative weight, and a higher weight means a higher payment.
A complication or comorbidity, known as a CC, is a secondary diagnosis that has a significant effect on the severity of illness or the resources used during the admission. A major complication or comorbidity, known as an MCC, is a secondary diagnosis with a substantially greater effect. The distinction is defined by the MS-DRG definitions manual, and it is not a matter of coder judgment: a diagnosis either is a CC or MCC for the principal diagnosis in question, or it is not, and the grouper applies the list. Two conditions that look equally serious in the chart can sit in different tiers, and a secondary diagnosis that is a CC for one principal diagnosis may not be a CC for another. The coder job is to code every secondary diagnosis the record supports, with the correct present on admission indicator, and let the grouper sort the tiers. The coder job is not to pick the diagnoses that pay best, which is upcoding, and it is not to leave a documented diagnosis off the claim, which is downcoding by omission.
ICD-10-PCS is the procedure code set for inpatient facility claims, and it replaces CPT entirely on the inpatient side. An ICD-10-PCS code has seven characters, and each character has a fixed meaning: the section, the body system, the root operation, the body part, the approach, the device, and the qualifier. The root operation is the action performed, such as excision, resection, bypass, or fusion, and the approach says how the surgeon reached the site, open, percutaneous, endoscopic, or another route. A coder who reports the wrong approach or the wrong root operation has reported a different procedure, and the grouper may assign a different DRG, or no surgical DRG at all. Only hospital based coders use ICD-10-PCS. Professional billing uses CPT, and a CPT code on an inpatient facility claim is an error, not a substitute.
The payment itself is arithmetic, and the arithmetic is worth understanding even though the billing team does not set the rates. The DRG payment equals the DRG relative weight multiplied by the hospital base rate, and the base rate is adjusted for local labor costs through the wage index, for teaching hospital status through the indirect medical education adjustment, and for hospitals serving high proportions of low income patients through the disproportionate share hospital adjustment. The relative weight is national for the DRG. The base rate is hospital specific, because the wage index is local. Two hospitals with the same DRG are therefore paid different amounts, and neither amount is a national rate that can be quoted for the other hospital. The DRG also carries a geometric mean length of stay, and cases far shorter than that mean may receive a reduced payment as a short stay outlier, while cases with extremely high costs relative to the DRG payment may receive an additional outlier payment. Transfers, as noted above, are paid per diem rather than at the full DRG rate.
| Grouper input | Where it lives on the UB-04 | What happens when it is wrong |
|---|---|---|
| Principal diagnosis | FL 67 | The case lands in the wrong Major Diagnostic Category, and the whole DRG is wrong |
| Secondary diagnoses, CC and MCC status | FL 67A through FL 67Q | The tier is wrong, and the payment moves to a lower or higher weight than the stay supports |
| Present on admission indicators | FL 67 and FL 67A through FL 67Q | A hospital acquired condition is treated as present on admission, inflating the DRG, or a genuine admission complication is treated as not present, deflating it |
| ICD-10-PCS procedures | FL 74 and FL 74A through FL 74E | The surgical division is wrong, or the case groups as medical when a procedure was performed |
| Patient age and sex | FL 10 and the patient record | Age and sex splits in the grouper are missed, and the DRG is wrong for cases where they apply |
| Discharge status | FL 17 | A transfer is paid as a full DRG, or a discharge home is paid as a transfer per diem |
WHY ONE CODING ERROR REPRICES THE WHOLE STAY
In professional billing, a coding error usually costs one line. The wrong CPT code on one visit loses the payment for that visit, and the rest of the claim survives. In inpatient facility billing, a coding error reprices the whole stay, because the payment is one amount for the admission, and the amount is set by the DRG. Change the DRG, and the payment for every service in the stay changes with it. That is the structural reason inpatient coding accuracy is a revenue issue, not a paperwork issue.
Consider an illustrative admission, built to show the mechanism rather than any real patient. A patient is admitted with sepsis, and during the stay the record documents acute kidney failure that was present on admission. The principal diagnosis is sepsis, and the acute kidney failure is a secondary diagnosis that the grouper recognizes as a major complication or comorbidity for this principal diagnosis. The grouper assigns the sepsis DRG at the with MCC tier. Now change one fact. The coder codes the sepsis but leaves the acute kidney failure off the claim, because the physician note mentions it once and the coder does not query for clarification. The grouper now sees sepsis with no MCC, and assigns the lower tier DRG. The room, the nursing, the drugs, the laboratory work, and the imaging have not changed. The patient received the same care. The only thing that changed is one secondary diagnosis line, and the payment for the whole admission drops to the lower tier. The hospital still bore the cost of treating the kidney failure. It is simply not paid for it.
Now change a different fact. The coder codes a urinary tract infection that developed on day four of the stay and marks it present on admission, when the record shows it was not present at admission. The grouper sees an additional complication and may assign a higher tier DRG. The payment rises, but the claim is wrong, and the error is visible in the record: the admission note shows no urinary symptoms, the day four note shows the onset, and the POA indicator contradicts both. On audit, the payer recoups the difference, and the pattern, repeated across claims, is what turns a coding error into a compliance finding.
A third error is quieter and more common. The principal diagnosis is wrong. A patient admitted with chest pain is worked up and found to have a myocardial infarction, but the coder reports chest pain as the principal diagnosis, because that was the admitting diagnosis in FL 69. The case groups to a chest pain DRG instead of a myocardial infarction DRG, and the payment follows the wrong group. The fix is procedural: the principal diagnosis is decided after study, from the discharge summary and the full record, not copied from the admission diagnosis. A coding team that copies FL 69 into FL 67 will make this error on every case where the workup changed the answer, which is a large share of admissions.
The safeguard is a pre-bill DRG review, sometimes called a DRG validation review. Before the claim goes out, a second coder or a coding auditor checks the principal diagnosis against the discharge summary, checks every secondary diagnosis against the record, checks the POA indicators against the admission note, and checks the ICD-10-PCS procedures against the operative report. The review takes minutes per case, and it catches the errors that reprice a stay. Hospitals that skip it pay for the omission in denials, in recoupments, and in DRG downgrades that nobody notices, because a claim that pays at the lower tier looks like a paid claim. It is paid. It is simply paid less than the stay supports.
A FULL STAY, BUILT END TO END
A worked example shows how the pieces fit together on one claim. The patient is illustrative, and the code choices are illustrative: the example shows the shape of the billing, not a payment amount, because the payment for any given claim depends on the payer, the hospital wage index, the base rate, and the relative weight, and no figure quoted here would describe another hospital claim.
A 68 year old patient arrives at the emergency department with fever, confusion, and low blood pressure. The emergency physician orders blood cultures, laboratory work, and intravenous fluids, and the admitting practitioner writes an inpatient order, documenting an expectation that the patient will need hospital care crossing two midnights. The patient is admitted to a medical surgical unit. Over four days, the team treats sepsis, the blood cultures identify the organism, the patient receives intravenous antibiotics and fluids, and the record documents acute kidney failure that was present on admission. On day four, the patient is stable, the kidney function is recovering, and the patient is discharged home with home health services and oral antibiotics.
The facility claim for this stay is a single UB-04, type of bill 0111, hospital inpatient Part A, admit through discharge. The statement period in FL 6 runs from the admission date through the discharge date. The discharge status in FL 17 is the code for discharge home with home health services, not the code for discharge home without services, because the home health referral is part of the discharge plan. The principal diagnosis in FL 67 is the sepsis diagnosis, coded to the specificity the record supports, with a POA indicator of Y, because the sepsis was present at admission. The acute kidney failure is listed among the other diagnoses, with a POA indicator of Y, because the admission laboratory work shows it was present at admission. The revenue code lines carry the room and board for four days under the medical surgical room code, the pharmacy charges under the pharmacy code, the laboratory charges under the laboratory codes, the intravenous solutions under their code, and the emergency department facility charges for the emergency visit that led to the admission. The ICD-10-PCS procedure list is empty or carries only procedures actually performed, because most medical admissions have no inpatient procedure, and a procedure code must never be added to make a case look surgical.
The grouper reads the principal diagnosis of sepsis, the secondary diagnosis of acute kidney failure as an MCC, and the discharge status, and assigns the sepsis DRG at the with MCC tier. The payment is the relative weight for that DRG multiplied by the hospital base rate, adjusted for the wage index and any teaching or disproportionate share adjustments. The professional claims for the same stay go out separately: the hospitalist bills the daily inpatient evaluation and management services on the CMS-1500, and the emergency physician bills the emergency department evaluation and management service, each under the Physician Fee Schedule. The facility claim and the professional claims agree on the patient, the dates, and the principal diagnosis, even though they use different forms and different payment systems.
Change one fact and the claim changes. If the admitting practitioner had expected a stay of less than two midnights, the patient would have been placed in observation, the claim would have been an outpatient claim with type of bill 0131, the revenue lines would have carried CPT and HCPCS codes, including revenue code 0762 for the observation room, and Medicare would have paid under OPPS through APCs instead of under IPPS through a DRG. If the patient had been transferred to another acute care hospital on day two, the discharge status would have been the transfer code, and the hospital would have been paid a per diem amount for two days instead of the full DRG. If the acute kidney failure had developed on day three instead of being present at admission, its POA indicator would have been N, and it would not have raised the DRG tier. Each of these is a single field on the form, and each changes what the hospital is paid for the same four days of care.
THE TWO-MIDNIGHT RULE: INPATIENT VERSUS OBSERVATION
The admission decision is the first billing decision on every hospital stay, and it is made before any coding happens. Under the two-midnight rule, a Medicare Part A inpatient admission is generally appropriate when the admitting practitioner expects the patient to need medically necessary hospital care that crosses two midnights, and the medical record supports that expectation. The rule is written into federal regulation at 42 CFR 412.3, and it has applied to admissions since 1 October 2013. It is a rule about what the admitting practitioner reasonably expected at the time the inpatient order was written, judged from the record as it stood then, and it is applied on review to a single case at a time.
The test turns on one word: expects. If the admitting practitioner expects hospital care spanning at least two midnights, inpatient admission is generally appropriate for payment under Part A. If the expected stay is shorter, the patient is generally treated as an outpatient in observation instead. The expectation at the time of the decision matters, not how things play out. A patient who goes home the next morning can be a defensible inpatient when the record at admission supported an expectation of two midnights, and a patient who stays three nights can be an indefensible one when the record never supported that expectation. Meeting two midnights does not make anyone an inpatient by itself. Only a signed inpatient order does, and outpatient time before the order helps support the expectation but never counts as inpatient time.
The rule has two parts that reviewers treat differently. The benchmark is the payment test: a stay is generally payable under Part A if, at the time of the inpatient order, the admitting practitioner reasonably expected medically necessary hospital care to cross two midnights and the record shows why. The presumption is a review filter: Medicare contractors presume that stays crossing two or more midnights after the formal inpatient admission are reasonable and necessary, and do not focus review on them unless they see gaming or delayed care. The presumption does not protect a stay where the expectation was never documented, and it does not protect a stay where the order was missing, late, or unsigned. The two most common losses on status review are an expectation that was real but never written down, and an order that was missing or unsigned.
There are exceptions, and they matter more in 2026 than they did before. First, a procedure on Medicare inpatient only list is generally appropriate for Part A payment regardless of the expected duration of care. That list is being phased out: effective 1 January 2026, Medicare began eliminating the inpatient only list through a three year transition, with the list eliminated in its entirety by 1 January 2029, and every procedure removed from the list falls back onto the two-midnight benchmark. Second, a shorter expected stay may still be payable under Part A case by case, on the admitting physician judgment, where the medical record supports that it is necessary, subject to medical review. That case by case exception is narrow, and it depends entirely on the documentation.
The status decision changes the patient bill as well as the hospital claim. An inpatient stay is billed under Part A, with the Part A hospital deductible for the benefit period. An observation stay is billed under Part B, with the Part B annual deductible and coinsurance on the Medicare approved amount for each service. Observation also has a drug catch: Part B generally does not pay for drugs the patient would usually give to themselves, and a drug given during observation can fall to the patient. Observation nights do not count toward the three day inpatient stay Medicare requires before skilled nursing facility coverage, which is the most significant financial consequence of observation status for patients who need rehabilitation after discharge. The same bed, the same nursing care, and the same treatment can therefore produce a different patient bill and a different path to the next level of care, depending only on the status order.
Two notices and one condition code belong to the status workflow. Hospitals must give the Medicare Outpatient Observation Notice, known as the MOON, to patients in observation for more than 24 hours, no later than 36 hours after observation starts, or at discharge if that comes sooner. The MOON tells the patient that they are an outpatient, not an inpatient, and explains the skilled nursing facility eligibility implications. When utilization review catches a wrong inpatient order before discharge, the hospital bills the whole stay as outpatient with condition code 44, and the patient must receive the required notice before that change. Medicare Advantage plans must follow the same admission criteria in 42 CFR 412.3, but they apply them through their own reviews, so the status fight can look different under a Medicare Advantage plan than under Traditional Medicare, even though the rule is the same.
| Question | Inpatient | Observation, outpatient |
|---|---|---|
| Who orders it | Admitting practitioner writes a signed inpatient order | Treating practitioner orders observation services |
| Medicare part | Part A, hospital insurance | Part B, medical insurance |
| Payment system | IPPS, one MS-DRG payment for the admission | OPPS, APC payments per service |
| Claim form and type of bill | UB-04, type of bill 0111 | UB-04, type of bill 0131, with revenue code 0762 for the observation room |
| Two-midnight test | Practitioner expects care crossing two midnights, and the record supports it | Expected stay is shorter than two midnights |
| Counts toward the three day skilled nursing facility stay | Yes | No |
| Patient notice | No MOON required | MOON required when observation runs past 24 hours, no later than 36 hours after it starts |
| Status corrected before discharge | Rebill as outpatient with condition code 44 | Already outpatient, no status correction needed |
THE OUTPATIENT SIDE: OPPS AND APCS, FOR COMPLETENESS
A hospital is paid under two prospective payment systems, and the inpatient side is only half the story. Outpatient facility services, including hospital outpatient departments, emergency department facility services, ambulatory surgery, and observation, are paid under the Outpatient Prospective Payment System, known as OPPS, using Ambulatory Payment Classifications, known as APCs. Each separately payable outpatient service is assigned to an APC based on its CPT or HCPCS code, and the APC payment rate is the relative weight multiplied by the conversion factor. Unlike an inpatient DRG, which bundles all facility costs for the admission into one payment, multiple services in the same outpatient visit may each generate separate APC payments, subject to packaging and discounting rules.
OPPS packages payment for many ancillary items into the APC payment for the primary service. Routine supplies, most drugs and biologicals below a packaging threshold, and certain diagnostic services are packaged and not separately payable, which means they appear on the claim but do not generate their own payment. Every CPT and HCPCS code carries an OPPS status indicator that determines how it is paid: separately payable, packaged, conditionally packaged, or paid as a significant procedure where only the highest weighted APC pays in full. A billing team that reads the status indicator before the claim goes out avoids the common outpatient error of expecting separate payment for a packaged item.
Outpatient evaluation and management billing has its own quirk. Hospital outpatient departments and emergency departments bill evaluation and management visits using HCPCS Level II G-codes for emergency department visits, not CPT evaluation and management codes, while hospital outpatient clinic visits use CPT evaluation and management codes and are assigned to APC levels for clinic visits based on the code. Observation services are billed using revenue code 0762 and HCPCS code G0378 per hour, or the initial observation care codes, depending on the payer and the service. The two-midnight rule is the bridge between the two systems: it decides whether the patient is on the IPPS track or the OPPS track, and the claim must follow the track the status order chose.
THE CHARGEMASTER AND WHY BILLED CHARGES ARE NOT PAYMENT
The chargemaster is the hospital internal price list, a database of every service, supply, drug, and item the hospital bills, with the charge amount for each. The chargemaster charge is the billed amount, what the hospital submits on the claim. The actual reimbursement the hospital receives is almost always lower than the chargemaster charge, and the gap is explained by contractual adjustments. Medicare pays based on the IPPS DRG rate or the OPPS APC rate, not the chargemaster charge. Commercial payers pay based on their negotiated contract rate, which may be a percentage of Medicare, a percentage of charges, or a per diem or case rate. The difference between the chargemaster charge and the contracted payment rate is written off as a contractual adjustment, and it does not appear in the hospital net revenue.
That gap is why the chargemaster charge must never be quoted to a patient as the price of a stay, and why a high chargemaster charge does not mean a high payment. Historically, some commercial payer contracts were based on a percentage of charges, and in that model higher charges produced higher reimbursement, which is one reason chargemaster rates were set high. Most large payer contracts have moved away from percentage of charge models, but the historical practice of setting chargemaster rates high persists, and the rates are now publicly visible under the hospital price transparency rule, which requires hospitals to publish chargemaster rates and negotiated rates for common shoppable services. The billed charge still matters for one reason: it is the starting point for the claim, and a chargemaster line with the wrong revenue code, the wrong charge, or the wrong HCPCS pairing repeats its error on every claim that uses it. Chargemaster review is therefore a billing function, not just a finance function, and it belongs on the same audit cycle as the coding review.
THE DENIALS THAT REPEAT, AND WHAT FIXES EACH ONE
| Denial pattern | Likely cause | Fix |
|---|---|---|
| Inpatient claim denied, patient status not supported | Inpatient order missing, late, or unsigned, or the record does not support an expectation of two midnights | Confirm the signed inpatient order is in the record before billing, and confirm the expectation and the reasons for it are documented at admission |
| Claim denied as duplicate | Corrected claim sent as a new claim with frequency 1 instead of a replacement with frequency 7 | Send corrections as a replacement claim, type of bill 0117, referencing the original claim, and void claims that should never have been submitted with frequency 8 |
| DRG downgraded, complication missing | Secondary diagnosis documented in the record but not coded, or coded without the correct present on admission indicator | Code every secondary diagnosis the record supports, check the POA indicator against the admission note, and run a pre-bill DRG review |
| DRG paid at a higher tier, then recouped | Hospital acquired condition marked present on admission when the record shows it developed during the stay | Mark the POA indicator from the admission record, not from the discharge summary, and query the physician when the timing is unclear |
| Principal diagnosis wrong | Admitting diagnosis copied into FL 67 instead of the diagnosis established after study | Decide the principal diagnosis from the discharge summary and the full record, and never copy FL 69 into FL 67 without checking it |
| Revenue code mismatch | Chargemaster line mapped to the wrong department, or a laboratory charge on a pharmacy revenue code | Correct the chargemaster mapping, then correct and replace the affected claims |
| CPT code on an inpatient facility line | Inpatient procedure reported in CPT instead of ICD-10-PCS | Report inpatient procedures in ICD-10-PCS, with the correct root operation, body part, approach, device, and qualifier |
| Transfer paid as a full DRG, then adjusted | Discharge status says home when the patient was transferred to another acute care hospital | Code the discharge status from the actual discharge disposition in the record, and check it again when the plan changes at the last minute |
| Observation billed as inpatient | Patient placed in observation, but the claim went out as type of bill 0111 | Bill observation as outpatient, type of bill 0131, with revenue code 0762, and use condition code 44 when utilization review corrects the status before discharge |
| Facility and professional claims disagree | Principal diagnosis differs between the UB-04 and the CMS-1500 for the same stay | Reconcile the diagnosis from the same record before either claim goes out, and correct the claim that does not match the record |
| Outpatient packaged item denied as separately payable | OPPS status indicator says the item is packaged into the primary APC | Check the status indicator before billing, and do not expect separate payment for a packaged item |
| Claim denied, timely filing expired | Claim submitted after the payer filing window, counted from the discharge date | Track the filing deadline from the discharge date for inpatient claims, and submit corrected claims as replacements within the window |
THE INPATIENT BILLING CHECKLIST
Use this checklist before the claim goes out, not after the denial arrives. Each item is a check that takes minutes and prevents a denial that takes weeks to unwind.
- Confirm the signed inpatient order is in the record, and confirm the documented expectation supports two midnights, or that an inpatient only procedure or a case by case exception applies.
- Confirm the patient status matches the claim: inpatient on type of bill 0111, observation on type of bill 0131 with revenue code 0762.
- Confirm the statement period in FL 6 runs from the admission date through the discharge date, and that the admission and discharge dates match the record.
- Confirm the discharge status in FL 17 matches the actual discharge disposition, and check it again if the discharge plan changed on the last day.
- Decide the principal diagnosis from the discharge summary and the full record, after study, and do not copy the admitting diagnosis from FL 69 without checking it.
- Code every secondary diagnosis the record supports, and check each present on admission indicator against the admission note.
- Confirm every inpatient procedure is coded in ICD-10-PCS, with the correct root operation, body part, approach, device, and qualifier, and that no CPT code sits on an inpatient facility line.
- Confirm every revenue code line matches the department that provided the service, and that the chargemaster mapping for each line is current.
- Run a pre-bill DRG review: principal diagnosis, secondary diagnoses, POA indicators, procedures, age, sex, and discharge status, checked against the record by a second coder or auditor.
- Confirm the facility claim and the professional claims for the same stay agree on the patient, the dates, and the principal diagnosis.
- Confirm the MOON was given when observation ran past 24 hours, and that condition code 44 is on the claim when utilization review corrected the status before discharge.
- Confirm the timely filing deadline, counted from the discharge date, and submit corrections as replacement claims with frequency 7, never as new claims.
FREQUENTLY ASKED QUESTIONS
What is the difference between hospital billing and physician billing?
Hospital billing, also called facility or institutional billing, pays the hospital for its resources on the UB-04 claim, transmitted as the 837I, using ICD-10-CM, ICD-10-PCS, revenue codes, condition codes, and value codes, and Medicare pays it under IPPS for inpatient stays and OPPS for outpatient services. Physician billing, also called professional billing, pays the physician for the physician work on the CMS-1500 claim, transmitted as the 837P, using CPT and ICD-10-CM, and Medicare pays it under the Physician Fee Schedule. The same stay usually produces both claims.
What form does a hospital use to bill an inpatient stay?
The hospital uses the UB-04, formally the CMS-1450, transmitted electronically as the 837I. The CMS-1500 is the physician claim form, not the hospital form, and using it for a facility stay will not reach the facility payment system.
What is a revenue code, and why does it matter?
A revenue code is a three or four digit code on each service line of a UB-04 claim that identifies the department or type of service that produced the charge, such as room and board, pharmacy, laboratory, operating room, or emergency room. Revenue codes are maintained by the National Uniform Billing Committee and are required on all UB-04 claims. They have no equivalent in professional billing, and a wrong revenue code is a mismatch the payer edit will catch.
What is an MS-DRG, and how is it assigned?
An MS-DRG, or Medicare Severity Diagnosis Related Group, is the grouping that sets the inpatient facility payment under IPPS. The grouper assigns it from the principal diagnosis, the secondary diagnoses and their complication or comorbidity tier, the ICD-10-PCS procedures, the patient age and sex, and the discharge status. One payment covers the whole admission, set by the DRG relative weight multiplied by the hospital base rate, adjusted for the wage index and other hospital specific factors.
Why does one coding error change the payment for the whole stay?
Because the payment is one amount for the admission, set by the DRG, and the DRG is set by the coded diagnoses and procedures. A missing secondary diagnosis can drop the case to a lower complication tier, a wrong principal diagnosis can move the case to a different Major Diagnostic Category, and a wrong discharge status can turn a full DRG payment into a per diem transfer payment. In professional billing, an error usually costs one line. In inpatient billing, it reprices the stay.
What is the difference between a CC and an MCC?
A CC, or complication or comorbidity, is a secondary diagnosis with a significant effect on the severity of illness or the resources used during the admission. An MCC, or major complication or comorbidity, is a secondary diagnosis with a substantially greater effect. The MS-DRG definitions manual defines which diagnoses count as a CC or MCC for each principal diagnosis, and the grouper applies that list. The coder codes every diagnosis the record supports and lets the grouper sort the tiers.
What does the present on admission indicator do?
The POA indicator says whether a diagnosis was present at the time the inpatient order was written: Y for yes, N for no, U for unknown, and W for clinically undetermined. A complication that was present on admission can raise the DRG tier. A hospital acquired condition that was not present on admission does not raise the DRG, and Medicare does not pay the higher DRG rate when the only complication is a hospital acquired condition.
What is the two-midnight rule?
The two-midnight rule, in 42 CFR 412.3, says a Medicare Part A inpatient admission is generally appropriate when the admitting practitioner expects the patient to need medically necessary hospital care that crosses two midnights, and the medical record supports that expectation. Shorter expected stays are generally billed as outpatient observation. The test is the expectation at the time of the order, not how long the patient actually stayed, and only a signed inpatient order makes a patient an inpatient.
Does observation count toward the three day skilled nursing facility stay?
No. Observation is an outpatient service, even when the patient spends the night in a hospital bed, and observation nights do not count toward the three consecutive inpatient days Medicare requires before skilled nursing facility coverage. Only inpatient days count, starting with the admission day and not counting the discharge day.
What is the difference between IPPS and OPPS?
IPPS, the Inpatient Prospective Payment System, pays inpatient facility stays with one MS-DRG payment per admission. OPPS, the Outpatient Prospective Payment System, pays outpatient facility services with APC payments per service, and multiple services in one visit may each generate a payment, subject to packaging rules. The patient status decision, inpatient or observation, decides which system applies.
How much does a DRG pay?
There is no single national rate. The payment is the DRG relative weight multiplied by the hospital base rate, and the base rate is adjusted for the local wage index, teaching status, and disproportionate share status, so two hospitals with the same DRG are paid different amounts. Confirm the payment for a given claim from the payer and the hospital specific rate, never from a figure quoted for another hospital.
Can a hospital bill CPT codes on an inpatient claim?
No, not for inpatient procedures. Inpatient facility procedures are coded in ICD-10-PCS, which is a seven character system describing the section, body system, root operation, body part, approach, device, and qualifier. CPT codes appear on outpatient facility lines, paired with revenue codes, and on professional claims, but a CPT code on an inpatient facility line is an error.
EDUCATIONAL DISCLAIMER
This article is educational information about hospital inpatient billing rules. It is not billing advice, coding advice, or legal advice, and it does not replace the current ICD-10-CM and ICD-10-PCS code sets, the MS-DRG definitions manual, the Medicare Claims Processing Manual, the Code of Federal Regulations at 42 CFR 412.3, the National Uniform Billing Committee UB-04 manual, or the medical policy of the payer on the claim. Confirm the codes, the form locators, the revenue codes, the DRG assignment, the patient status decision, and the payment rates for each payer with the payer contract and billing manual, or with a qualified billing adviser, before submitting a claim.