stn 02 · rec 2026 · alero, home health compliance
Turning a Medicare Manual into 108 Testable Rules
Compiled the Medicare home-health pre-claim review requirement set into 108 machine-readable rules, each carrying its own regulatory quote, citation and pass/fail contract, so an agency can see what is missing before it submits the request.
sec 01 · brief
The problem
Medicare's Review Choice Demonstration puts home health agencies in Florida under pre-claim review. Under Choice 1 the documentation goes to the contractor before the claim does, and a non-affirmed request is a denial. Staying on the light-touch path means holding at least 90% full affirmation over a minimum of ten requests every six-month cycle. Florida reached full implementation in September 2021, and the demonstration now runs to May 2029.
No single document says what a compliant request looks like. The requirement set is spread across a manual chapter, four sections of the Code of Federal Regulations, an operational guide, 115 published FAQs, a contractor audit form and three therapy coverage determinations, and several of these disagree with each other. A chart audit therefore means a person reading a hundred pages against a checklist they half remember.
The request was for a system that checks a case before it goes to the contractor. Can the requirement set be written as rules that check a case and say what is missing, with the citation and the fix beside it, before the request is submitted?
sec 02 · approach
What I built
I answered the question with a rulepack, where the nearest alternative was a single prompt. Each rule is one YAML file, and a Python build script compiles and validates them into a single JSON artifact that anything downstream can read. A rule that cannot be pointed at its own line of regulation does not compile.
I typed each rule by how it decides, and that choice sets what a case costs to check. 64 of the 108 rules are deterministic: they test dates, the presence of a document and identifier equality, and they run as pure functions at no model cost. 30 are judgment rules, and 14 are hybrids with an arithmetic prong and a judged one. Naive per-rule model execution of the full set was estimated at $3–5 a case. With the rules typed this way, most of them run at no model cost.
The rules are nodes in a graph, so a rule can name the definitions and the other rules it relates to. 351 typed edges across seven relations carry definition dependencies, sibling links, G-code activation and escalation from the always-on core tier into the deep one. One relation, `defeats`, lets a carve-out shield a rule it would otherwise fail, such as a death exception over the face-to-face timing rule. A separate document index answers "which rules rest on this manual section" with a query.
sec 03 · method
Method
01
Build the corpus and rank its authority
This stage settles which document wins when two disagree. I registered nineteen documents, each with a version and a currency date, and arranged them in four tiers: statute, the Code of Federal Regulations, sub-regulatory manuals and the demonstration notices. The tier decides which instrument wins a conflict, and Azar v. Allina Health Services is the warrant for resolving conflicts in favour of the manual over an unpublished contractor position.
02
Extract requirement candidates with their quotes
This stage settles what the requirement set contains. A first pass over the corpus produced roughly 190 requirement candidates, each captured with the verbatim sentence that creates it and a page reference. The same pass registered five conflicts between documents: a retired review option, a decision window that moved from twenty business days to ten, a postpayment window quoted two ways, two incompatible task numberings and a swapped criteria order. Registering them here meant later disagreements were already known.
03
Design the rule schema against the evaluation literature
This stage settles how a rule that needs judgment is asked and graded. A judgment rule answers a checklist of binary questions and produces no score, following CheckEval's finding that decomposition raised average agreement across evaluator models by 0.45 and cut score variance. The grader contract is HealthBench's: a boolean, a quoted evidence span and a one-sentence explanation. Small models in boolean output default to "compliant" regardless of what they detected, so chain-of-thought is off, three samples vote, and a disagreement goes to a human and is never averaged.
04
Author, consolidate and conserve
This stage produces the rules and settles which of them run on every request. I consolidated 121 fine-grained proto-rules into the pack and conserved 35 retired identifiers in supersedes entries, so no identifier was lost in the merge and any historical reference still resolves. The rules split into a 25-rule core tier that always runs and an 83-rule deep tier a reviewer can call per area.
05
Compile, validate, then audit against the sources
This stage settles whether the compiled rules say what their sources say. The build script checks structure: filenames must match ids, folders must match areas, every edge target must resolve, and the superseded index must account for every retired id. Two audits then read every rule back against the document it cites, one for fidelity to the regulation and one for internal consistency across the pack.
sec 04 · legend
Instruments
legend · methods
legend · language & data
legend · models
legend · review surface
sec 05 · readings
Results
rules in the pack
108
25 core · 83 deep
deterministic rules
64 of 108
run with no model call
auto non-affirm rules
18 of 108
all 18 sit in the core tier
source documents registered
19
7 cited by no rule
typed graph edges
351
7 relations · 18 definition nodes
legacy ids conserved
35
each mapped forward in a supersedes entry
fabricated quotes found
0
95 rules · two full audits
fidelity audit
1 blocker
64 clean · 30 advisory · of 95 rules
judgment rules calibrated
0 of 44
κ null · 0 labelled examples · 0 of 108 reviewed
plate 01
Most of the pack needs no model
deterministic
llm judgment
hybrid
Rules by how they decide. The 64 deterministic rules are pure functions over dates, document presence and identifier equality. They cost nothing to run and cannot hallucinate. Only the 30 judgment rules and the judged prong of the 14 hybrids reach a model. This is the share of the requirement set that can be checked at no model cost.
source
Compiled rulepack, check.type across all 108 rules. Accent marks the share that runs at no model cost.
plate 02
Eighteen rules can deny a request on their own
auto non-affirm
high
medium
advisory
Rules by severity. An auto non-affirm rule is one where a single failure denies the request outright, so those eighteen decide what has to be checked every time. Together with seven high-severity date checks they make up the core tier.
source
Compiled rulepack, severity across all 108 rules. Ordered by severity rank. Ordering by count would put high first.
plate 03
One manual chapter grounds most of the pack
Benefit Policy Manual ch.7
Medical record audit form
Claims Processing Manual ch.10
RCD FAQs
Operational Guide
How many rules cite each source document. Chapter 7 of the Benefit Policy Manual grounds 77 of 108 rules, and nothing else reaches twenty. The same document index shows that seven of the nineteen registered documents are cited by no rule.
source
Compiled rulepack, distinct rules per document in the document index. Twelve documents have at least one citation. The other seven have none and are not plotted.
sec 06 · reference
The core rules
The core tier: 25 of the 108 rules, with the 12 shared definitions they depend on. The selection is the whole core tier, the rules that run on every request: the 18 auto non-affirm rules plus 7 high-severity date checks. The other 83 are deep-tier and run when a reviewer asks for an area. Drag the graph around, and click any node to read the rule or definition behind it.
source
Compiled rulepack artifact, built 2026-07-29. Ids, labels, severities, check types, checklist items and quotes are transcribed verbatim. No case is evaluated, so no rule carries a verdict.
graph · core subgraph · drag a node, click to open
The same 25 rules as a graph, with the 12 shared definitions they depend on: 85 edges over 81 node pairs. Mark size is degree. Position encodes connectivity and nothing else. There are no axes, and two marks sitting close together pull on each other without measuring anything. The layout is computed once at build time from a fixed seed, so it is the same drawing on every build. It shows that the rules are tied to each other mainly through the definitions they share. The busiest node is the two-clocks definition, the 30-day billing period against the 60-day episode, which six rules depend on and three other definitions cross-reference.
The two clocks - 30-day billing period vs 60-day episode
text
Since PDGM (1/1/2020) the unit of payment is the 30-DAY BILLING PERIOD: one PCR request per 30-day period, each generating its own 14-byte UTN; claims are per period; each period is reviewed independently with the full episode documentation. Certification, recertification, the F2F encounter, POC review, and OASIS remain on the 60-DAY EPISODE: two billing periods nest inside each 60-day certification period; the POC must account for all dates on the request (a POC covering only the first 30 days gets the second period non-affirmed); no new F2F is required mid-episode absent discharge and readmission; a new Start-of-Care OASIS triggers a new PCR. Every dated rule must declare which clock it runs on.
authority Operational Guide Ch.4 · p.9 · RCD FAQs Q103-Q109
sec 07 · findings
What the data said
finding · result
Most of the requirement set can be checked without a model
The requirement set can be written as rules, each with its citation, and sixty-four of the 108 resolve without a model. Those rules ask whether the document is in the packet, whether the encounter date falls inside the window, and whether the identifiers match across the OASIS, the 485 and the request. Typing the rules by how they decide, where the alternative was sending every rule to a model, is what moves the cost of a case from an estimated $3–5 to a fraction of it. The rules that need no model are also the ones that catch the most common denials. No case has been run through the pack yet, as the limits below state.
finding · negative result
A rule stricter than the regulation would deny cases it permits
The fidelity audit found one blocker in 95 rules. The homebound absences rule had encoded "infrequent OR of short duration" as a conjunction. The manual disqualifies an absence only when it is both frequent and prolonged, so the rule would have failed cases the regulation permits, which is the direction of error that costs an agency money. The rule was fixed in the same session, and it is the reason the audit reads each rule against its source.
finding · negative result
A search summary invented a requirement, and the audit caught it
An earlier pass worked from a summarised search result and recorded a requirement the regulation no longer contains: that therapy goals must carry an expected date of accomplishment. Reading the physical therapy coverage determination directly showed that revision R11, in October 2016, deleted that phrase. Encoding it would have created a denial reason that no longer exists.
finding · result
One document grounds most of the pack, and seven are cited by no rule
Chapter 7 of the Benefit Policy Manual grounds 77 of 108 rules. The document index built to establish that also shows that seven of the nineteen registered documents are cited by no rule. Each of the seven is either a coverage gap or a document the corpus does not need.
finding · result
A closed set can be decided, and an open genus has to be judged
A list in the regulation is either open or closed, and the two need different check types. "Supportive devices such as crutches, canes, wheelchairs, and walkers" is an open genus: the enumeration is illustrative, so a walker-equivalent the manual never names still qualifies, and the rule has to be judged. The 19 therapy G-codes look similar on the page, but they are a closed set where membership is decidable, so the rule is deterministic. An earlier analysis had grouped the two together, which would have sent a decidable rule to a model and a judgment call to an equality test.
finding · negative result
Transitive definition closure was measured, then rejected
Promoting definitions transitively was measured before it was adopted, and the measurement ruled it out. Rules inject the definitions they depend on into the judge's context, and extending that to the definitions' own dependencies looked correct. The 18-definition graph carries 29 cross-references including nine mutual pairs, so blanket promotion would inject up to seven extra definitions into a single rule's context and dilute the prompt.
sec 08 · forward
Recommendations
01
Calibrate against real decision letters. Every judgment rule ships uncalibrated, so the rules that need a model have no measured agreement behind them. Historical pre-claim review outcomes with their unique tracking numbers and reason codes are the one input that would measure it.
02
Map non-affirmation reason codes back to rule ids, so that a denial corrects the pack as well as the reviewer. This rests on the same gap as the calibration above.
03
Cite or retire the seven uncited documents named in the document-index finding. Each is either a gap in coverage or a document the corpus does not need, and the index cannot tell which.
04
Obtain Chapter 6 of the Program Integrity Manual, the one instrument in the authority stack still missing from the corpus. The ranking from the first method stage is incomplete without it.
05
Put a human sign-off on every rule. The reviewer field is empty across all 108, and the two audit findings show that a rule can compile and still misstate its source.
06
Pilot the pack to replace the cost and latency estimates behind the first finding with measurements, and to test the routing thresholds against cases where a reviewer disagrees with the panel.
sec 09 · notes
Notes
disclosure
The organisation this work was done for is Alero by The Care Guides, named as itself. No individual is named. Everything else on this page is real: every rule id, label, severity, check type, citation and quote is transcribed from the compiled rulepack, and every count and audit figure is the measured one. The regulatory material is public federal regulation and is named as itself. No patient data appears: the product view this catalogue is drawn from evaluates a case, and no case, real or invented, is shown here.
limits
- The engagement delivered the rulepack, the corpus and the system design. No product application was built in this phase, so nothing here has been observed running against live cases.
- All 44 judgment and hybrid rules ship uncalibrated, with agreement kappa null and zero labelled examples, and no rule carries a human reviewer. The artifact records this, and it means no accuracy claim is available.
- Cost and latency figures are design estimates from the model pricing and the prompt sizes. No pilot has measured them.
- The pack is grounded in the Florida jurisdiction and its contractor. The demonstration runs in six states, and the others would need their coverage determinations re-read before any of this transfers.
- The two audit figures quoted above were run against a 95-rule snapshot, and the pack has since grown to 108. They are reported with the denominator they covered.
- The corpus is copyright-bound and not redistributable, so the quotes shown in the reference below are the short operative excerpts each rule already carries.