Automation Build Log

What was built, and what it replaced.

The engineering record behind every A3HCS tool: the problem in the buyer's own words, the manual process it replaced, the measured time delta, and what broke on the way. Every tool is built to one test: priced from the primary CMS files, assumptions on the label, honest about what it cannot see. The failures are included, because they are the part that reads as credible.

All A3HCS tools →

Every finished, publicly reachable A3HCS tool is listed in one place, on the tools shelf. Work that is designed, wired, or partially built is deliberately not listed there. This page is the engineering record behind those tools: what the problem was, what the manual process cost, and what broke on the way.

The build record

How each tool got here. Failures included, because they are the part that reads as credible.

The Medicare payment that moves independently of everything else you track

CMS DSH supplemental files · stdlib Python · one JSON payload · no dependencies

Hospitals2,404
receiving a payment
Markets415
as CMS pays them
National pool$7.82B to
$8.05B

The problem, in the buyer's words

Our DRG number looks fine. Why is the total still down?

The Medicare Uncompensated Care Payment is paid flat per discharge, not per DRG. It moves on a hospital's share of a national pool rather than on what it treats, which means it can fall in a year when the DRG picture improves, and nothing in a DRG-based analysis will show it. It is a genuine blind spot rather than a rounding error: the national pool is above eight billion dollars.

What runs now

Every IPPS hospital that receives a payment, FY2026 against FY2027, grouped into the 415 markets CMS actually pays by rather than by state. A grid tile map shaded by each state's largest single payment, a per-market view with a stacked bar per hospital separating what carried over from what was gained and lost, a national top 25, and the pool itself. The national pool moves from $7.82B to $8.05B, up 2.88%, which tells an individual hospital almost nothing, because this is a redistribution and the only number that matters is your share of it.

What broke

  • The source files fight you. CMS publishes these as latin-1 tab-separated text with the real header on the second row, a row of bracketed column numbers on the third, and data starting on the fourth, and the two fiscal years do not agree on that offset. Dollar fields arrive as quoted strings with currency symbols and thousands separators, and the same column also yields N/A, blanks, bare unquoted numbers, and values prefixed with an asterisk. Most of the build was parsing, not modeling.
  • Maryland looks like a bug and is not. The all-payer waiver means Maryland hospitals receive no IPPS uncompensated care payment, so the state comes back empty. The instinct is to hard-code it out. The tool does the opposite: it shows whatever the file actually contains and explains the waiver in the methodology, because a state silently removed by code is indistinguishable from a state lost to a parsing error.
  • Hospitals that appear in only one year cannot be dropped. A hospital with a payment in FY2026 and none in FY2027 has lost its entire payment, which is the single most important thing the tool could tell it. Those are carried at zero in the missing year and flagged as new or lost rather than excluded from the comparison.
  • The build tooling is committed this time. tools/build_ucp.py is tracked from the first commit, and the ignore file covers downloads and caches only. That is a direct consequence of losing the Navigator's first pipeline to its own gitignore, documented in Build 02 below.

Two payment designations, two different arguments, one calculator

Single-file static model · no backend · vendor-neutral by construction

Payment modelsTwo, IPPS and
Critical Access
ReturnsNet value, return,
breakeven volume
Client data requiredNone

The problem, in the buyer's words

We know keeping the patient here is worth something. We cannot put a number on it.

Virtual specialty care is sold on transfer avoidance, and the financial case for it is usually presented as one model with the hospital's numbers dropped in. That is wrong in a way that matters. Under prospective payment a retained case carries DRG margin and the documented complexity lifts case mix across the whole Medicare book. Under Critical Access, paid at 101% of reasonable cost, case mix does not move Medicare payment at all and the value has to come from non-Medicare margin, post-acute capture and downstream retention. Those are not the same argument with different inputs. They are different arguments.

What runs now

A designation selector that changes the model rather than the numbers, over six inputs: annual transfer-eligible cases, distance to the nearest tertiary center, specialties covered, Medicare share of inpatient volume, annual discharges, and the platform cost being evaluated. It returns modeled annual value, net value after platform cost, return, cases retained, and breakeven volume, with every assumption exposed and editable rather than buried.

