Auto-Verification Engine
Vorian Connect automatically verifies clinical results as they arrive from analyzers. A five-stage pipeline — emergency brake, analyzer-flag gate, physiological ranges, delta checking, and configurable rules — assigns a verification status to every message without manual review. Labs define their own verification logic through a visual rules editor on the dashboard.
How It Works
- Stage 1 — Emergency brake: Before any rule evaluation, the engine checks the per-tenant
braketable. If the brake is active, every incoming message is flagged for manual review regardless of its values - Stage 2 — Analyzer-flag gate: Each result's abnormal flags (OBX-8) are checked against reviewed dispositions. Critical/panic flags (
HH,LL,AA) hold the result for manual review by default — except retraction messages (OBX-11W/D), which release immediately so a correction is not held behind a critical flag; other known interpretive flags (e.g.,N,H,L,A) release automatically, while an unknown or unreviewed vendor flag holds the result for review. The gate ships in dry-run mode by default, recording what would have been held without changing release until the lab enables enforcement. - Stage 3 — Physiological range validation: Each OBX result is checked against 34 absolute physiological limits (e.g., glucose outside 0–2000 mg/dL, potassium outside 1.0–10.0 mmol/L). Results that fall outside these boundaries are rejected immediately
- Stage 4 — Delta checking: The current result is compared against the most recent prior result for the same patient and analyte. A configurable percentage change threshold flags results that deviate significantly from the patient's baseline
- Stage 5 — Rule evaluation: Configurable boolean expression trees evaluate field values across the entire message. Rules can reference any OBX result value or flag, plus the MSH sending application, using operators like
=,!=,<,>,between, andin - Rules are evaluated in priority order — higher-priority rules take precedence. A message that matches a rule with
auto_verifyaction passes; arejectorflagaction sends it for manual review - The final verification status and notes are written to
message_logs.verification_statusandverify_notes— visible in the Inspector and available for downstream delivery decisions
What's Included
- Boolean expression tree evaluator: Nested
and,or,notlogic with comparison operators (=,!=,>,>=,<,<=,between,in) and HL7 field path references - 34 absolute physiological limits: Hard boundaries for common chemistry and hematology analytes — results outside these ranges are automatically rejected regardless of rule configuration
- Delta checking: Percentage change comparison against the patient's last recorded result for the same analyte, queried from the
analyte_resultstable via JSONB array expansion - Emergency brake: Per-tenant kill switch that flags all incoming messages for manual review — activated via SQL or dashboard, with full audit trail of when and why it was engaged
- Analyzer-flag gate: Per-tenant or per-source gate that inspects OBX-8 abnormal flags. Critical/panic flags (
HH,LL,AA) hold the result for manual review by default, with a durable note naming the critical flag — except retraction messages (OBX-11W/D), which release instead of being held; other known interpretive flags (N,H,L,A) release automatically. Reviewed dispositions for vendor flags cansuppress(hold auto-verification) ordeliver_with_flag(continue while preserving the flag). Ships in dry-run mode, recording would-hold observations without changing release until the lab enables enforcement. - Rules Playground: Dashboard UI with three tabs — list active rules with enable/disable toggles, create new rules in a Monaco JSON editor, and test rules against sample HL7 messages with instant match/no-match feedback
- Priority-ordered evaluation: Higher-priority rules are evaluated first. First matching rule determines the outcome — later rules are skipped
Where It Fits
The auto-verification engine runs in the cloud gateway, processing messages after they arrive from the edge agent and are persisted to PostgreSQL. It is not on the critical path for instrument ACKs — the instrument receives its ACK from the edge agent immediately, before the message reaches the gateway. This means auto-verification performance (range queries, delta lookups, rule evaluation) never impacts instrument throughput.
Verified and flagged messages both proceed to the delivery subsystem. Downstream destinations (LIS, EHR, webhook) can filter by verification status — for example, routing only auto_verified results to the EHR while holding flagged results for manual review.
Technical Details (for evaluators)
Rule conditions use a JSON DSL with field paths that reference HL7 segment data. A typical rule to auto-verify a normal glucose result might look like:
- Field path:
OBX.GLU.value— references the OBX-5 value for the segment with test code "GLU" - Operator:
between— checks if the value falls within a two-element array - Value:
[60, 500]— the acceptable range in mg/dL
Rules can combine multiple conditions with and/or operators, nest arbitrarily deep, and reference the sending application name via MSH.sending_app. The AI Rule Generator (separate feature) can produce these rule definitions from natural language descriptions.
Delta checking queries prior results from the analyte_results table using the patient's pseudonymised token (not raw MRN). The query uses jsonb_array_elements on the parsed payload — delta checks may need a dedicated results table at high volume (above ~10,000 messages/day).