Skip to main content
Version: 3.0

Score Hierarchy

Complete mapping from internal validation scores to user-facing canonical rate scores, including the provider/code-type hierarchy used by BRIT accuracy.

The implementation lives in accuracy_macros.sql. BRIT accuracy first routes each ROID to a scoring path, then each non-NULL rate column receives an integer score plus an optional decimal tiebreaker.

Scoring Route

RouteConditionAccuracy tableNotes
Drugsis_drug_code = truetmp_int_accuracy_brit_drugsDrug scoring wins routing even when the provider type is also PG, DME, or Urgent Care.
Labsis_lab_code = true and is_drug_code = falsetmp_int_accuracy_brit_labsUses lab-specific Medicare percentage windows and network consistency.
Physician Groupprovider_type = 'Physician Group', non-drug, non-labtmp_int_accuracy_brit_physician_groupsUses PG-specific bounds and consistency checks.
DMEprovider_type = 'DME', non-drug, non-labtmp_int_accuracy_brit_dmeUses DME-specific bounds and consistency checks.
Urgent Careprovider_type = 'Urgent Care', non-drug, non-labtmp_int_accuracy_brit_urgent_careUses UC-specific bounds and consistency checks.
Medical catch-allNon-drug, non-lab, and not PG/DME/UCtmp_int_accuracy_brit_medicalCovers hospitals, ASCs, imaging, and other medical provider types.

Score Mapping

Internal ScoreLabelCanonical Score (1–5)MeaningDecimal Component
8Provision-reported5Provision base rate; highest-priority medical IP sourcenone
7.xHighest confidence5Counterparty validated, or top provider-type consistency tierrate / 1e8 for validated medical rates; otherwise none
6.xStrong in-bounds4Raw/posted source in bounds, or second provider-type consistency tierCDF value where enabled
5.xBenchmark window3Transform/source falls in the preferred Medicare-relative windowCDF value where enabled
4.xIn bounds2Within provider/code outlier bounds, no stronger signalCDF value where enabled
3.xImputation benchmark3Non-posted imputation in a benchmark-backed tierCDF value
2.xImputation in bounds2Non-posted imputation within boundsCDF value
1.xOutlier1Outside all acceptable boundsCDF value
0No rate0NULL / no rate available

Hierarchy by Provider Type

Medical Catch-All

Applies to non-drug, non-lab rows whose provider type is not Physician Group, DME, or Urgent Care.

ScoreHierarchy condition
8Provision-reported msdrg_base_rate_mult_cms_weight is non-NULL.
7.xPayer and hospital sources agree within ±5%, both sides are non-outliers, and inpatient rates also pass the stricter Medicare multiple check.
6.xRaw or posted source is not an outlier. Anesthesia conversion-factor columns receive 6.999 when in bounds.
5.xHospital-MRF gross charge with MRF percent-of-charge is in the preferred bound, or the source is within the benchmark window: 0.95–10× Medicare.
4.xRate is within medical outlier bounds but has no stronger validation signal.
3.xNon-posted imputation is benchmark-backed.
2.xNon-posted imputation is in bounds but not benchmark-backed.
1.x / 0Non-NULL outlier / NULL.

Drugs

Applies to all is_drug_code = true rows.

ScoreHierarchy condition
7Payer and hospital sources agree within ±5%, and the rate is 1.2–4× ASP/Medicare.
6Raw or transformed rate is inside the preferred ASP window: 1.25–3.5×.
5Raw or transformed rate is inside the broader ASP window: 0.9–4×.
4Other in-bounds drug source. Payer drug bounds allow 0.8–10×; hospital drug bounds allow 0.8–4×.
2Non-posted drug imputation is in bounds.
1 / 0Non-NULL outlier / NULL.

Drug CDF is always 0, so drug scores are effectively integer tiers.

Labs

Applies to is_lab_code = true and is_drug_code = false.

ScoreHierarchy condition
7Provider-network rates are consistent, and the rate is 0.4–1.3× Medicare.
6Provider-network rates are consistent, and the rate is 0.3–3× Medicare.
5Rate is 0.4–1.3× Medicare without the consistency flag.
4.xRate is within lab outlier bounds: 0.2–4.5× Medicare.
1 / 0Non-NULL outlier / NULL.

Physician Group

Applies to provider_type = 'Physician Group' for non-drug, non-lab rows.

ScoreHierarchy condition
7Counterparty validation passes, or provider-network rates are consistent and the rate is 0.9–3.5× Medicare.
6Provider-network rates are consistent, and the rate is 0.5–5.5× Medicare.
5Rate is 0.9–3.5× Medicare without the consistency flag.
4.xRate is within PG outlier bounds.
1 / 0Non-NULL outlier / NULL.

Anesthesia codes use a PG-specific outlier check: at least 1.0× the anesthesia Medicare rate and no more than $200.

DME

Applies to provider_type = 'DME' for non-drug, non-lab rows.

ScoreHierarchy condition
7Provider-network rates are consistent, and the rate is 0.9–3.5× Medicare.
6Provider-network rates are consistent, and the rate is 0.5–5.5× Medicare.
5Rate is 0.9–3.5× Medicare without the consistency flag.
4.xRate is within DME outlier bounds: 0.5–5.5× Medicare.
1 / 0Non-NULL outlier / NULL.

Urgent Care

Applies to provider_type = 'Urgent Care' for non-drug, non-lab rows.

ScoreHierarchy condition
7Counterparty validation passes, or provider-network rates are consistent and the rate is 0.9–3.5× Medicare.
6Provider-network rates are consistent, and the rate is 0.5–5.5× Medicare.
5Rate is 0.9–3.5× Medicare without the consistency flag.
4.xRate is within Urgent Care outlier bounds.
1 / 0Non-NULL outlier / NULL.

Urgent Care anesthesia codes use the same anesthesia-specific outlier check as Physician Group: at least 1.0× the anesthesia Medicare rate and no more than $200.

Provider-network consistency

Labs, Physician Group, DME, and Urgent Care compute has_consistent_pct_of_medicare_rate at the provider-network level. The flag is true when there are at least 30 long-rate observations and the 95th-to-5th percentile spread of rate / medicare_rate is less than 0.25.

The decimal tiebreaker is everything

Among 100 payer rates that all score 6.x, the one with the highest CDF (most common rate value) wins. Among validated medical rates (7.x), the one with the highest dollar amount wins. This ensures deterministic selection without arbitrary ordering.