What broke

  • The first build was parameterised to one client, which made it useless as a public tool. A model carrying a specific engagement's contribution margins and volumes is a deliverable, not a lead magnet, and publishing it would have exposed that client's economics. Genericising it meant replacing every input with a sector placeholder and labelling the platform cost as vendor-neutral, so the visitor enters the price they are actually being quoted. The client-parameterised version lives on a private branch and is never deployed.
  • A model with no stated stopping point gets over-trusted. The public build now carries an explicit "where this model stops" panel saying that every default is a sector placeholder rather than a benchmark. A calculator that returns a confident dollar figure from defaults the user never changed is worse than no calculator, because the number gets quoted.

A number with no scale, and what it took to give it one

Percentile ranking · six measures · three domains · no thresholds

Measures scoredSix, across
three domains
Ranked against2,805
hospitals
Invented thresholdsZero

What changed

The Navigator already answered what happened to a hospital's money. It did not answer how bad that is. A CFO reading minus 1.4% has no way to tell whether that is a disaster or the middle of the pack, and the two ranks already on the page only covered the headline percentage.

The FY2027 Rate Exposure Score turns six measures the model already computes into percentile positions against every repriced hospital, grouped into three domains. Rate impact covers the net revenue change and case mix drift from CMS reweighting. Structural exposure covers wage index movement and the share of payment that does not follow what you treat. Recovery difficulty covers how many service lines are losing money and how concentrated the book is in its top five MS-DRGs. Each measure carries one sixth of the weight.

The third domain is the one that justifies the exercise. It measures the shape of the book rather than the size of the hit, because two hospitals down the same 2% are in very different trouble if one has a single service line collapsing and the other has fourteen. That is the question about what to do next, and it is invisible in the headline.

There is not one invented threshold anywhere in the scoring code. A threshold is an opinion, and the tool does not have opinions about what a good wage index move is. A percentile is a fact about the distribution. The same cycle also took the tool from five sections to nine, adding service-line grouping, a searchable line-by-line table of every published MS-DRG with CSV and print, and an in-page glossary that defines each term where it is used.

What broke

  • One of the six measures was the headline wearing a disguise. The first draft used volume-needed-to-hold-last-year as a recovery measure. It is (prior / current minus 1) against a headline of (current / prior minus 1), a strictly decreasing transform of the same ratio, so it ranked every hospital identically to the headline. The composite was quietly giving one number two of its six weights while presenting it as two separate findings. Caught by running a correlation matrix across the six before shipping rather than after. If you build a composite, correlate the inputs first.
  • Two measures stop being measurements on small books. The top-five share of a four-code book is 100% no matter what that hospital does, and a book sitting in two service lines can only ever be 0% or 100% down. Those are arithmetic, not findings. Each is now dropped for that hospital rather than scored, the composite is the mean of whatever remains, and the page names what was dropped and why.
  • Ranking against a contaminated population puts everyone in the wrong place. Leaving the forced 100s in the distribution shifted every other hospital's percentile. Each measure is now ranked only against the hospitals where it is actually a measurement. 427 hospitals were affected.
  • Averaging six percentiles clusters everything near 50. That is arithmetic, not a finding about hospitals, and round-number tier boundaries would have put almost the whole country in one tier. Breakpoints are taken from the composite's own quintiles and written into the data file, so the front end can never invent one.

What it says about the build

Three of those four failures are the same failure: a number that looks like a measurement but is actually a restatement of something else. The scoring math was trivial. Working out which of the six measures were genuinely independent, and which stopped being meaningful at the small end of the distribution, was the entire job. A score is only worth reading if someone can tell you what it would take to make it lie.

The FY2027 rule cycle, thirteen days after the rule

CMS-1849-F · Python pipeline · same client, new engine year

Rule publishedAugust 4,
2026
All 2,805 repricedAugust 17,
2026
Ahead ofthe CMS pricer
itself

What changed

CMS published the FY2027 inpatient final rule on August 4. Thirteen days later the Navigator priced every IPPS hospital in the country under it, before CMS released its own FY2027 pricer, with the pricer-pending caveat stated on the page and the two genuinely unpublished inputs, the 2027 Part A deductible and the final readmission factors, carried as labelled estimates the user can override.

