Nirmitee.io

Healthcare Interoperability Standards Explained: FHIR, HL7, X12, and DICOM for Developers and Architects

March 17, 202618 min readUpdated Sep 12, 2026
Written by
Yogesh Daga
Yogesh Daga

Founder & CEO

15+ years building healthcare technology. Led 100+ EHR integrations, FHIR implementations, and clinical AI deployments.

Healthcare Interoperability Standards Explained: FHIR, HL7, X12, and DICOM for Developers and Architects

If you're building healthcare software, you'll encounter at least four interoperability standards — FHIR, HL7 v2, X12, and DICOM — and each one exists because it solves a different problem. This guide explains what each standard does, when to use which, how they interact, and what a developer actually needs to implement each one. This is a technical guide for developers and architects, not a regulatory compliance guide.

This guide provides a comprehensive reference to every major healthcare interoperability standard. For each standard, we cover what it does, when to use it, a sample message, and which systems rely on it.

HL7 Version 2 (HL7v2): The Workhorse

HL7v2 is the most widely deployed healthcare messaging standard in the world. First released in 1987, it is used by 95%+ of U.S. hospitals for real-time clinical data exchange. Despite being replaced by FHIR for new applications, HL7v2 will run in production for decades to come.

What It Does

HL7v2 handles event-driven messaging between clinical systems. When a patient is admitted, a lab result is finalized, or a medication is ordered, an HL7v2 message is generated and sent to downstream systems. In FHIR, the lab results carried by ORU messages arrive as Observation resources; see our FHIR Observation resource guide for vitals, labs and LOINC coding.

Key Message Types

Message TypeTriggerContentCommon Use
ADT (Admit/Discharge/Transfer)A01, A02, A03, A04, A08Patient demographics, visit info, bed assignmentPatient registration, census management
ORM (Order Message)O01Lab/radiology orders, order detailsOrder entry to ancillary systems
ORU (Observation Result)R01Lab results, vital signs, pathology reportsResult delivery to EHR
RDE (Pharmacy Order)O11Medication orders, dosage, routeE-prescribing within hospital
MDM (Document Management)T02Clinical document notificationsTranscription, document routing
SIU (Scheduling)S12, S14, S15Appointment creation/modificationScheduling system integration

Sample HL7v2 ADT Message

MSH|^~\&|ADT|HOSPITAL|INTEGRATION|ENGINE|20260317103000||ADT^A01|MSG00001|P|2.5.1
EVN|A01|20260317103000
PID|1||MRN12345^^^HOSPITAL^MR||DOE^JOHN^A||19800315|M|||123 MAIN ST^^ANYTOWN^CA^90210||555-555-1234
PV1|1|I|ICU^101^A|E|||1234^SMITH^JANE^M^MD|||MED||||1|||1234^SMITH^JANE^M^MD|IP||||||||||||||||||HOSPITAL|||20260317103000
NK1|1|DOE^MARY|SPOUSE|555-555-5678
IN1|1|1|BCBS123|BLUE CROSS|PO BOX 1234^^CHICAGO^IL^60601||555-555-9999|GROUP001

FHIR R4 and R5: The Modern Standard

FHIR (Fast Healthcare Interoperability Resources) is the modern standard for healthcare data exchange. FHIR R4 achieved normative status in 2019, and FHIR R4 is now mandated by ONC for certified health IT in the U.S.

What It Does

FHIR provides a RESTful API framework for accessing and exchanging healthcare data. Unlike HL7v2's message-based approach, FHIR treats clinical data as resources that can be created, read, updated, and searched through standard HTTP methods. Search results come back wrapped in a searchset Bundle, and multi-resource writes use transaction or batch Bundles, all covered in our FHIR Bundle resource guide.

Key FHIR Resources

ResourceDescriptionHL7v2 EquivalentCommon Operations
PatientDemographics, identifiers, contactsPID segmentGET, POST, PUT, SEARCH
EncounterVisit/admission detailsPV1 segmentGET, SEARCH, _include
ObservationLab results, vital signs, assessmentsOBX segmentGET, SEARCH by category/code
ConditionDiagnoses, problem listDG1 segmentGET, POST, SEARCH
MedicationRequestPrescriptions, medication ordersRXE segmentGET, POST, SEARCH
DiagnosticReportLab/radiology report packagesORC/OBR segmentsGET, SEARCH, _include Observation
DocumentReferenceClinical documents (CDA, PDF)MDM messagesGET, POST, SEARCH
AllergyIntolerancePatient allergiesAL1 segmentGET, POST, SEARCH

Sample FHIR Patient Resource

{
  "resourceType": "Patient",
  "id": "patient-john-doe",
  "identifier": [{
    "system": "http://hospital.example.org/mrn",
    "value": "MRN12345"
  }],
  "name": [{
    "family": "Doe",
    "given": ["John", "A"]
  }],
  "gender": "male",
  "birthDate": "1980-03-15",
  "address": [{
    "line": ["123 Main St"],
    "city": "Anytown",
    "state": "CA",
    "postalCode": "90210"
  }],
  "telecom": [{
    "system": "phone",
    "value": "555-555-1234",
    "use": "home"
  }]
}

