Unmastered entities drop claim families, silently
encounter.sql inner-joins the mastered-entity mapping, so a claim family whose TIN, department or provider isn't set up has no encounter, and its lines and money go with it. Excluding another business's claims can be correct scoping. But the join treats "not Commonwealth's" and "Commonwealth's, not set up yet" the same way, and reports neither. 82,522 families, $30.3M billed were dropped on the 2026-09-30 run.
| Pay-to TIN | What it looks like | Families | Billed |
|---|---|---|---|
| …07241 | Commonwealth's main TIN, the one set up in Phoenix | 4.15M | – |
| …49338 | CCAMP offices in the Carolinas, Feb–Nov 2025; same locations and providers as Commonwealth; 719 families carry both TINs | 8,016 | $3.41M |
| …11762 | TPI, since Nov 2025, alongside the main TIN at shared hospital and office departments | 825 | $0.49M |
| …97241 | One digit off the main TIN, at one department for three months of 2026: most likely a typo in athena | 1,347 | $0.48M |
| …90082 | 27 Indiana Medicaid claims at Evansville ASC | 27 | $0.06M |
| …87252 | AllyMed: 17 offices and 18 providers of its own, none shared; auto and personal-injury payers | 6,728 | $16.74M |
TINs shown by their last five digits.
Fix. Exclude only on an explicit decision. Left-join the entity mapping and record whether each entity resolved; exclude an encounter only when someone has marked its entity out of scope in Phoenix. Unresolved entities stay visible to admins and in the existing observed_* review tables, and a daily count shows what didn't resolve. Master Good Samaritan Hospital. For providers, fall back to the supervising provider rather than mastering nurses and staff. Ask Commonwealth which TINs are theirs and whether AllyMed is in scope.