HL7 v2.x to FHIR: Bridging Clinical Data for Interoperability

Executive Summary: HL7 v2.x messages such as ADT and ORU still drive admissions, lab results, and clinical events across hospital and laboratory systems. FHIR R4 is becoming the interface layer for modern APIs. Redix bridges HL7 v2.x into FHIR R4 so organizations can modernize at the edge without replacing the clinical message infrastructure underneath. ADT and ORU passed Redix’s internal Tier-1 checks on reference samples; FHIR validator acceptance has not yet been run. ORM, MDM, SIU and VXU have demo samples with audits pending, and other message types can be mapped as a project.

HL7 v2.x Is Not Going Away

For all the momentum behind FHIR, the day-to-day clinical world still runs on HL7 v2.x. Admissions, discharges, transfers, lab orders, and lab results move between EHRs, LIS, RIS, and ancillary systems as pipe-delimited HL7 v2 messages. These interfaces are deeply embedded, heavily tested, and expensive to rip out.

So the realistic question for most organizations is not "HL7 v2 or FHIR?" It is: how do we expose FHIR R4 at the interface layer while the systems that generate HL7 v2.x keep running unchanged?

Why FHIR, and Why a Bridge

FHIR R4 is the format external partners, patient apps, and API gateways increasingly expect. Regulatory and interoperability pressure (including the CMS interoperability program) keeps pushing FHIR toward the front door.

But "adopt FHIR" does not have to mean "replace HL7 v2." A bridge converts HL7 v2.x messages into FHIR R4 resources at the boundary. Internal clinical systems continue to speak HL7 v2; the outside world gets FHIR. A bridge can reduce replacement work because it leaves the existing message infrastructure in place.

The Real Mapping Challenge

HL7 v2.x and FHIR are not the same kind of standard, and that mismatch is where naive conversions fail.

  • HL7 v2 is positional and segment-based. Data lives in ordered segments and fields (MSH, PID, PV1, OBR, OBX, and so on), separated by delimiters. Meaning depends on position.
  • FHIR is resource-based and profiled. Data lives in structured resources (Patient, Encounter, Observation, DiagnosticReport) that must satisfy a schema and, often, an implementation guide profile.

The translation is rarely one-to-one. A single HL7 v2 message can fan out into several linked FHIR resources, and FHIR enforces rules that HL7 v2 does not. FHIR R4 has required fields: for example, Encounter.class is a required element. If a source message lacks the data a required field expects, a careless converter will emit FHIR that looks plausible but fails validation. Getting these edge cases right - required cardinality, code systems, resource references, and timing semantics - is the difference between "FHIR-shaped JSON" and FHIR that actually validates.

Why Clean HL7 Parsing Matters

Naive HL7-to-FHIR conversion can produce technically shaped JSON that still fails real-world use: composite HL7 fields may be copied forward as raw strings instead of being parsed into the right FHIR elements. Provider identifiers, assigning authorities, phone numbers, coded observations, and facility identifiers often need field-level cleanup before they become usable FHIR resources. For ADT and ORU, Redix runs an internal automated audit on reference sample messages that checks selected required fields and scans for placeholder values; field-level parsing still needs review against your own interface samples.

What Redix Converts Today

Redix runs a native C conversion engine for HL7 v2.x to FHIR R4. We publish the testing status of each message type rather than a single coverage claim:

HL7 v2.x Message Clinical Purpose FHIR R4 Output Status
ADT Admit, discharge, transfer, patient demographics Patient, Encounter Tier-1 checks passed on reference samples; validator acceptance pending
ORU Observation and lab results DiagnosticReport, Observation Tier-1 checks passed on reference samples; validator acceptance pending
ORM Orders ServiceRequest Demo sample available; audit pending
MDM Clinical documents DocumentReference Demo sample available; audit pending
SIU Scheduling Appointment Demo sample available; audit pending
RDE Pharmacy and medication orders MedicationRequest Can be mapped as a project
VXU Immunization Immunization Demo sample available; audit pending

We are deliberate about these words. “Tier-1 checks passed” means the message type passed Redix’s internal automated audit on our reference sample messages. FHIR validator (Tier-2) testing has not yet been run for any message type, and neither result is a third-party certification. Exact message-version, trigger-event and profile coverage is confirmed on your representative interface samples.

Validation Is the Hard Part: Our Automated FHIR Audit

Producing FHIR JSON is easy. Producing FHIR that holds up under validation, on real messages, is the hard part.

