Health Systems
For labs that operate across multiple sites, Vorian Connect groups tenants into health systems and runs system-wide drift detection. When two or more sites using the same reagent lot show a coordinated QC shift, Vorian flags a system-wide alert — identifying lot-level problems before individual instruments fail and before patient results are affected.
How It Works
- A health system is a logical grouping of tenant sites. Each site runs its own Vorian tenant with independent instruments, QC programs, and operator teams
- Reagent lot tracking across sites identifies when the same lot number is in use at multiple locations. Lot changes are detected automatically from HL7 messages and reagent lot tracking tables
- The system-wide drift evaluator runs periodically, querying all sites in a health system that share a reagent lot and analyte. It compares each site's latest precision statistics — mean and standard deviation — against the lot-wide baseline
- If at least two sites using the same lot show a standard deviation shift exceeding the configured threshold (default 1.5 SD), the system generates a drift alert with the affected site count, mean shift magnitude, and per-site details
- Alerts are stored with full site-level attribution: which sites drifted, by how much, and whether they were using the same reagent lot. This data is available for CAP/CLIA inspection binders
What's Included
- Health system grouping: Tenants are linked into health systems through the
health_system_membershiptable. Each member tenant has a site name and is associated with a parent health system ID - System-wide drift detection: The drift evaluator queries rolling precision statistics across all member sites for a given lot/analyte combination. Sites without the same reagent lot are excluded from the comparison to avoid false positives from lot-to-lot variation
- Configurable threshold: The default SD shift threshold is 1.5, but health systems can configure a custom threshold per analyte. Shifts below the threshold are tracked but do not generate alerts
- Multi-site requirement: Drift alerts require at least two affected sites — a single-site shift is a local QC issue, not a system-wide problem. This prevents noise from isolated instrument calibration events
- Alert persistence: Every drift alert is stored with an ID, health system ID, reagent lot, analyte code, affected site count, mean shift magnitude, and detection timestamp. Per-site details including tenant ID, site name, shift magnitude, and last observed value are stored in a linked table
- Dashboard visibility: The
/health-systemspage displays drift alerts with site-level detail, accessible to platform administrators with cross-tenant visibility
Where It Fits
Health systems monitoring is a platform-level feature — it requires cross-tenant visibility that ordinary tenant users do not have. The dashboard page is gated to vorian_admin and super_admin roles. System-wide drift alerts complement the per-tenant QC Command Center: individual sites use Westgard rules and Levey-Jennings charts for local QC monitoring, while the health system view correlates shifts across sites to identify lot-level or supply-chain problems that individual operators would not see in isolation.
The drift detection system integrates with the SSE real-time event hub. When a system-wide drift alert is generated, it is broadcast to the health system's SSE channel, allowing connected dashboards to display the alert immediately without polling.
Technical Details (for evaluators)
System-wide drift evaluation is implemented in Go with a single SQL query that joins health_system_membership, reagent_lot_tracking, and rolling_stats to compute per-site shift magnitudes. The evaluation runs atomically: drift detection, alert generation, and alert persistence happen in a single database transaction. Alerts are saved to system_drift_alert with per-site details in system_drift_alert_site. The SSE hub supports health-system-scoped broadcasting via BroadcastToHealthSystem, using Redis PubSub channels keyed by health system ID for multi-replica fan-out.