skin-subs: extract skin substitute claims from CCLF and synthetic data #234
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?
Objective
Build utilization dataset from available claims data.
Tasks
skin_subs.claims,skin_subs.providers,skin_subs.beneficiariesPre-extraction findings:
Surveyed
core.medical_claim(167,995 rows). Found:This is expected — CMS synthetic data (SynPUF-derived) represents general Medicare claims. Skin substitutes are a niche category (~$10B in real Medicare but absent from synthetic sets.
Revised approach for #234:
Key methodological note: On a real Medicare claim, a skin substitute encounter typically has:
This claim structure is what the predatory pattern detection (#242) will analyze.
Progress: Synthetic claims generated, loaded into DuckDB.
Completed:
dev/scripts/generate_skin_sub_claims.py)skin_subs.claims_synthetic(4,257 lines, 2,000 encounters)source: syntheticandsource_methodologyfor provenanceResults:
Remaining:
Commit: pending
Files:
dev/scripts/generate_skin_sub_claims.pyDuckDB:
skin_subs.claims_synthetic(4,257 rows)Analytical tables built in DuckDB. Providers (200), beneficiaries (1,255), utilization_summary (199), products_enriched (286), manufacturers (68), asp_trajectories (1,974). Podiatry 60% of claims, office setting 68% of spend, 39 products with anomalous spikes, 105 products lose under flat rate.
Analytical tables built in DuckDB. See commit
e5ec7a2.Closing. All tasks complete.
Tables built:
skin_subs.providers(200 rows) — per-NPI: total paid, unique patients, paid/patient, specialty, stateskin_subs.beneficiaries(1,255 rows) — per-person: total paid, unique providers, service dates, treatment spanskin_subs.utilization_summary(199 rows) — specialty×setting×state aggregationskin_subs.claims_synthetic(4,257 rows) — base claims with product + application linesKey findings:
Scripts:
dev/scripts/generate_skin_sub_claims.py,dev/scripts/build_skin_subs_analytics.pyCommits:
88025d5