Redix runs an internal automated audit on a reference test set for each audited message type. It is a selected set of checks, not a complete FHIR validator:

  • Engine result and JSON validity - the conversion completes and produces well-formed JSON.
  • Selected required fields per resource type - for example, Encounter.class, which FHIR R4 requires; this check also caught an older DSTU2/STU3 element form that had to be corrected to R4.
  • Placeholder scan - a regression scan for selected telltale dummy values (example.org hosts, localhost, specific hard-coded sample dates). A pattern scan cannot prove that no placeholder remains.
  • Timestamp comparisons - selected timestamps, such as meta.lastUpdated and DiagnosticReport.issued, are checked against the Bundle timestamp.

This is a useful way to think about two layers of FHIR quality assurance. Our internal audit is the factory QA line: it catches selected defects early. A reference validator is the next layer: it checks output against the FHIR specification and the profiles, terminology and configuration it is given, so its results depend on those inputs. Neither proves clinical fidelity or acceptance by your trading partners, and reference-validator testing of Redix HL7 output is still pending.

Data Fidelity: Non-Invasive by Default

By default, the engine runs in a non-invasive mode: it converts what the message contains rather than cleaning it up, so messy input can produce FHIR output that a validator would flag. There are documented exceptions and limits. Some structural problems are rejected; for example, a repeated PID segment in an ADT message stops the conversion. Where FHIR R4 requires an element the message does not supply, the mapping can apply a documented default; for example, ORU output sets Encounter.class to AMB when PV1-2 is missing. Pass-through output is not automatically clinically reliable or profile-valid. For organizations that want stricter behavior, a validation layer can be added with rules you define.

How It Fits the Rest of the Stack

HL7 v2.x to FHIR is part of a broader conversion engine, not a one-off script:

  • It runs on the Redix native C engine for HL7 v2.x to FHIR conversion, so it is fast and deployable on-premises.
  • It is reachable through the Redix REST API for application integration.
  • It is exposed as a tool through the Redix MCP Server for AI-agent workflows.
  • It shares the rules-driven mapping approach of the AnyToAny conversion engine, so the same discipline applies across formats.
  • It deploys on-premises, keeping protected health information under your control.

Key Takeaways

  • HL7 v2.x still powers core clinical messaging; FHIR R4 is becoming the interface layer.
  • A bridge lets you expose FHIR without replacing HL7 v2.x systems.
  • HL7 v2 (positional) and FHIR (resource-based, profiled) are not a one-to-one mapping; required fields and code systems are where conversions break.
  • Redix converts ADT to Patient/Encounter and ORU to DiagnosticReport/Observation; both passed internal Tier-1 checks on reference samples, with FHIR validator acceptance pending. ORM, MDM, SIU and VXU have demo samples with audits pending.
  • The internal audit (selected required fields, placeholder scan, timestamp checks) catches defects early; it is not a full FHIR or profile validator.
  • Runs on a native C engine, on-premises, with PHI under your control; non-invasive by default, with documented defaults and limits.

Frequently Asked Questions

Which HL7 v2.x message types does Redix convert to FHIR?

ADT (admit, discharge, transfer) maps to FHIR Patient and Encounter, and ORU (observation results) maps to DiagnosticReport and Observation. Both passed Redix’s internal Tier-1 checks on reference samples; FHIR validator acceptance has not yet been run. ORM, MDM, SIU and VXU have demo samples with audits pending, and other message types, such as RDE, can be mapped as a project. Exact version, trigger-event and profile coverage is confirmed on your representative samples.

Do I have to replace my HL7 v2.x interfaces to adopt FHIR?

No. The bridge approach keeps your existing HL7 v2.x message infrastructure in place and converts messages to FHIR R4 at the interface layer, so you can expose FHIR APIs without rebuilding the clinical systems that produce HL7 v2.x.

How does Redix make sure the FHIR output is valid?

For ADT and ORU, Redix runs an internal automated audit on reference sample messages. It checks the engine result and JSON validity, selected required fields per resource type, selected placeholder patterns, and selected timestamp consistency. It is not a complete FHIR R4 or profile validator, FHIR validator testing is still pending, and this is not a certification claim.

What FHIR version and profiles does the output target?

Output targets FHIR R4. Conformance to US Core or other profiles is not claimed here; it has to be demonstrated separately, against a named profile version, on your samples.

Can HL7 v2.x to FHIR conversion run on-premises with PHI staying in our environment?

Yes. The engine deploys on-premises so protected health information stays under your control. By default it runs in a non-invasive mode that converts what the message contains, with documented exceptions and defaults (for example, some structural errors are rejected); an optional validation layer is available if you want stricter handling.

References

Next Steps

Modernizing to FHIR without ripping out your HL7 v2.x interfaces? Bridge them at the edge and test the output on your own samples before it ships.