FHIR R4 vs R5

FeatureFHIR R4FHIR R5
StatusNormative (production)Standard for Trial Use
Adoption95%+ of certified EHRsEarly adopters only
SubscriptionsBasic (polling-based)Topic-based (WebSocket/webhook)
New resources—SubscriptionTopic, NutritionIntake, Permission
RecommendationUse for all production appsWait for broader adoption

X12 EDI: Claims and Administrative Transactions

X12 EDI (Electronic Data Interchange) is the mandated standard for healthcare administrative transactions in the U.S. under HIPAA. Every insurance claim, eligibility check, and payment remittance uses X12 formats.

Key Transaction Sets

TransactionCodeDirectionUse Case
Professional Claim837PProvider -> PayerPhysician office visit claims
Institutional Claim837IProvider -> PayerHospital inpatient/outpatient claims
Eligibility Inquiry270Provider -> PayerCheck patient insurance eligibility
Eligibility Response271Payer -> ProviderReturn eligibility and benefit details
Claim Status Inquiry276Provider -> PayerCheck claim processing status
Claim Status Response277Payer -> ProviderReturn claim status
Payment/Remittance835Payer -> ProviderElectronic payment advice
Prior Authorization278Provider -> PayerRequest service authorization

NCPDP SCRIPT: Prescription Messaging

NCPDP SCRIPT is the standard for electronic prescribing between prescribers, pharmacies, and pharmacy benefit managers. Required by the CMS e-prescribing mandate.

Key Message Types

  • NewRx — New prescription from prescriber to pharmacy
  • RxRenewalRequest — Pharmacy requests refill authorization
  • CancelRx — Prescriber cancels a prescription
  • RxChangeRequest — Pharmacy requests a formulary alternative
  • RxFill — Pharmacy notifies prescriber that prescription was dispensed
  • PDMP Request/Response — Query the Prescription Drug Monitoring Program for controlled substance history

DICOM: Medical Imaging

DICOM (Digital Imaging and Communications in Medicine) is the universal standard for medical imaging. Every CT scan, MRI, X-ray, ultrasound, and PET scan is stored and transmitted as DICOM objects.

Related Reading

For more insights, explore our guides on DICOM and FHIR Medical Imaging Interoperability Guide and FHIR in Modern Healthcare.

You may also find value in EHR Software Development Guide and Building a Healthtech App.

DICOM Architecture

  • DICOM objects — Images with embedded metadata (patient info, study details, series information, acquisition parameters)
  • PACS (Picture Archiving and Communication System) — Stores and serves DICOM images
  • DICOM services — C-STORE (send image), C-FIND (search), C-MOVE (retrieve), C-GET (fetch), WADO-RS (web access)
  • DICOMweb — RESTful API for DICOM operations, increasingly used alongside FHIR ImagingStudy resources

IHE Profiles: Integration Blueprints

IHE (Integrating the Healthcare Enterprise) does not create new standards. Instead, it defines integration profiles — blueprints that specify how to use existing standards (HL7v2, FHIR, DICOM) together to solve specific healthcare integration problems. Patient-centric profiles such as PDQm sit on the FHIR Patient resource, so it helps to understand FHIR Patient identifiers and patient search before implementing them.

Key IHE Profiles

ProfileStandards UsedProblem Solved
PIX/PDQ (Patient Identity)HL7v2 or FHIRPatient identity matching across systems
XDS.b (Cross-Enterprise Document Sharing)HL7v2, CDA, SOAPDocument sharing across organizations
MHD (Mobile Access to Health Documents)FHIRLightweight document sharing for mobile apps
PDQm (Patient Demographics Query for Mobile)FHIRPatient search from mobile applications
IUA (Internet User Authorization)OAuth 2.0, SMART on FHIRSecure authorization for health IT

Direct Protocol: Secure Health Information Exchange

Direct is a secure email-like protocol for point-to-point health information exchange. It uses S/MIME encryption over SMTP to send clinical documents (typically CDA or PDF) between healthcare organizations.

  • Use case — Referral letters, discharge summaries, transition of care documents sent between providers who are not on the same EHR
  • Addressing — Direct addresses look like email (provider@direct.hospital.org) but route through Health Information Service Providers (HISPs)
  • Trust model — Trust anchors and certificate chains ensure both sender and receiver are verified healthcare entities
  • Decline — Direct is being replaced by FHIR-based exchange (TEFCA, Carequality) for most use cases, but remains required for CMS Meaningful Use attestation

Which Standard to Use: A Decision Framework

