Files
cyclone/config/payers.yaml
T
Tyler c62826daea feat(sp9): multi-payer, multi-NPI, SFTP stub for dzinesco/TOC
- providers table seeded with 3 NPIs (Montrose, Delta, Salida)
- payers + payer_configs (per-tx config) join table
- clearhouse singleton (dzinesco identity, SFTP block, filename block)
- config/payers.yaml loader with Pydantic schema validation
- cyclone/edi/filenames.py: HCPF X12 File Naming Standards helpers
- cyclone/clearhouse/sftp.py: stub that copies to ./var/sftp/staging/...
- cyclone/secrets.py: macOS Keychain wrapper via keyring
- 11 new validation rules R200-R210 (CO MAP + HCPF naming)
- 6 new API endpoints (/api/clearhouse/*, /api/config/*, /api/admin/reload-config)
- migration 0007
- 72 new tests (646 total passing, was 574)

See spec: docs/superpowers/specs/2026-06-20-cyclone-multi-payer-npi-sftp-design.md
2026-06-20 23:07:31 -06:00

45 lines
1.6 KiB
YAML

# Cyclone payer configuration
# SP9 — loaded at boot by cyclone.payers.load_payer_configs()
# Schema-validated against Pydantic models in cyclone.providers
# See spec: docs/superpowers/specs/2026-06-20-cyclone-multi-payer-npi-sftp-design.md
payers:
# Colorado Medical Assistance Program (FFS) — the user's primary payer
- payer_id: CO_TXIX
name: "Colorado Medical Assistance Program"
receiver_name: "COLORADO MEDICAL ASSISTANCE PROGRAM"
receiver_id: "COMEDASSISTPROG"
configs:
"837P":
submitter_name: "Dzinesco"
submitter_contact_name: "Tyler Martinez"
submitter_contact_email: "tyler@dzinesco.com"
receiver_name: "COLORADO MEDICAL ASSISTANCE PROGRAM"
receiver_id_qualifier: "46"
receiver_id: "COMEDASSISTPROG"
bht06_allowed: ["CH", "RP"]
bht06_default: "CH"
sbr09_default: "MC"
sbr09_allowed: ["MC", "16", "MA", "MB", "ZZ"]
payer_id_qualifier: "PI"
# Per spec: NM1*PR NM109 = "CO_TXIX".
# Production reality (June 2026): SKCO0 is still being sent in
# the prod 837P files. SP9 emits CO_TXIX per the CO MAP companion
# guide. If Gainwell rejects CO_TXIX, set this to "SKCO0".
payer_id: "CO_TXIX"
pwk_supported: false
cas_2320_group_allowed: false
claim_type_codes:
"11": "Office"
"12": "Home"
"99": "Other"
"835":
expected_payer_tax_ids:
- "81-1725341"
- "811725341"
- "84-0644739"
- "840644739"
- "1811725341"
expected_payer_health_plan_id: "7912900843"
payer_name_pattern: "^CO_(TXIX|BHA)$"