Feature ID: CL-29-EN-65Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Parent: CL-29 Discharge & Aftercare Planning β CL-29-discharge-aftercare-planning-INTEGRATION.md
Status: π Specification
Spec Reference: CL-29-EN-65-hedis-fuh-fum-tracking.md
Last Updated: 2026-03-03
Overview
Extendscl_aftercare_plans with 6 HEDIS FUH/FUM boolean flag columns. Exposes a cl_hedis_fuh_fum_summary view consumed by CL-15 (Quality Measures Dashboard) and CL-35 (Population Health) for measure performance reporting and care gap calculation. Flag-setting logic runs application-side at discharge save and follow-up contact save. No new cross-core dependencies beyond what CL-29 already uses; PM encounter type accessed via @/platform/scheduling and @/platform/types.
Quick Reference
- Data contract:
cl_hedis_fuh_fum_summaryview β aggregates FUH/FUM numerator/denominator counts byorganization_idandmeasurement_year - Flag tables:
cl_aftercare_plans(6 new boolean columns; inherit existing RLS) - Consumers: CL-15 (rates/export UI), CL-35 (care gap input)
- Producers: Application-level hooks on
cl_aftercare_planssave andcl_follow_up_contactssave - Permission gates:
cl.hedis-tracking.view,cl.hedis-tracking.export
Data Contract: cl_hedis_fuh_fum_summary View
security_invoker = true β RLS on cl_aftercare_plans applies to the callerβs identity. Consumers must pass a valid authenticated session; hooks must include organization_id filter.
Columns:
| Column | Type | Description |
|---|---|---|
organization_id | UUID | Tenant identifier |
measurement_year | TIMESTAMPTZ | Truncated to year (Jan 1 of measurement year) |
fuh_denominator | BIGINT | Count of qualifying inpatient discharge events (FUH index events) |
fuh_7day_numerator | BIGINT | Count with qualifying follow-up within 7 days (different date from discharge) |
fuh_30day_numerator | BIGINT | Count with qualifying follow-up within 30 days |
fum_denominator | BIGINT | Count of qualifying ED visit events (FUM index events) |
fum_7day_numerator | BIGINT | Count with qualifying follow-up within 7 days (same date allowed) |
fum_30day_numerator | BIGINT | Count with qualifying follow-up within 30 days |
Integration: CL-15 (Quality Measures Dashboard)
- Pattern: Intra-core query via Supabase client hook
- Consumer hook:
useHedisFuhFumSummary(organizationId, measurementYear)β queriescl_hedis_fuh_fum_summaryview - Permission gate:
cl.hedis-tracking.view(rates panel),cl.hedis-tracking.export(export) - UI: Rates panel in CL-15 with measurement year selector; FUH 7-day/30-day rate and FUM 7-day/30-day rate displayed as percentages; CSV export
- Status: π Planned
Integration: CL-35 (Population Health β Care Gap)
- Pattern: Intra-core query via Supabase client hook
- Consumer hook:
useHedisCareGaps(organizationId, measurementYear)β queriescl_hedis_fuh_fum_summaryview; identifies patients with open denominator events (numerator not yet met) - Permission gate:
cl.hedis-tracking.view - Status: π Planned
Integration: PM Encounters
- Pattern: Platform Integration Layer β
@/platform/scheduling(useEncounterContext) and@/platform/types(EncounterContext) - Data accessed:
encounter_type(FUH proxy:residential_daily; FUM proxy:crisisβ see spec for full mapping),principal_diagnosis_code,visit_date - No direct cross-core import: All PM encounter data accessed via platform types
- Status: π Planned
Integration: PF-70 (Medical Terminology)
- Pattern: Direct PF query (intra-platform)
- Query:
SELECT code FROM pf_icd10_codes WHERE metadata_tags @> '["hedis_fuh_qualifying"]'; similarly forhedis_fum_qualifying - Usage: Denominator flag logic evaluates principal diagnosis against PF-70 code lists at discharge/encounter save time
- No hardcoded code lists β always query PF-70 at runtime
- Status: π Planned
- Pre-Phase 1 verification: The metadata tags
hedis_fuh_qualifyingandhedis_fum_qualifyingare not currently seeded in PF-70 (no existing spec or seed/migration contains them). Pre-Phase 1 checklist item: Seed PF-70 with NCQA MY 2025 ICD-10-CM lists taggedhedis_fuh_qualifyingandhedis_fum_qualifyingvia a migration or seed file before denominator logic that queriespf_icd10_codes WHERE metadata_tags @> '["hedis_fuh_qualifying"]'or@> '["hedis_fum_qualifying"]'is released. See spec Pre-Phase 1 checklist.
Flag-Setting Logic (Application Layer)
Denominator evaluation (called atcl_aftercare_plans save):
cl_follow_up_contacts save):
Security Notes
- All new columns on
cl_aftercare_plansinherit existing RLS β no new policies needed - View uses
security_invoker = trueβ callerβs RLS applies - 42 CFR Part 2: If the HEDIS export exposes SUD diagnosis-based flags to payers/AHCCCS, a patient authorization or QSOA is required before the export endpoint is enabled. Gate this in the export permission check.
References
- Spec
- Parent CL-29 Integration
- CROSS_CORE_INTEGRATIONS.md
- REGULATORY_COMPLIANCE_TRACKER.md β NCQA HEDIS FUH/FUM entry