Parse, query, and transform healthcare data with comprehensive HL7v2 support. From ADT to ORU messages, handle all healthcare interchange formats with SQL.
Complete support for all major HL7v2 versions
HL7 2.1
Legacy Support
HL7 2.2
Extended ADT
HL7 2.3
Widely Used
HL7 2.3.1
US Standard
HL7 2.4
Enhanced
HL7 2.5
Current Standard
HL7 2.5.1
Meaningful Use
HL7 2.6+
Latest Versions
Support for all standard HL7v2 message categories
Admit, discharge, and transfer events for patient tracking.
Laboratory, radiology, and other clinical results.
Order entry and management for clinical workflows.
Appointment and resource scheduling messages.
Clinical document notifications and content.
Billing and financial information exchange.
Complete parsing for all HL7v2 segment types
Powerful querying capabilities for healthcare data
hl7_parse()
Parse raw HL7 message into structured format
hl7_segment()
Extract specific segment by name
hl7_field()
Access field by segment and position
hl7_component()
Extract component from composite field
hl7_repeat()
Handle repeating fields and segments
hl7_terser()
XPath-like terser notation queries
hl7_validate()
Validate message against HL7 schema
hl7_encode()
Encode structured data back to HL7
Full support for complex HL7v2 data types
Track a patient's complete journey across ADT, ORM, and ORU messages
A single patient encounter generates dozens of HL7 messages: an ADT admit, lab orders via ORM, results via ORU, and eventually an ADT discharge. Delta Forge lets you correlate these messages in SQL, joining across message types by patient ID to reconstruct the full clinical workflow.
-- Correlate admits, orders, and results
-- for a single patient encounter
SELECT
adt.patient_id,
hl7_field(adt.msg, 'PV1-44') AS admit_time,
hl7_field(orm.msg, 'OBR-4') AS order_name,
hl7_field(oru.msg, 'OBX-5') AS result_value,
hl7_field(oru.msg, 'OBX-8') AS abnormal_flag
FROM hl7_messages adt
JOIN hl7_messages orm
ON adt.patient_id = orm.patient_id
JOIN hl7_messages oru
ON orm.placer_order_id = oru.placer_order_id
WHERE adt.msg_type = 'ADT^A01'
AND orm.msg_type = 'ORM^O01'
AND oru.msg_type = 'ORU^R01';
Production-ready healthcare data integration
Start processing HL7 messages with enterprise-grade reliability.