The rebuild also moved the methodology two steps past the original. Revenue totals now cover a hospital's whole Medicare book rather than the published slice: CMS withholds any hospital-DRG cell under 11 discharges, so the weight-following payments are scaled to CMS's own case count while the charity-care payment is taken, unscaled, from CMS's published annual figure. Every estimated total is labelled with the share actually published. And the 18 MS-DRGs CMS deleted for FY2027 are priced onto their successor codes, shown separately, and held out of the headline, with the one family that requires clinical judgment labelled as a physician-made estimate on every row it touches.

What broke

  • The original data pipeline was lost to its own gitignore. The build tooling was excluded from version control, never committed, and the working copy evaporated. The rebuild took an afternoon only because the pricing engine lives in the client code, so what was lost was a data assembler, not the model. The ignore rule is gone and the pipeline is in the repository. Lesson: gitignore is for artifacts, never for source.
  • We got beaten to our own roadmap item. "Be first with each rule cycle" was written in this tool's build spec in July. A competitor shipped its FY2027 build six days after the rule; this one came thirteen days after, prompted by seeing theirs. A rule-watch trigger beats a roadmap entry.
  • A consistent file basis beat the official pricer at its own game. Tools that price one year from the CMS pricer and the next from rule files inherit a known inconsistency in how the operating DSH ceiling is applied, worth about 4 percentage points at 433 hospitals. Pricing both years from the same files lands on the corrected side of that gap by construction.

DRG Impact Navigator

Static site · precomputed JSON · Python build tooling · Vercel

ManualTwo days
per hospital
AutomatedUnder a minute
any hospital
Coverage2,833 hospitals
532 MS-DRGs

The problem, in the buyer's words

CMS dropped the FY2026 IPPS final rule. What does it do to us?

Every hospital finance team asks this once a year and most cannot answer it cleanly. The rule is published as a set of tables, not as a number. Turning it into "our inpatient revenue moves by this much" requires holding the caseload constant across two rate years, and almost nobody does that. So the answer that reaches the board is contaminated by volume changes and is not really a policy read at all.

The manual process

For a single hospital: pull the CMS Medicare Inpatient Hospitals by Provider and Service file for the caseload, pull FY2025 and FY2026 IPPS final rule standardized amounts and Table 5 relative weights, pull that provider's row from the CMS impact files for wage index, DSH, teaching, capital and uncompensated care, then compute payment per MS-DRG twice and difference it. Then repeat the whole thing for a market comparison. Roughly two days of analyst time, and that assumes you already know where the files live.

At a loaded rate of $100 an hour that is about $1,600 per hospital in internal cost, against $3,500 to $5,000 if the same question is quoted out as a small project. Across all 2,833 IPPS hospitals it would be roughly $4.5M of analyst time, which is why nobody has ever done it exhaustively. The tool did not save one hospital two days. It made an analysis exist that otherwise would not.

What runs now

A public URL with no login. Type a hospital name and the repriced number renders in under a second, with the FY2025 to FY2026 bridge, the payment components, the MS-DRGs that moved the number most, a scenario panel for volume, Part A deductible and sequestration, and a market table. A board-ready one-page brief generates as a printable PDF.

The same 2024 cases are priced at both rate years, so every dollar of change is CMS policy rather than the hospital's volume. That constraint is the entire point of the tool.

What broke

  • Non-IPPS hospitals returned "No matches," which reads as a broken tool. Long-term care, rehabilitation, psychiatric, children's and critical access hospitals are paid under entirely different systems and were never in scope, but the tool said nothing and simply looked wrong. Rebuilt to classify the facility from its CCN and name the payment system that actually covers it. This was the single most valuable fix in the project.
  • The lead-capture modal rendered on page load. A hidden attribute was being overridden by display:flex, so the gate appeared before anyone had looked anything up.
  • Search failed on spelling variants. "St" against "Saint" split the same facility into misses.
  • Retired MS-DRGs cannot be followed one-to-one across rate years, mainly the FY2025 spinal fusion restructuring. Most tools silently drop those cases. This one reports them separately as a crosswalk estimate and keeps them out of the headline number.
  • Deployment broke when the repository went private, and nearly committed local Vercel and environment files in the process.

What it says about the build

Three of the five failures above are not about the pricing model. They are about gracefully explaining what the tool does not cover. The math was the straightforward part. Handling the cases outside the math is what separated a working tool from one that looked broken to a third of the people who tried it.