Delta Checks

Vorian Connect runs delta checks on every numeric result before release. It compares the current value against the patient's most recent previous result for the same analyte and flags any change that exceeds the configured absolute or percentage threshold. STAT orders automatically override delta flags to prevent clinically necessary results from being held.

How It Works

What's Included

Where It Fits

Delta checks run inside the auto-verification pipeline on the gateway after parsing, range validation, and before delivery. They are part of the four-stage verification sequence: emergency brake → range validation → delta checking → boolean rules. A result that passes delta checks proceeds to configurable boolean rules; a result that fails is flagged for manual review on the dashboard.

Delta checks are tenant-scoped. Each lab configures its own analyte thresholds and time windows. Default configurations for sodium, potassium, creatinine, hemoglobin, TSH, and WBC are seeded with clinically reasonable values, but labs can override any parameter. New analytes can be added at any time through the dashboard without restarting the gateway.

Technical Details (for evaluators)

Delta checks execute inside the message writer transaction on the gateway — the current result, previous lookup, delta calculation, and log insert all happen atomically. If the database query for the previous result fails, the entire message write rolls back. Configurations are loaded from delta_check_config with per-tenant filtering via RLS-enforced PostgreSQL queries.

The previous result lookup uses an indexed query on analyte_results(tenant_id, patient_id, upper(analyte_code), received_at) with a time-window filter. The query excludes the current message ID (message_id <> $4) to prevent self-comparison. If no previous result exists within the time window, the delta check is skipped and the result proceeds — first-time results for a patient are never blocked.

Default configurations are embedded in the gateway binary and applied when no tenant-specific configuration exists. Labs can view and override defaults through the dashboard API at /api/delta-check-config. Pending flagged results are polled every 30 seconds by the dashboard at /api/delta-check-log?status=pending.

Last updated: May 17, 2026