Inpatient Only Lookup

Revenue at stake: methods

How each card’s two payments are found, where every number comes from, and what the comparison cannot tell you.

Draft · built with Claude Code · under coder review

Method

  1. Which codes. The 922 codes that left the inpatient-only list on January 1, 2026 (285) or January 1, 2027 (637), from this site’s own history of CMS’s Addendum B files.
  2. CPT to ICD-10-PCS. Each code was mapped to the ICD-10-PCS codes a hospital would report for the same operation as an inpatient, with an expected principal diagnosis. Some codes have several alternative sets (a different lobe, a different approach). Two separate AI passes made the maps without seeing each other’s work; where they grouped to different DRG families, a third pass chose. Every PCS and ICD-10-CM code is checked against the FY 2027 code sets.
  3. ICD-10-PCS to an MS-DRG family. A small grouper written for this project places each set and diagnosis in an MS-DRG family from the MS-DRG v44 Definitions Manual: the diagnosis gives the MDC, and the highest operating-room procedure in that MDC’s surgical hierarchy gives the family. With no operating-room procedure, the family is the diagnosis’s medical DRGs. With an operating-room procedure outside the diagnosis’s MDC, it is the “unrelated” family (981–983 or 987–989). This is the surgical-family part of a grouper, not the full MS-DRG software; it does not pick the severity level within a family, which is why each family is a range.
  4. Inpatient payment. Each DRG’s FY 2027 relative weight × ($6,848.00 operating standardized amount + $539.95 capital federal rate) = weight × $7,387.95. The family’s range runs from its lowest-weighted DRG (usually without CC/MCC) to its highest (with MCC).
  5. Outpatient payment. The code’s CY 2027 status indicator, APC and national payment rate from the final rule’s Addendum B, with the APC title from Addendum A, and the surgery-center rate from ASC Addendum AA where CMS lists the code.
  6. The difference. Outpatient rate minus the inpatient range. A negative number means outpatient pays less.

Two different years

Outpatient: CY 2027 OPPS (from Jan 1, 2027). Inpatient: FY 2027 IPPS (Oct 1, 2026 – Sep 30, 2027). The two systems run on different calendars, so these are the rates in force for a case on January 1, 2027. An inpatient case after September 30, 2027 is paid on FY 2028 rates.

National, unadjusted

Every dollar figure here is a national amount with no hospital-specific adjustment: none: no wage index, IME, DSH, outlier or other hospital-specific adjustment. A hospital’s own inpatient payment is usually higher. Its wage index adjusts the labor share of the operating amount, and teaching (IME) and disproportionate-share (DSH) add-ons raise it further. Published hand-worked examples, such as a figure of about $20,000 for a lobectomy, may include those adjustments. The figures here include none of them. For example, DRG 165 (major chest procedures without CC/MCC) is its relative weight, 1.9294, × $7,387.95.

Outpatient payments are wage-adjusted too (60% of the rate), but get no IME or DSH add-on. The Excel download has an Inputs tab where you can enter your own wage index, IME and DSH; every amount recalculates.

Tiers and review status

Each mapped code gets a tier, computed from the mapping passes, never set by hand.

The two passes are not fully independent: both are AI, working from the code, CMS’s short descriptor and this site’s label, not from the AMA’s full descriptors. Agreement makes a wrong map less likely, not impossible. A coder’s review is what moves a code to confirmed. How review works

Before you use these numbers

Limits

Run it on your own claims

A national family range is a starting point. A hospital can replace it with its own experience:

  1. Pull your Medicare inpatient claims from the last year or two with an ICD-10-PCS procedure code listed on these cards.
  2. Count which MS-DRG each claim grouped to. That is your own distribution within the family, CC and MCC included.
  3. Weight the DRG amounts by that distribution, using your own wage index, IME and DSH (the Excel Inputs tab does this arithmetic).
  4. Compare with the outpatient APC rate adjusted by your wage index, for the cases that could have been outpatient under the two-midnight rule.

If you do, and you can share only totals (no patient information), a correction through Help review improves the estimate for everyone.

Built with Claude Code

This section was built by Dalton Haslam, MD, MBA using Claude Code, Anthropic’s AI coding tool. Claude wrote the pipeline, the grouper and the pages, made the two mapping passes and the adjudications, and wrote the first-pass diagnosis choices. Each build checks, and fails if any check fails, that every PCS and ICD-10-CM code is valid in the FY 2027 code sets; that every PCS set and diagnosis regroups to its family and traces to an MS-DRG v44 Appendix E row; that DRG weights, titles and MDCs match Table 5 and Appendix A; that APC and surgery-center rates match the addenda; that every dollar amount and difference recomputes to the cent; and that no published text copies a CPT descriptor. None of that checks whether a mapping is the right clinical or coding choice; only the coders who review it do. Until a card says confirmed, treat its mapping as a draft.

Sources

Every number on a card comes from one of these CMS files.

CMS sources and the files read from each
SourceFiles read
CY 2027 OPPS final rule (CMS-1850-FC), Addenda A and B (opens in a new tab)2027 FR Addendum A.11.10.26.xlsx
2027 FR Addendum B.11.10.26.xlsx
CY 2027 OPPS proposed rule (CMS-1850-P), Addendum B (opens in a new tab)2027 NPRM Addendum B.06.30.2026.xlsx
CY 2027 ASC final rule (CMS-1850-FC), Addendum AA (opens in a new tab)2027 FR ASC Addenda- CY 2027 ASC AA.csv
ICD-10-CM FY 2027 code titles (tabular order file) (opens in a new tab)icd10cm_order_2027.txt
FY 2027 IPPS final rule, correction notice Tables 1A-1E (standardized amounts, capital rate) (opens in a new tab)CMS-1849-CN Tables 1A - 1E.txt
FY 2027 IPPS final rule, correction notice Table 5 (MS-DRG relative weights) (opens in a new tab)CMS-1849-CN Table 5.txt
MS-DRG v44.0 Definitions Manual (opens in a new tab)appendix_A.txt
appendix_B.txt
appendix_D_E.txt
appendix_F_I.txt
mdcs_00_07.txt
mdcs_08_11.txt
mdcs_12_21.txt
mdcs_22_25.txt
ICD-10-PCS FY 2027 code titles (order file) (opens in a new tab)icd10pcs_order_2027.txt

Regulations: 42 CFR 412.3 (opens in a new tab) (inpatient admissions and the two-midnight rule).

Updates and downloads

Built November 12, 2026. Rebuilt each October for the new fiscal year’s inpatient weights, rates and grouper version, and each January for the new calendar year’s outpatient rates and the next removals from the list. Coder reviews are added between those updates; a status changes only when they are.

Download Excel (live formulas off an Inputs tab) or download the CSV: one row per code and DRG family, plain values. No AMA content: codes and this site’s labels only. The code and the mappings (opens in a new tab) are public under the MIT license.