Routing Intelligence
Vorian Connect routes inbound lab orders across distributed lab networks — matching each test battery to the right performing instrument using configurable routing policies, specimen and fluid normalization, LOINC fallback, and staged-until-arrival workflows. Every routing decision is audited, and every exception lands in an operator-reviewable queue.
How It Works
When Vorian receives an order message (HL7 ORM^O01), the routing engine inspects the battery code from OBR-4 and resolves the test identity through the source’s governed Test Identities. It then finds the best performing instrument candidate using a multi-tier strategy:
- Exact match: Instruments whose
instrument_capabilitieslist the exact battery code, prioritized by QC status (PASS only), online heartbeat, queue depth, and configured priority. Instruments markedrouting_onlyare excluded from performing selection. - LOINC fallback: If no exact match is found and the battery code is LOINC-like, the engine searches instrument capabilities by LOINC code. This catches instruments that report results under the LOINC code even when the ordering system uses a different local code.
- Staged-until-arrival: When a routing policy with a
staged_until_arrivalrelease policy matches, the order is parked in the routing queue rather than being delivered immediately. It is released automatically when the performing site emits a message for the same specimen, or manually by an operator. - Manual review: Policies can route to a manual-review queue for operator adjudication before delivery.
- Load balanced: When multiple instruments match, the engine distributes work by queue depth and priority.
What’s Included
- Routing policies per source, mapping battery codes to performing destinations with specimen/fluid, priority, and department constraints. Each policy defines a release strategy: immediate delivery, staged-until-arrival, or manual review. Managed through the Sources > Routing Policies tab and the
/api/routing-policiesAPI. - Specimen and fluid normalization using source-scoped
specimen_fluid_mappings. Inbound codes (local, vendor-specific) are translated to canonical specimen and fluid codes before routing policy matching, preventing mismatches from dialect differences. - Test identity resolution for download/order codes. The routing engine resolves the LIS download code to the instrument’s upload code through governed Test Identities before searching instrument capabilities.
- Staged order management in the Routing Queue. Orders held for arrival are visible to operators with specimen ID, battery, routing source, performing source, stage status, and remaining SLA. Operators can release or cancel staged orders with required review reasons.
- Arrival-driven release: When the performing site emits a result or observation message for a staged specimen, the engine matches by specimen ID and performing source, releases the original order message exactly once, and enqueues it for delivery.
- Transit SLA enforcement: Sources carry
transit_sla_minutes. Orders that exceed their SLA are flagged as overdue and surfaced in the Routing Queue for operator attention. - Order routing log with per-decision method (exact match, LOINC fallback, staged arrival, manual review, failed), battery code, selected instrument, and selection reason. Filterable by method and failed-only status. Source-scoped: operators see decisions where the originating or destination source is in their scope.
- Device identities per source for delivery result aliases, robotics/module aliases, and directional source channels (result upload, order download, delivery target, file ingest, query/reply, routing touchpoint). Coverage views flag missing or duplicate aliases.
- Routing-only sources model physical touchpoints (pneumatic tube stations, courier intake) that forward orders but never perform testing. These sources carry routing metadata but are excluded from performing instrument candidate selection.
Where It Fits
Routing Intelligence sits between order intake and delivery. When an HL7 order arrives at the gateway, the routing engine:
- Extracts the battery code and specimen/fluid identifiers from the message.
- Resolves the download code to an instrument code through Test Identities.
- Normalizes specimen and fluid codes to canonical values.
- Checks routing policies for the originating source. If a matching policy exists with a staged or manual-review release strategy, the order is parked in the Routing Queue.
- Otherwise, searches instrument capabilities for an exact battery-code match, falling back to LOINC.
- Logs the routing decision and hands off to the delivery engine.
For distributed lab networks, this means a central receiving lab can intake orders for satellite sites. Orders are routed to the correct facility based on configured policies, held until the specimen arrives, and released automatically when the performing instrument confirms receipt. Unknown or conflicting specimen/fluid codes create reviewable exceptions rather than silently routing to the wrong instrument.
Technical Details (for evaluators)
- Protocol support: HL7 v2.x ORM^O01 order messages. Battery code extraction from OBR-4, specimen/fluid from SPM-4.
- Routing methods: Exact match, LOINC fallback, load balanced, staged-until-arrival, manual review, and failed (with explicit reason).
- Policy constraints: Policies can filter by specimen canonical code, fluid canonical code, priority code, and department code. Multiple policies for the same battery code are resolved by specificity.
- Source metadata: Each source carries
source_role(performing, routing_only, hybrid),site_name,facility_code,routing_release_policy, andtransit_sla_minutes. - Idempotency: Staged orders are deduplicated on specimen, battery, and routing source. The same order arriving twice does not create duplicate stages.
- Source scoping: Routing log and queue views honor assigned source scopes. Operators see decisions where either the originating source or the destination source is in their scope, so failed/unrouted rows remain visible to the right teams.
- Audit trail: Every routing decision is logged with method, battery code, selected instrument, and selection reason. Stage arrival, timeout, release, and cancellation are all audited.
- Fail-safe: Orders with missing battery codes are logged as failed with an explicit reason. No order is silently dropped.