Delivery Destinations
Vorian Connect routes verified results to downstream systems — LIS, EHR, data warehouses, and custom endpoints — using three transport protocols. Destinations are configured per tenant with independent enable/disable toggles, retry policies, delivery logs, and live test buttons.
How It Works
- After a message passes through auto-verification, the delivery worker picks it up and routes it to every enabled destination for that tenant
- Each delivery attempt is logged to
delivery_logwith status, timestamp, response code, and error details — visible in the Destinations dashboard page with expandable history - Failed deliveries retry with exponential backoff: immediate retry, then 30 seconds, 5 minutes, 30 minutes, and 2 hours. After
retry_maxattempts (configurable per destination), the message is marked as permanently failed - Destinations can be toggled on and off from the dashboard — no configuration changes, no restarts, no downtime
- A live test button on each destination card sends a real delivery attempt so teams can verify connectivity before go-live
What's Included
- Webhook delivery: HTTP POST with a JSON event envelope containing the parsed message, verification status, and metadata. Requests are signed with HMAC-SHA256 in the
X-NextGen-Signatureheader for recipient-side verification - HL7 MLLP forwarding: The original raw HL7 payload is forwarded over TCP MLLP to a configured
host:port. The delivery worker reads the ACK from the downstream system. GDPR-erased messages are automatically skipped - FHIR R4 delivery: HL7 ORU^R01 messages are mapped to a FHIR R4
DiagnosticReportresource using the contained-resource pattern — onePatientplus oneObservationper OBX result. Result codes, units, and abnormal flags are preserved exactly as the instrument sent them — Vorian does not infer LOINC codes or units from local result codes.Observation.statusreflects the HL7 result status (OBX-11), so preliminary, final, and corrected results are labeled correctly rather than defaulting to final. The resource is POSTed to the configured FHIR server endpoint with optional Bearer token authentication - Cloud and on-premises delivery modes: Cloud-mode destinations target internet-accessible endpoints (webhook, cloud FHIR server). Agent-mode destinations target LAN-only systems (on-prem LIS, EHR) through the edge agent's outbound tunnel — no inbound ports needed on the destination
- Retry and dead-letter handling: Exponential backoff from 30 seconds to 2 hours. Configurable
retry_maxper destination. Stuck deliveries (statusdeliveringfor too long) are detected and re-queued automatically - Delivery worker polling: Uses
FOR UPDATE SKIP LOCKEDfor concurrent-safe job claiming — multiple worker instances can run without double-delivery
Where It Fits
Delivery is the final stage in the Vorian Connect pipeline: instrument → edge agent → gateway → auto-verification → delivery. The delivery worker (cmd/deliverer) runs as a separate process alongside the gateway, decoupled from the message ingestion path. This means delivery failures never block new message processing.
The Destinations dashboard page is admin-only. It shows all configured destinations with status badges, enable/disable toggles, live test buttons, and an expandable delivery log showing the last 50 attempts per destination. Destination secrets and tokens are stripped from all API responses — they never leave the database.
Technical Details (for evaluators)
Webhook deliveries use a 15-second timeout and HMAC-SHA256 request signing. HL7 MLLP deliveries use standard MLLP framing (0x0B header, 0x1C 0x0D trailer) on the configured TCP socket. The delivery worker reads and validates the ACK from the downstream MLLP receiver before marking the delivery as successful.
FHIR R4 delivery enforces HTTPS — http:// base URLs are rejected before any network contact is made. The delivery transport blocks private IP ranges (RFC 1918 and 169.254.0.0/16) at the dial layer to prevent SSRF attacks. Patient birthDate is formatted as YYYY-MM-DD per the FHIR date primitive specification.
FHIR status follows the HL7 result status (OBX-11): preliminary (P, R, S) → preliminary, final (F) → final, corrected (C) → corrected, retracted (W, D) → entered-in-error, and cancelled (X) → cancelled. Unknown or absent statuses are emitted as unknown rather than guessed as final. DiagnosticReport.status matches the contained observations when they agree and is unknown when statuses are mixed. DiagnosticReport.effectiveDateTime is taken from the message timestamp (MSH-7) and omitted when absent. Each FHIR destination requires a configured patient_id_system (the identifier system applied to the patient MRN) — there is no fallback namespace.
Delivery can run in two modes: DELIVERY_MODE=cloud (default) processes internet-accessible targets for all tenants, while DELIVERY_MODE=agent with a specific TENANT_ID processes on-premises targets through the edge agent tunnel — allowing labs to route results to a LAN-only LIS without exposing it to the internet.