Skip to main content

HL7 v2 to FHIR R4 Mapper

Map HL7 v2 messages to FHIR R4 resources with field-level provenance

Mapping playground for debugging and learning — not a validated production conversion.

Input

Paste ER7 (pipe-encoded) text. It is parsed with the HL7 v2 Parser engine and stays in this tab.

Options

Bundle type

Transaction adds request entries for testing; it is not server-ready.

Advanced
References

Output

Paste an HL7 v2 message
Or load an example. The FHIR Bundle, mapping report and warnings appear here.

What the mapper does

HL7 v2 to FHIR R4 Mapper turns ADT, ORU, ORM, SIU and VXU messages into FHIR R4 resources (Patient, Encounter, Observation, DiagnosticReport, ServiceRequest, Practitioner, Organization, Appointment and Immunization) and a Bundle, and shows exactly where every value came from. It reuses the HL7 v2 Parser engine, so delimiters come from MSH-1 and MSH-2 and the message is never split by guesswork. It is a mapping playground for debugging, learning and prototyping interfaces, not a validated production conversion.

Reading the mapping report

Each mapped field shows its HL7 path (OBX(2)-5 is field 5 of the second OBX), the raw value, the FHIR resource and element, the transform and a confidence: Direct (copied as written), Derived (converted by a fixed rule such as a table or date format) or Heuristic (a playground default you should review). The Unmapped tab lists every other non-empty field with a reason, so nothing is dropped silently. Events differ: A03 finishes the encounter, A04 marks an arrival and A08 implies no status.

Codes and limits

Codes are copied as written and never translated: a system URI is added only for known systems such as LN (LOINC), SCT (SNOMED CT), CVX, UCUM and HL7 tables, and unknown or local systems raise a warning. Timestamps keep their precision; a time without a UTC offset keeps only the date. The tool does not validate resources, check profiles such as US Core, call terminology servers or send anything to a FHIR server. Inputs up to 5 MB are accepted; inputs over 200 KB are mapped in a background worker, and messages with more than 5,000 segments are not mapped.

Privacy

HL7 messages usually contain protected health information. Parsing and mapping run entirely in your browser: messages and FHIR output are not uploaded, stored, logged, added to the URL or sent to analytics. Use synthetic data such as the TEST^PATIENT examples in shared screenshots.

Frequently asked questions
Is my HL7 message uploaded or stored?
No. Parsing and mapping run entirely in your browser. Messages and FHIR output are not uploaded, stored, logged, added to the URL or sent to analytics, and the hand-off from the HL7 v2 Parser stays in memory. Use synthetic data in shared screenshots.
Can I send the generated Bundle to a production FHIR server?
Not as is. The tool is a mapping playground for debugging and learning. The transaction option adds request entries for testing only, without conditional matching or profiles, and nothing is validated against FHIR or US Core. Review and adapt the output in your own interface engine first.
Why are some fields listed as unmapped?
Every non-empty field is either mapped or listed with a reason: custom Z segment, target resource not implemented, ambiguous mapping, profile-specific field, empty or null value, or message structure such as set IDs. This makes gaps visible instead of dropping data silently.

CodingTool is officially live on