HL7 Analyzer
Paste any raw HL7 v2.x message into Vorian Connect and get instant field-by-field annotation — with automatic PHI scrubbing, vendor Z-segment detection, and standards compliance validation. The analyzer auto-detects non-standard field separators and validates every field position against the HL7 v2 standard so interface engineers can troubleshoot messages before they reach production.
How It Works
- Paste a raw HL7 v2.x message into the analyzer text area — or click "Load sample" for a pre-built Beckman Coulter ORU message
- The analyzer automatically scrubs over 30 PHI-sensitive fields before any inspection begins: patient names, MRNs, dates of birth, SSNs, phone numbers, addresses, provider names, specimen IDs, and account numbers are all replaced with bracketed placeholders like
[MRN]and[PATIENT_NAME] - Non-standard field separators are auto-detected from the MSH segment — the analyzer handles vendor-specific encoding characters that differ from the standard
|^~\& - Every segment is decomposed into its numbered fields with the HL7 standard field name and position — MSH, PID, OBR, OBX, NTE, PV1, ORC, and SPM segments all carry full field definitions
- Each field is validated against HL7 standards: required fields that are empty trigger errors, unrecognised HL7 versions generate warnings, and non-standard value types or result status codes are flagged
- Vendor Z-segments (ZQC, ZPI, ZIN, ZDS, and others) are detected and automatically classified — the analyzer infers their purpose from segment naming conventions and field content
- A summary bar shows the HL7 version, message type, total segment count, and Z-segment inventory at a glance
- The annotated segment tree is expandable — click any segment to reveal every field with its value, standard definition, and any issues flagged, colour-coded by severity (error, warning, info)
What It Validates
- HL7 version — warns if the version string is not a recognised v2.x release (2.1 through 2.8)
- Message type format — flags message types that omit the required
^separator between type and event (e.g.ORU^R01) - Date/time fields — validates MSH-7, OBR-7, OBR-8, and OBX-14 against the HL7 TS format (
YYYYMMDD[HHMM[SS]][±ZZZZ]) - OBX value types — checks OBX-2 against the 19 valid HL7 v2 data types (
NM,ST,CWE,SN, etc.) - Observation identifiers — warns when OBX-3 is missing a coding system in component 3 (e.g.
LNfor LOINC,Lfor local) - Result status codes — flags OBX-11 values outside the valid set (
F=Final,P=Preliminary,C=Corrected, etc.) - Date of birth — warns when PID-7 is shorter than 8 digits
- Administrative sex — flags PID-8 values outside the standard HL7 codes (
F,M,O,U) - Required fields — empty or missing required fields (MSH-2, MSH-7, MSH-9, MSH-10, MSH-12, PID-3, PID-5, OBR-4, OBR-25, OBX-2, OBX-3, OBX-11, PV1-2, ORC-1, SPM-4) generate errors
Where It Fits
The HL7 Analyzer lives in the Investigation section of the dashboard alongside the Trace Inspector. It's a complementary tool: the Trace Inspector shows messages captured from live analyzer traffic, while the HL7 Analyzer lets you paste any message — production, test, or vendor sample — for offline analysis. Both tools require inspector:view permission.
Use the Analyzer during interface validation to prove that every field the vendor sends matches the HL7 standard before go-live. The PHI-safe scrubbing means you can share annotated output with vendors or consultants without exposing patient data.
Supported Segment Types
- MSH — Message Header (19 fields: encoding characters, sending/receiving app, date/time, message type, version, etc.)
- PID — Patient Identification (19 fields: patient ID, name, DOB, sex, address, phone, SSN, account, etc.)
- OBR — Observation Request (25 fields: placer/filler order numbers, universal service ID, date/time, ordering provider, result status, etc.)
- OBX — Observation Result (17 fields: value type, observation identifier, value, units, reference range, abnormal flags, result status, etc.)
- NTE — Notes and Comments (4 fields: source, comment text, comment type)
- PV1 — Patient Visit (10 fields: patient class, location, admission type, attending/referring/consulting doctors)
- ORC — Common Order (12 fields: order control, placer/filler order, order status, entered/verified by, ordering provider)
- SPM — Specimen (8 fields: specimen ID, parent IDs, type, additives, collection method, source site)