Adding Providers
Clear Rates draws providers from tq_production.spines.* tables. If a provider isn't in Spines, the Spines team must add it first.
Decision Tree
tq_production.spines.*, contact the Spines team to create a new spine table before proceeding.Why Most Providers Require No Action
Provider spines are rebuilt from scratch each Clear Rates run by reading from tq_production.spines.* tables. Once a provider is in Spines and their provider type is already enrolled in Clear Rates, they appear automatically in the next run — no manual Clear Rates change required.
provider_types Parameter
The sub-DAG accepts a provider_types parameter that controls which provider types are included in a given run. The default list includes 8 types:
| Provider Type | Source Spine Table | Special Handling | Plausibility Required? |
|---|---|---|---|
| Hospital | tq_production.spines.hospital_spines | Lookback runs include Hospital only | No |
| ASC | tq_production.spines.asc_spines | Excluded when lookback_run=True | Yes (AmSurg + service flags) |
| Physician Group | tq_production.spines.physician_group_spines | Excluded when lookback_run=True; EIN/NPI evidence required | Yes (core_rates evidence) |
| Laboratory | tq_production.spines.lab_spines | Excluded when lookback_run=True | No |
| Imaging | tq_production.spines.imaging_spines | Excluded when lookback_run=True | No |
| Dialysis | tq_production.spines.dialysis_spines | Excluded when lookback_run=True | No |
| DME | tq_production.spines.dme_spines | Excluded when lookback_run=True | Yes (DME plausibility filter) |
| Urgent Care | tq_production.spines.urgent_care_spines | Excluded when lookback_run=True | No |
When lookback_run=True, only Hospital is included. This is used for historical backfill runs where non-hospital coverage is not needed.
Manual PG Additions
Physician Group providers may need to be added manually in some cases:
- Provider is missing from Spines (recently formed group, pending Spines team addition)
- DPR+ missing providers that have known TIN/NPI data
- Synthetic PGs constructed for specific contracting relationships
Manual additions are appended in the provider_manual_additions task after the main provider spine is built. Each row must include all required provider spine columns, including a valid provider_type and at least one NPI in the provider_npi_array.
The /add-provider-type skill walks through all required changes when adding a brand-new provider type that has never existed in Clear Rates before — including code.sql, rate_object_space.sql, plausibility tables, and accuracy scoring rules.