Reference
HL7 v2 segments, fields, data types, tables and message structures, together with the HL7 Version 2 to FHIR R4 maps that connect them. Each HL7 v2 element links to where it lands in FHIR, and each FHIR element links back to its HL7 v2 source.
HL7 v2 specification
Eleven versions, 2.1 to 2.8. Open a version and browse by segment, data type, code table or message structure.
- Segments181
- Data types83
- Tables545
- Message structures362
HL7 v2 to FHIR R4 maps
The maps of the HL7 Version 2 to FHIR guide, organized by message, segment, data type and code table, plus the FHIR R4 elements they write.
How the two sides connect
A message map says which segments become which resources. A segment map says where each field goes. A data type map splits a composite value into FHIR elements. A code map translates the codes of an HL7 table into FHIR codes. The examples below follow one value from HL7 v2 into FHIR.
| HL7 v2 | FHIR R4 | Map |
|---|---|---|
| PID-5 XPN | Patient.name HumanName | |
| PID-8 0001 | Patient.gender administrative-gender | |
| OBX ORU_R01 | Observation Bundle |