ScenarioRecommended StandardWhy
New patient-facing appFHIR R4RESTful API, JSON format, SMART on FHIR auth, mandated by ONC
Connecting to legacy hospital systemsHL7v2 (with FHIR bridge)95%+ of hospitals already speak HL7v2. Build a bridge rather than replacing.
Submitting insurance claimsX12 837Mandated by HIPAA. No alternative for payer transactions.
E-prescribingNCPDP SCRIPTCMS mandate. Required for pharmacy system integration.
Medical imagingDICOM + DICOMwebUniversal imaging standard. Use DICOMweb for modern access.
Cross-organization document exchangeFHIR (via TEFCA/Carequality)Replacing Direct and XDS.b. Future-proof choice.
Real-time clinical eventsHL7v2 (existing) or FHIR Subscriptions (new)HL7v2 for existing interfaces; FHIR R5 Subscriptions for new builds.

The Convergence: USCDI and TEFCA

Two federal initiatives are converging on healthcare standards in the U.S.:

  • USCDI (United States Core Data for Interoperability) — Defines the minimum data elements that must be exchangeable. USCDI v3 (2025) includes clinical notes, health insurance information, and social determinants. All expressed through FHIR R4 profiles. Those profiles come from US Core, and our USCDI vs US Core version mapping shows which US Core release carries each USCDI version.
  • TEFCA (Trusted Exchange Framework and Common Agreement) — Defines the network for exchanging data. TEFCA establishes rules for how health information networks connect and share data. Comparable to India's ABDM in ambition.

Together, USCDI defines what data must be shared and TEFCA defines how it gets shared. Both are built on FHIR R4, accelerating the standard's dominance.

Navigate Healthcare Standards with Nirmitee

At Nirmitee, we implement all major healthcare interoperability standards — from HL7v2 with Mirth Connect to SMART on FHIR applications to HL7v2-to-FHIR translation. Our integration team has deployed hundreds of interfaces across hospitals, health systems, and healthtech platforms.

Contact us to discuss your interoperability strategy.

Struggling with healthcare data exchange? Our Healthcare Interoperability Solutions practice helps organizations connect clinical systems at scale. We also offer specialized Healthcare Software Product Development services. Talk to our team to get started.


For the regulatory side — what these standards mean for TEFCA compliance and information blocking — see: Healthcare Interoperability in 2026: Regulations, TEFCA, and Your 90-Day Action Plan

Ready to scale?

Talk to our healthcare engineering team about building, integrating, and shipping faster.

Frequently Asked Questions

What are interoperability standards in healthcare?

Healthcare interoperability standards are the data exchange formats that let clinical, administrative, and imaging systems communicate, developed over four decades. A single hospital might run HL7v2 for ADT messages, FHIR R4 for patient portals, X12 EDI for claims, NCPDP SCRIPT for prescriptions, and DICOM for radiology, all simultaneously. Knowing when and how to use each standard is essential for anyone building healthcare software.

What is the difference between HL7v2 and FHIR?

HL7v2 is event-driven messaging: when a patient is admitted or a lab result is finalized, a pipe-delimited message is sent to downstream systems. FHIR is a RESTful API framework that treats clinical data as resources you can create, read, update, and search via standard HTTP methods. HL7v2, first released in 1987, still runs in 95%+ of US hospitals, while FHIR R4 is mandated by ONC for certified health IT and is the standard for new applications.

Should developers use FHIR R4 or R5 for production healthcare apps?

Use FHIR R4 for all production applications. R4 achieved normative status in 2019 and is adopted by 95%+ of certified EHRs, while R5 remains a Standard for Trial Use with early adopters only. R5 adds topic-based Subscriptions over WebSocket/webhook and new resources like SubscriptionTopic and Permission, but the guidance is to wait for broader adoption before building production systems on it.

What is X12 EDI used for in healthcare?

X12 EDI is the HIPAA-mandated standard for US healthcare administrative transactions: every insurance claim, eligibility check, and payment remittance uses X12 formats. Key transaction sets include 837P and 837I for professional and institutional claims, 270/271 for eligibility inquiry and response, 276/277 for claim status, 835 for electronic payment remittance, and 278 for prior authorization requests.

How do healthcare software teams decide which interoperability standard to implement?

Match the standard to the workflow: HL7v2 for real-time clinical messaging with hospital systems, FHIR R4 for APIs and patient-facing apps, X12 EDI for claims and eligibility, NCPDP SCRIPT for e-prescribing, and DICOM with PACS and DICOMweb for imaging. IHE profiles then provide integration blueprints that combine these standards. Healthcare engineering teams like Nirmitee.io build against all of these standards and can map your specific exchange requirements to the right mix.

How does Nirmitee.io approach healthcare software development?

Nirmitee.io follows a healthcare-first engineering approach — every solution is built with HIPAA compliance, HL7/FHIR interoperability standards, and clinical workflow requirements at the core. We combine domain expertise with modern engineering practices to deliver production-ready systems.
Share