Trace Inspector
The Trace Inspector is Vorian Connect's primary interface for understanding analyzer traffic. It provides field-by-field HL7 v2.x annotation with required-field validation, PHI-safe AI-assisted analysis, vendor Z-segment detection, and end-to-end message trace visualization — so interface engineers can debug, validate, and document every message that passes through the platform.
How It Works
- Every HL7 message flowing through the gateway is available in the inspector's message list, filterable by status — auto_verified, flagged, rejected, or pending
- Clicking a message opens the detail view with the raw HL7 message displayed alongside a parsed, annotated view — every segment and field is labeled with its HL7 standard name and definition
- Required fields (MSH-9 Message Type, PID-5 Patient Name, OBR-4 Universal Service ID, etc.) are validated against the HL7 v2.x standard — empty required fields produce error annotations
- Field-level validators check timestamp format (TS), OBX value types, result status codes, OBX-11 observation coding systems, and HL7 version numbers — warnings and errors are surfaced per field
- PHI fields (MRN, patient name, DOB, address, phone, SSN, next-of-kin, guarantor, insured) are automatically scrubbed before any AI analysis or display to non-admin users
- Vendor Z-segments (e.g., ZQC, ZPI, ZIN) are automatically detected and classified by purpose — QC/calibration data, extended demographics, insurance, or reagent/lot tracking
- When Azure OpenAI is configured, the scrubber sends a PHI-free version to the AI for analysis — returning a natural-language summary, key findings, Z-segment descriptions, and cross-message issue detection
- The message trace view shows the complete pipeline journey: ingestion → buffer → forward → parse → pre-analytical → auto-verify → reflex/repeat → delivery — each stage with success, warning, or failed status
What's Included
- Message list with status filtering: Browse all messages by auto_verified, flagged, rejected, or pending status with sending application, message type, and timestamp columns
- Split-view detail: Raw HL7 message on the left, parsed and annotated view on the right — every segment (MSH, PID, OBR, OBX, NTE, PV1, ORC, SPM) and field is labeled with its standard definition
- Diff view: Compare raw vs. scrubbed message side-by-side to verify PHI removal before AI analysis
- LOINC extraction: Observation identifiers are matched against LOINC codes with display names and units surfaced in the parsed view
- Required-field validation: 7 critical HL7 segments are checked — missing required fields produce error annotations with human-readable messages
- Field-level validators: Timestamp format (MSH-7, OBX-14, OBR-7/8), HL7 version (MSH-12, supports 2.1–2.8), OBX value types (19 standard types), OBX-11 result status (10 valid codes), and coding system presence checks
- Vendor Z-segment classification: Auto-detects and describes ZQC, ZPI, ZIN, ZDS segments, with content-based inference for unrecognized Z-segment types
- AI-assisted analysis: Azure OpenAI integration provides natural-language message summaries, key findings, Z-segment descriptions, and cross-message issue detection — all PHI-scrubbed before transmission
- Reprocessing history: View the complete reprocessing history for a message — each job shows the rule set version, timestamp, and result — with one-click reprocess from the current rules
- End-to-end message trace: Visual pipeline diagram showing 8 stages (ingestion, buffer, forward, parse, pre-analytical, auto-verify, reflex/repeat, delivery) with success/warning/failed status per stage
- Admin-only raw view: Admin users can toggle raw (unscrubbed) message display — non-admin users always see scrubbed output
- Message resend: Re-queue a message for delivery from the trace view with confirmation of queued count
Where It Fits
The Trace Inspector sits at the center of the Vorian Connect interface engineering workflow. After the edge agent captures analyzer traffic and the gateway parses it, the inspector is where interface engineers spend most of their time — validating that messages are well-formed, understanding vendor-specific Z-segments, reviewing AI-suggested findings, and tracing each message through the full pipeline. It's the primary debugging and validation surface for lab interface work, and it feeds directly into the rules engine (for creating auto-verification conditions based on observed field patterns) and the validation module (for generating cutover evidence). The inspector reads from the same PostgreSQL message store as the rest of the platform, with tenant-scoped RLS ensuring each lab sees only its own traffic.
Technical Details (for evaluators)
| Capability | Detail |
|---|---|
| HL7 segments annotated | MSH, PID, OBR, OBX, NTE, PV1, ORC, SPM — plus all vendor Z-segments |
| HL7 versions | 2.1 through 2.8 (version validation on MSH-12) |
| PHI fields scrubbed | PID-3/4/5/6/7/11/13/14/19/20, NK1-2/4/5, GT1-3/5/6, IN1-16/19 — scrubbed before AI or non-admin display |
| Z-segment classification | Pattern-based: ZQC (QC/calibration), ZPI (demographics), ZIN (insurance), ZDS (documents) — with content inference fallback |
| AI integration | Azure OpenAI only — PHI-scrubbed payload, api-key auth, stub client when not configured |
| Message trace stages | Ingestion, Buffer, Forward, Parse, Pre-analytical, Auto-verify, Reflex/Repeat, Delivery |
| Reprocessing | Per-message reprocessing against current rule sets with full version history |
| Access control | Admin: raw HL7 + AI analysis. Non-admin: scrubbed view only. Role-checked at component level. |
| Storage | PostgreSQL with tenant-scoped RLS — no cross-tenant message visibility |
The Trace Inspector is a read-oriented diagnostic tool. It does not modify messages — reprocessing creates new evaluation records referencing the original message. All AI analysis runs through Azure OpenAI (Founders Hub credits) with PHI scrubbed before transmission. When Azure OpenAI is not configured, the inspector falls back to a stub client and still provides full field annotation and validation.