Add-On Management
When a clinician orders additional tests on a previously collected specimen, Vorian Connect detects the Epic add-on order in real time, verifies the specimen is still viable and retrievable, and dispatches a retrieval command to the lab's storage robotics — all without manual lookups or phone calls.
How It Works
- Vorian monitors incoming HL7 traffic for ORM^O01 messages with ORC-1 set to
XO— the Epic standard for add-on orders - When an add-on order is detected, the system extracts the order ID, patient ID, specimen barcode, requested test codes, and ordering provider from the HL7 segments
- Specimen barcode resolution follows a fallback chain: OBR-3 (specimen ID in order), then SPM-2 (specimen ID in specimen segment) — matching Epic's variable placement of barcode data
- Once the barcode is identified, Vorian checks viability by looking up the specimen's storage location and retention expiry — is the specimen still in storage and within its viable window?
- If viable, the lab can dispatch a retrieval command through the dashboard at
/addon, which sends a gRPC command to the robotics adapter with the specimen barcode, storage unit ID, and precise coordinate - The robotics adapter communicates with the physical storage robot, returns an acknowledgment ID, and the retrieval is logged to the audit trail
- Full retrieval history is available by barcode — every add-on order, viability check, and retrieval attempt with timestamps and robot acknowledgment IDs
What's Included
- Epic ORM^O01 detection: Recognizes add-on orders by MSH-9 values (
ORM^O01) and ORC-1 value (XO). Non-Epic LIS systems that use the same HL7 convention are also detected - Order parsing: Extracts order ID, patient ID, specimen barcode, test codes, and ordering provider from ORC, OBR, PID, and SPM segments — handles Epic's variable field placement
- Viability checking: Looks up the specimen in the storage system, checks retention expiry, and reports whether the specimen is viable, expired, or not found in storage
- Dashboard dispatch: The Add-On page at
/addonprovides barcode lookup, viability status, retrieval history, and a one-click retrieval button that sends the command to the robotics adapter - Retrieval audit trail: Every retrieval is logged with barcode, order ID, reason, robot command ID, robot acknowledgment ID, and status — full traceability for compliance
- History by barcode: View all add-on orders and retrieval attempts for any specimen barcode at
/api/addon/history?barcode=...
Where It Fits
Add-on management bridges the LIS and the physical lab. When an Epic order for additional tests arrives, the specimen may have been stored hours or days earlier. Without automation, a lab tech must manually look up the barcode, find the physical specimen, and route it for testing — a process that can take 15–30 minutes per order. Vorian reduces this to a viability check and a single button press.
The feature integrates with the Storage & Retrieval system — viability checks query the same specimen_location table that tracks archival. Retrieval commands go through the same robotics adapter. The add-on workflow is a thin orchestration layer over the storage primitives, designed to match the specific HL7 signaling that Epic uses for add-on orders.
Technical Details (for evaluators)
Add-on detection is implemented as a pure Go function with no external dependencies. The detector validates MSH-9 (message type and trigger event) and ORC-1 (order control) against known Epic conventions. Barcode resolution checks OBR-3 and OBR-31 (component-level specimen ID), then falls back to SPM-2 and SPM-21 — covering Epic's variable field placement across different interface configurations.
Test codes are parsed from OBR-4 repetitions, with deduplication. The ordering provider is resolved from ORC-12 (ordering provider) with fallback to ORC-11 and ORC-21. Missing fields result in empty strings — the system handles partial data gracefully and surfaces what it found to the dashboard for review.
Viability checking uses the storage system's retention calculator. A specimen is viable if its expiry timestamp is unset (unknown retention — treated as viable) or if the current time is before the expiry. The remaining time is reported in days and hours. Expired specimens are clearly flagged and retrieval is blocked to prevent testing on degraded material.