Why Migrate to FHIR R5
FHIR R5, published by HL7 International, introduces substantial improvements over R4 that address implementation gaps discovered during large-scale deployments. Whether and when to migrate depends on your trading partners, your regulatory context and the maturity of your tooling. The ONC's Interoperability Standards Advisory is a useful reference for which versions and standards are favoured in the US context.
The most compelling technical reason is the topic-based subscription framework. R4 subscriptions relied on criteria-based filtering that scaled poorly and offered limited control over notification delivery. R5 introduces SubscriptionTopic resources that define precise triggering events, combined with channel-agnostic notification delivery.
Clinical reasoning resources have been expanded. PlanDefinition and ActivityDefinition support more complex branching logic for clinical decision support workflows, and the workflow resources, including Task and Transport, standardise care coordination across organisational boundaries.
The European Health Data Space regulation builds on common standards for exchanging health data, and the European Commission publishes technical specifications for it. Organisations active in the EU should follow these specifications to see which versions and profiles are expected, rather than assume a given FHIR version is mandatory.
R5 also continues work on provenance tracking, genomic data and evidence-based medicine resources that support structured exchange of research data.
Key Breaking Changes from R4 to R5
Understanding breaking changes is essential for planning a successful migration. HL7 has kept backward compatibility where possible, but several changes require code modifications.
Subscription model replacement: the R4 Subscription resource is replaced by a model built on SubscriptionTopic and Subscription with a different architecture. R4 subscriptions used criteria strings, while R5 uses topic references with filter parameters. Migration requires rewriting subscription creation logic and notification handling.
Resource renames and splits: several resources were renamed, split or restructured. These changes require updating references in code and data, so consult the R5 change log for each resource you use.
Search parameter changes: some search parameters were renamed, removed or had their behaviour modified. Compare your search parameter usage with the published differences to identify impacted queries.
Extension promotion: some commonly used R4 extensions were promoted to first-class elements in R5. This improves data modelling but requires data transformation during migration.
Terminology binding changes: some value set bindings changed strength, which may require code system mapping updates. The R5 specification includes change logs that should be reviewed systematically.
Migration Planning and Assessment
A structured migration plan reduces risk and protects the continuity of clinical operations.
Inventory assessment: catalogue every FHIR resource type used in your implementation, including custom profiles, search parameters, operations and extensions. Identify which are affected by R5 breaking changes and assess the scope of the modifications.
Dependency mapping: identify all systems that consume or produce FHIR data, such as record systems, laboratory and pharmacy systems, patient portals, analytics platforms and third-party integrations. Evaluate each dependency for readiness and migration timing.
Profile migration: custom profiles must be updated to the R5 base resources. Use validation tooling to identify incompatibilities.
Test environment: establish a parallel R5 test environment alongside the production R4 system. Load representative data sets and validate all critical workflows before any production migration begins.
Migration timeline: plan a dual-support period in which your system accepts both R4 and R5 resources, which is essential when trading partners migrate on different timelines. FHIR supports version negotiation through the fhirVersion parameter of the media type.
Rollback strategy: define clear rollback criteria and procedures. Data migration should be reversible, and the R4 system should stay operational until R5 has been validated in production for a defined stabilisation period.
Technical Migration Steps
The technical migration follows a systematic process from dependency updates through validation.
Step 1, update FHIR libraries: upgrade your FHIR software libraries to R5-compatible versions and review their release notes for API-level breaking changes.
Step 2, update resource definitions: replace renamed resources, update changed element paths and promote extensions to first-class elements where applicable. Automated transformation tools can handle many changes, but custom resources need manual review.
Step 3, migrate subscriptions: implement the topic-based model. Define a SubscriptionTopic for each event type your system monitors, update subscription creation to reference topics and implement the new notification bundle processing.
Step 4, update search queries: review all search parameter references and test each query against an R5 server to verify the behaviour. Pay particular attention to chained searches and include patterns.
Step 5, migrate data: transform existing R4 data to R5. Validate converted resources against R5 profiles and maintain referential integrity across all resource references.
Step 6, integration testing: validate every external integration point with R5 data, and verify that trading partners can process R5 resources or that version negotiation correctly falls back to R4 where needed.
Dual-Version Support and Interoperability
In practice, healthcare ecosystems will run mixed R4 and R5 implementations for years. Your migration strategy must account for this.
Version negotiation: FHIR's capability statement and content negotiation mechanisms let servers advertise supported versions and clients request a specific one. Use the version parameter of the media type to serve R4 or R5 representations of a resource based on client capability.
Conversion at the boundary: a conversion layer at your API boundary lets you accept R4 requests from legacy partners while storing and processing data in R5 internally. Conversion between versions is not always lossless, so test it with real data.
SMART on FHIR compatibility: SMART on FHIR applications should keep working across versions, because the launch protocol and authorisation flows are version-independent. Applications that depend on specific resource structures may need updates, so test each one against your R5 server before production.
Bulk data export: the Bulk FHIR specification is version-aware. Make sure your export can produce both R4 and R5 output on request, since downstream analytics and research consumers may not upgrade at the same time.
Post-Migration Optimisation
Completing the migration is the starting point for using R5's capabilities.
Event-driven architecture: with R5 subscriptions in place, refactor batch-oriented workflows into event-driven patterns. Clinical events such as a filed lab result, a medication order or a discharge notification can trigger downstream processing without periodic polling.
Clinical decision support: use the enhanced PlanDefinition and ActivityDefinition resources to encode decision-support logic as shareable, computable artefacts that can be distributed across systems through standard FHIR mechanisms. Any decision-support feature needs clinical evaluation before use.
EHDS alignment: map your implementation to the European Health Data Space technical specifications, implement International Patient Summary profiles for cross-border exchange and prepare for secondary-use access requests.
Performance: review query patterns, implement appropriate indexing and monitor the effect of the new search and subscription capabilities.
Monitoring and observability: monitor R5-specific features such as subscription delivery success, topic trigger frequency and version negotiation patterns. These metrics give early warning of integration issues and inform capacity planning.