P31: OPPS Module — outpatient payment system parity with PFS
Add outpatient prospective payment system (OPPS) as a peer module to PFS. Module skeleton with config and table schemas, APC weight file ingestion, payment calculator, skin substitute payment history, express functions with pipe module, and CLI/API routes.
Closeout
All 6 issues closed. OPPS module (src/opps/) follows the same skinny-package pattern as PFS: init.py, config section in stack.toml, and Pydantic table schemas for APC weight data. APC weight file ingestion handles both annual and quarterly CMS updates with proper effective-date tracking. Payment calculator computes APC-based reimbursement amounts. Skin substitute payment history tracks the transition from APC-based to flat-rate payment — central to the P29 skin substitutes analysis. Narwhals express functions and pipe module wired with full schema validation (189 total pipeline steps across all modules). CLI and API routes added for running OPPS pipelines programmatically.
Issues resolved
- #263 — Module skeleton: init, config, table schemas
- #264 — APC weight file ingestion (annual + quarterly updates)
- #265 — Payment calculator: APC-based reimbursement
- #266 — Skin substitute payment history: APC to flat rate transition
- #267 — Express functions + pipe module
- #268 — CLI + API routes
Residual
None. OPPS data feeds directly into the P29 skin substitutes analysis.