Files
stack/src
kert 19bc98b7f4
Some checks failed
CI / skinny-install (aco) (push) Successful in 54s
CI / lint-test (push) Successful in 1m19s
CI / skinny-install (bcda) (push) Successful in 31s
CI / skinny-install (bib) (push) Successful in 33s
CI / skinny-install (ccw) (push) Successful in 30s
CI / skinny-install (cli) (push) Successful in 41s
CI / skinny-install (cms) (push) Successful in 31s
CI / skinny-install (conf) (push) Successful in 31s
CI / skinny-install (opps) (push) Successful in 33s
CI / skinny-install (rex) (push) Has been cancelled
CI / skinny-install (api) (push) Successful in 31s
CI / skinny-install (bls) (push) Successful in 30s
Infra CI / notebooks (push) Has been cancelled
CI / skinny-install (pfs) (push) Has been cancelled
CI / skinny-install (perf) (push) Has been cancelled
Infra CI / zotero (push) Has been cancelled
Infra CI / docs (push) Has been cancelled
Infra CI / api (push) Has been cancelled
Infra CI / mc (push) Has been cancelled
CI / skinny-install (bcda) (pull_request) Successful in 34s
CI / skinny-install (aco) (pull_request) Successful in 52s
CI / lint-test (pull_request) Successful in 1m22s
CI / skinny-install (api) (pull_request) Successful in 31s
CI / skinny-install (bib) (pull_request) Successful in 34s
CI / skinny-install (ccw) (pull_request) Successful in 28s
CI / skinny-install (cms) (pull_request) Successful in 30s
CI / skinny-install (cli) (pull_request) Successful in 37s
CI / skinny-install (conf) (pull_request) Successful in 30s
CI / skinny-install (opps) (pull_request) Successful in 31s
CI / skinny-install (perf) (pull_request) Successful in 31s
CI / skinny-install (pfs) (pull_request) Successful in 33s
Infra CI / notebooks (pull_request) Successful in 7s
CI / skinny-install (bls) (pull_request) Successful in 31s
Infra CI / zotero (pull_request) Successful in 6s
CI / skinny-install (rex) (pull_request) Successful in 28s
Infra CI / docs (pull_request) Failing after 10s
Infra CI / mc (pull_request) Successful in 6s
Infra CI / api (pull_request) Successful in 9s
fix: PFS payment calculation — MAC-aware GPCI join for exact CMS parity
The payment() function joined RVU and GPCI on locality alone, but
locality is not unique in the GPCI table — 109 rows map to only 47
distinct locality codes.  Different Medicare Administrative Contractors
(MACs) apply different GPCI values to the same locality number.

Joining on locality alone produced a fan-out (e.g. 19 GPCI rows matched
for locality 01) and the calculation silently used the first match,
giving correct results only for that one MAC.

Fix: join on (mac, locality) when both DataFrames have a mac column,
falling back to locality-only for backward compatibility.

Validated: 0 diff across 889,658 carrier_locality rows for CY2025.

Also: update pfs_calcs.py notebook to use MAC-aware locality picker
so the comparison shows exact match ($0.00 difference) for all
year/MAC/locality/HCPCS combinations.
2026-03-26 20:58:01 -04:00
..