Delivery Routing
The Delivery Routing operator defines how HL7 messages from each instrument are mapped to delivery destinations. Configure sender-field matching, device aliases, and target roles — then watch live routing decisions and recent events as messages flow through the system.
How It Works
Every connected instrument sends HL7 messages that arrive at the edge agent. Vorian needs to know which destination should receive results from each instrument. Delivery Routing solves this by examining a specific HL7 sender field in each message, matching it against a configured device alias, and forwarding to the correct delivery target.
Each route binds three things together:
- A source instrument — the analyzer or analyzer manager sending the message
- A device alias — the identifier the LIS expects to see in the HL7 sender field
- A delivery target — the webhook, MLLP endpoint, or FHIR R4 destination that receives results
When a message arrives, the edge agent extracts the configured HL7 field, matches it against the active route's device alias, and delivers to the target with the highest-priority role. If the primary target is unreachable, backup and pool targets are tried in weighted order.
Route Configuration
Each delivery route is configured with four required fields:
- Source instrument — the instrument whose messages this route handles. Only active, non-decommissioned sources are available.
- HL7 sender field — which field in the HL7 message carries the device identifier. Options are
MSH.3(Sending Application),OBR.24(Diagnostic Service), andOBX.18(Equipment ID). - Device alias — the exact identifier the LIS or interface engine expects. Letters, numbers, and underscores only, up to 120 characters. Preserve leading zeros and case exactly as the LIS configuration expects.
- Delivery destination — the target that receives results when the device alias matches. Must be an enabled destination configured in Delivery Destinations.
Optional fields provide fine-grained routing control:
- Target role —
primaryfor direct delivery,backupfor failover, orpoolfor weighted load distribution across multiple targets. - Target weight — integer weight for pool members. Higher weights receive proportionally more traffic.
- Target group — a label grouping related targets (e.g., "production-lis", "uat-mllp"). Useful for organizing multi-target routing policies.
- Enabled — toggle individual routes on or off without deleting them.
Operator View
The Delivery Routing Operator page shows three panels that give interface engineers real-time visibility into routing behavior:
- Configured routes — the full list of source-to-target mappings with device alias, HL7 field, target role, and last delivery status. Each route shows whether its last delivery succeeded, the ACK code received (
AAfor accepted), and the timestamp. - Recent events — a chronological feed of routing events: route created, route enabled/disabled, test delivery initiated, priority signal changes. Each event shows the timestamp, event type, and optional reason or priority signal.
- Recent decisions — which route was selected for each recent message and why. Shows the HL7 field value that was matched, the decision outcome, the priority signal and rank, and whether the route was primary, backup, or pool.
Route Testing
Before putting a route into production, interface engineers can test it with a recent verified message from the source instrument. The test confirms that:
- The HL7 field contains a value that matches the device alias
- The delivery destination is reachable and accepts the message
- The destination returns the expected ACK code
Test deliveries use real messages from the source but are flagged as test events in the routing decision log. They do not count as production deliveries.
Where It Fits
Delivery Routing sits between instrument connectivity and outbound delivery. The edge agent captures messages from instruments and forwards them to the cloud gateway. The gateway evaluates active delivery routes to decide which destination receives each message. The deliverer worker then sends the message via the configured transport (webhook, HL7 MLLP, or FHIR R4).
This is distinct from Routing Intelligence, which handles order routing across distributed lab networks — specimen staging, transit SLA tracking, and inter-site specimen movement. Delivery Routing handles the simpler, higher-volume case: "this instrument's results always go to this LIS."
Source Scoping and Permissions
Delivery Routing respects the same source-scope rules as other delivery configuration. Users with config:delivery permission can create and manage routes only for instruments within their assigned source scope. Team administrators control which instruments each user can configure through source-scope assignments in Team settings.
Decommissioned sources are excluded from route creation and active routing. Historical routing decisions for retired instruments remain visible through audit, trace, and validation evidence surfaces.