Architect ← Insights

HL7 vs. FHIR: Which Standard to Choose

Evaluating Market Backing and Global Traction

For health system architects and IT leaders, the decision of which standard to prioritize depends heavily on the operational environment, vendor capabilities, and regional regulatory pressures:

  • HL7 v2 and Localized Core Workflows: Inside the hospital firewall, HL7 v2 remains exceptionally reliable, highly efficient, and cost-effective [1]. Ripping out functional, battle-tested MLLP interfaces to enforce native FHIR communication between local clinical systems introduces unnecessary migration risks, massive development costs, and potential latency degradation [1][2].
  • FHIR and Regulatory Mandates: FHIR has massive, legally enforced regulatory backing, specially in the US [4]. In the US, the 21st Century Cures Act and subsequent regulations require certified electronic health records to expose standardized, consumer-facing FHIR APIs [4][5]. This shift is further accelerated by the ONC's HTI-1 (Health Data, Technology, and Interoperability) Final Rule, which establishes aggressive baselines for the transition to USCDI Version 3 (v3) and the FHIR US Core Implementation Guide (IG) Version 6.1.0 by January 1, 2026 [4][5].

Other countries and regions also have regulatory mandates around FHIR, for instance the EU, UK, Australia and Canada.

Still, most hospital departmental systems like LIS, RIS, PACS and pharmacy systems come with HL7 v2.x interfaces out of the box, which are mostly plug-and-play.

The Hybrid Coexistence Architecture

Because legacy standards and modern APIs must coexist for the foreseeable future, clinical architects frequently design bridge solutions to unlock data without rebuilding core transaction engines [1][2]. When mapping HL7 v2 structures to FHIR resources, architects generally employ one of two dominant integration blueprints [2]:

The FHIR Facade Pattern provides a stateless REST API surface directly on top of legacy relational databases, transactional message queues, or proprietary data stores without requiring an underlying data migration [2][5]. When an external client makes a RESTful request, the facade gateway interceptor intercepts the query, dynamically queries the underlying database or wraps local legacy transactions, parses the response, and formats it as a valid FHIR JSON bundle on the fly [2][5]. This design minimizes data redundancy and avoids the high storage costs associated with maintaining duplicate databases [2]. However, it introduces significant computational overhead during runtime schema conversion, meaning complex queries can bottleneck the source system's database [3]. 💡 Though it can be minimized with caching solutions and partial migrations, specially if the source data is static.

A widely adopted blueprint relies on the ETL Pipeline Pattern which adopts a stateful, decoupled posture. Raw HL7 v2 messages are continuously ingested via MLLP into an integration engine (such as Mirth Connect or Rhapsody) which serves as the pipeline's parser and router [1][2]. The engine transforms the messages using standardized rules to populate native FHIR resource bundles [2]. These bundles are then pushed to a dedicated FHIR database or PaaS server (such as HAPI FHIR, AWS HealthLake, or Azure Health Data Services) [2][5]. While this pattern increases infrastructure footprint and introduces data duplication, it completely isolates operational clinical engines from external query workloads, assuring high availability and rapid query responses [1]. To streamline this translation, architects rely on the official HL7 Version 2 to FHIR Implementation Guide, which provides the normative ConceptMaps to translate legacy segments (e.g., mapping PID to Patient, OBX to Observation, and IN1 to Coverage) [2].

Architectural Alignment at a Glance

Architectural Layer Primary Tool Technical Purpose
External Exchange Layer HL7 FHIR REST APIs Compliance with regulatory APIs, consumer app integrations, and third-party ecosystem data transport [4][5].
Semantic Terminology Gateway SMART on FHIR & Terminology Servers Standardizing local custom code mappings to global standards like LOINC, SNOMED CT, and RxNorm [5].
Internal Core Interoperability HL7 v2 & Integration Engines Real-time, push-based transactional workflows within hospital systems (e.g., ADT, laboratory orders, and billing) [1][4].
Data Transformation Engine ConceptMap Translators (v2-to-FHIR) Using standardized schemas to map legacy segments (e.g., PID to Patient, OBX to Observation, IN1 to Coverage) [2].

Empirical Performance Realities: Bulk Data Access at Scale

For systems architects designing analytical data warehouses or clinical decision support platforms, the computational performance of bulk data extraction is a critical consideration [3]. A landmark peer-reviewed study published by Jones et al. in the Journal of the American Medical Informatics Association (JAMIA), titled "Real World Performance of the 21st Century Cures Act Population-Level Application Programming Interface", evaluated the performance of SMART/HL7 Bulk FHIR exports across five distinct clinical sites using certified EHR systems and custom solutions [3].

The study revealed a vital architectural insight: a custom SQL-based FHIR API facade implemented over a relational database fed by legacy HL7 v2 messages massively outperformed the native FHIR export engines of certified commercial EHR vendors [3]. The custom database facade generated over 141 million resources at a throughput of approximately 12,000 resources per minute, while the certified commercial EHR systems achieved between 1,555 and 8,000 resources per minute [3]. This performance gap occurs because native commercial EHR systems frequently use highly normalized, proprietary database models designed for real-time transactional care, not analytical extraction [3]. Transforming and serializing this data on the fly introduces heavy CPU throttling to protect primary clinical operations [3]. This empirical evidence proves that for high-volume analytical pipelines, a stateful, read-optimized database replica populated via an HL7 v2-to-FHIR ETL pipeline yields dramatically superior computational scalability than relying on native transactional EHR exports [3].

The Governance Mandate for Health System Leaders

For clinical architects and enterprise leaders, the core governance challenge is to balance regulatory compliance with system stability and performance [5]. When designing a modern healthcare data strategy, architects should adhere to the following principles:

  • Maintain HL7 v2 inside the Core: Retain existing, high-throughput v2 MLLP interfaces for internal, event-driven workflows where they are highly performant and stable [1][4].
  • Deploy FHIR at the Edge: Expose FHIR APIs as a secure, managed gateway layer for third-party developer integration, patient-facing apps, and compliance queries [5].
  • Standardize Vocabulary Early: Ensure that legacy custom Z-segments are systematically mapped to global terminology baselines like LOINC, SNOMED CT, and RxNorm to avoid schema fragmentation and claim rejections [5].

Where CaboLabs Fits

Designing a hybrid HL7 v2 / FHIR architecture is straightforward on a whiteboard but operationally complex in production: integration engines need to be configured and maintained, ConceptMap translations must be validated against real clinical data, FHIR servers need to be sized and secured, and the entire pipeline must survive version upgrades on both ends. CaboLabs has hands-on experience implementing exactly these architectures — from configuring MLLP-to-FHIR transformation pipelines in engines like Mirth Connect, to deploying and operating FHIR servers, to designing FHIR Facade layers over legacy relational databases.

For organizations that need more than a FHIR exchange layer, our platform Atomik provides an openEHR-native clinical data repository that sits beneath the FHIR interface — giving architects a vendor-neutral, semantically rich persistence layer that is optimized for clinical queries and longitudinal data, not just transactional throughput.

If your team is evaluating integration patterns, planning a FHIR rollout, or trying to meet a regulatory deadline without destabilizing your core clinical systems, reach out at cabolabs.com — we'll help you pick the right architecture and build it right.

Do you have any questions?

Let us know how we can help you.

Company CaboLabs Health Informatics
Address Juan Paullier 995, Montevideo, Uruguay
Phone +598 99 043 145