lake: publish primary-care attribution codes + gpci_proposed to DuckLake #630
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The notebook reads only DuckLake, but the MSSP designated-primary-care-service list (42 CFR 425.400(c); 109 HCPCS codes) lives only in the aco monolith as
cms_provider_attribution._primary_care_hcpcs_codes, and #629's newpfs.gpci_proposedstarts monolith-side too.Extend
dev/scripts/publish_reference_to_lake.py:gpci_proposedto thepfsschema tuple.cms_provider_attribution._primary_care_hcpcs_codes→cms.primary_care_service_code.Run it inside the notebooks container (the script's documented path — it is currently the only venv whose duckdb can attach the migrated DuckLake catalog, see #633). Acceptance:
pfs.gpci_proposedandcms.primary_care_service_codequeryable fromconnect.ducklake()in the notebooks container with expected row counts (109 codes; ~113 localities × year-partitions).Spec: docs/superpowers/specs/2026-08-17-cy2027-notebook-gpci-pqm-design.md (D2).
Published and verified from the notebook's exact read path (
connect.ducklake()in the notebooks container):pfs.gpci_proposed: 327 rows — (CMS-1832-P, 2026)=109, (CMS-1832-P, 2027)=109, (CMS-1848-P, 2027)=109cms.primary_care_service_code: 109 rowscms.ingest_log: 2 rows forpfs.gpci_proposed(run with FR citations 90 FR 32352 / 91 FR 43842, pincite keys 2KVJ2HKX / 5ITGVDJV)[OK]with read-back verification.