Skip to Content
Integration 5 min read

HL7 v2 or FHIR R4? How to choose for a hospital integration

Most hospitals will use both. The useful question is which standard each partner publishes, and where to translate between them.

Two standards for two jobs

HL7 v2 and FHIR come from the same organisation but were designed in different eras. HL7 v2 sends event messages between systems that already know each other. FHIR describes health data as resources with a web API, so that applications can read and write them.

Neither makes the other obsolete this year. The question for a hospital is practical: which standard does each partner publish, and how do you connect to all of them without building a separate system for each.

How they differ

AspectHL7 v2FHIR R4
Data modelMessages made of segments and fieldsResources such as Patient, Encounter, Observation and Claim
SyntaxDelimited textJSON or XML
Typical transportMLLP over TCP, inside a VPN or TLSHTTPS, with REST or message exchange
PatternEvent driven: something happened, here is the messageResource based, with messaging and documents also available
StrengthMature, widely supported by laboratory, radiology and pharmacy systemsClear resource definitions, profiles and web tooling
Common weaknessLocal variations between systemsProfiles and extensions vary between programmes

What the region uses

The public specifications of regional platforms show that both standards are in use today.

  • NPHIES in Saudi Arabia. Its published implementation guide for financial services uses HL7 FHIR R4.0.1 and exchanges messages over mutually authenticated HTTPS.
  • NABIDH in Dubai. Its published interface documentation describes HL7 v2.5 messages, namely ADT, ORM, ORU, RDE, MDM and VXU, and C-CDA v2.1 documents.
  • Malaffi in Abu Dhabi. Its published onboarding criteria require an HL7-capable EMR that exchanges ADT messages in real time and embeds Malaffi through single sign-on.
  • Claims in the UAE. Abu Dhabi and Dubai exchange claims as structured XML through their own platforms, which are neither HL7 v2 nor FHIR.

A hospital group with sites in more than one of these markets therefore needs more than one standard from day one.

Four cases for choosing between HL7 v2 and FHIR R4: the partner publishes v2, the partner publishes FHIR R4, you have both, or you are unsure.
The partner's published specification decides first. Your own preferences come second.

Designing for both

The pattern that holds up best is to keep one internal model and translate at the edge. The hospital system records events in its own structure. An integration layer maps those events to whatever a given partner publishes, and holds the mapping, the transport, the retries and the logs for that partner.

  • One internal model. Do not let a partner's message format leak into the clinical record. A change at the partner should touch the mapping, not the chart.
  • One mapping per partner. Keep each mapping versioned and tested on its own. HL7 publishes guidance for mapping between v2 and FHIR, and it is a good starting point, not a finished mapping.
  • One place for delivery. Retries, a transaction log, a queue and reconciliation belong in the integration layer, whichever standard is used.
  • One owner per interface. A named person answers when a partner changes a specification.

Questions to ask each partner

  • Which standard and which version do you publish, and where is the current specification?
  • Is there a test environment with synthetic data, and who grants access?
  • Which code sets and identifiers must we send?
  • How are errors returned, and how long do you keep messages?
  • What certificates, network access or agreements are needed before testing?
  • How are changes to your specification announced?

How Ventrecs approaches it

The Ventrecs hospital system produces FHIR R4-shaped resources from a durable outbox for an approved integration service, and payer eligibility connectors can use FHIR R4 or a generic REST interface. HL7 v2 and other transports run in the separate integration layer, Ventrecs Connect, scoped per project.

We treat each partner's published specification as the source of truth. A connection goes live once it has been tested and agreed with you and the partner.

Sources

Frequently asked questions

Is FHIR replacing HL7 v2?

FHIR is growing and several platforms publish it, but HL7 v2 remains widely used in laboratory, radiology, pharmacy and exchange interfaces. Most hospitals use both for years.

Which version of FHIR do regional platforms use?

NPHIES publishes an implementation guide based on FHIR R4.0.1. Check the current guide of each platform, because versions and profiles change.

Can one interface serve several partners?

Rarely. Each partner publishes its own specification, code sets and identifiers, so each needs its own mapping, even if they share a transport.

Where should the translation happen?

In an integration layer between the clinical system and the partner, so that the clinical record stays independent of any one partner's format.

Planning a deployment?

Tell us which partners you need to connect to and which standard each one publishes. We can recommend where to translate and where to exchange natively.

Plan a discovery workshop

More insights