Risk Adjustment Data Marts

Note that Zus Risk Adjustment features are currently in public preview and are subject to change.

Risk adjustment analytics are exposed via flattened, query-friendly tables derived from the underlying FHIR MeasureReport resources.

Risk Gap Views

risk_gap

A denormalized view of one row per risk gap (MeasureReport).

Common fieldNotes
idRisk gap identifier.
patient_id, upidPatient identifiers.
code_hcc, hcc_versionHCC code and model version.
gap_typeRecapture, suspect, or net-new.
gap_statusCurrent/latest status.
confidence_level1–5 (5 = highest confidence).
period_startStart date for the calendar-year period.
created_at, last_updated_atCreation and last update timestamps.
Typical use caseDescription
Population listingList all current-year gaps for a population.
SegmentationSegment by gap type/status.
TrendsTrend monitoring by period.

risk_gap_status_update

One row per status update event per risk gap (full history).

Common fieldNotes
risk_gap_idLink to risk_gap.id.
created_at, created_byWhen and by whom the status was created.
statusStatus code for this update.
note (optional)Free-text note.
substatus_one, substatus_two, substatus_three (optional)Additional categorization fields.
Typical use caseDescription
Audit trailAudit trail of review workflows.
Operational metricsMeasuring time-to-close or time-to-review.
Status evolutionUnderstanding how gaps evolve (e.g., open → expected-to-close → closed).

risk_gap_hierarchy

Represents superseding relationships between gaps based on HCC hierarchy.

Common fieldNotes
risk_gap_idThe superseded gap.
superseded_by_risk_gap_idThe superseding gap.
Typical use caseDescription
Top-level filteringFilter to top-level gaps only.
Accurate countsAvoid double-counting related HCCs in reporting.

risk_gap_source

Identifies which upstream sources contributed to each risk gap.

Common fieldNotes
risk_gap_idLink to risk_gap.id.
sourceContributing source (e.g., rules-based, AI, payer, user).
last_updatedWhen the risk gap was last updated.
Typical use caseDescription
Attribution"Which systems are producing gaps?"
QAQA and monitoring by source.

risk_gap_diagnosis_code

Normalized mapping of ICD-10 codes to risk gaps (one row per ICD-10 per gap).

Common fieldNotes
risk_gap_idLink to risk_gap.id.
code_icd_10ICD-10 diagnosis code.
Typical use caseDescription
DrilldownDrilldown from HCC gap → supporting ICD-10s.
ComparisonsCompare coding patterns across providers.

risk_gap_evidence

Normalized mapping from risk gaps to evidence resources.

Common fieldNotes
risk_gap_idLink to risk_gap.id.
resource_type, resource_idThe referenced FHIR resource.
typeevaluated or related.
last_updatedWhen the risk gap was last updated.
last_encounter_diagnosis_recorded_date (when applicable)Most recent encounter diagnosis timestamp for the evaluated resource.
Typical use caseDescription
Reviewer experiencesBuild reviewer experiences (evidence panels).
AnalyticsAnalytics on evidence completeness/recency.

Linking back to FHIR

You can often construct a direct FHIR reference using:

.../fhir/{resource_type}/{resource_id}

(Your exact base URL will depend on your deployment/environment.)


RAF Score Views

raf_score

One row per patient, builder, and calendar year with aggregated RAF metrics.

Common fieldNotes
upidUniversal patient identifier.
patient_idPatient identifier.
period_startStart date for the calendar-year period.
potential_rafRAF score if all non-dismissed gaps were paid.
potential_hcc_countCount of HCCs contributing to potential score.
expected_rafRAF score for expected-to-close and closed gaps.
expected_hcc_countCount of HCCs contributing to expected score.
actual_rafRAF score for closed gaps only.
actual_hcc_countCount of HCCs contributing to actual score.
raf_gapDifference: potential_raf − actual_raf.
hcc_gapDifference: potential_hcc_count − actual_hcc_count.
Typical use caseDescription
Population overviewAggregate RAF opportunity across a patient panel.
Gap prioritizationIdentify patients with largest raf_gap.
Trend trackingMonitor score changes over time.