Why a HAPI FHIR 7.x to 8.0 upgrade needs a data plan, not just a version bump
Your team runs a self-hosted HAPI FHIR JPA server on 7.x that holds clinical data, and it likely has custom interceptors or partitioning built around it. The key point is that the 8.0 release changes how stored meta.source values and compartment membership behave, so the upgrade includes data work and a reindex, not just a dependency bump. Treat the database as part of the change set from the first planning meeting.
The supported path has to come from the 8.0 release notes on the HAPI FHIR releases page, which your team should read line by line against your own configuration. The facts available to DeployOpen do not give a specific 8.0 migration sequence, so do not assume an order of schema steps, reindex passes or flag changes until the release notes and the upgrade documentation confirm them. Ask the vendor or your partner to name, in writing, which 8.0 changes touch stored provenance data and which touch search compartments.
Next, inventory what the change affects in your deployment. Identify every place your code reads meta.source, every custom interceptor that depends on compartment membership, and every partition rule that routes Device or Patient-linked resources. Records written under 7.x may not match what 8.0 expects, so decide in advance whether you will reindex in place, rely on a copy of production for rehearsal, or accept a documented search gap. Those decisions set the maintenance window and the rollback plan, and they belong in the upgrade scope before any environment is touched.
Which 8.0 behavior changes affect this server
This table lists the 8.0 behavior areas most likely to change data handling on a HAPI FHIR JPA server, with the impact on your server and the action to take. Each row must be checked against the official 8.0 release notes before you plan the upgrade, because the notes, not this page, define the exact behavior change. Treat any row that touches stored data as a reason to rehearse the reindex on a copy of production.
| Change | Impact | Action needed |
|---|---|---|
| Legacy provenance table and meta.source handling | Existing Provenance-based source data may not map to meta.source the way your clients expect. Confirm against the 8.0 release notes which data is migrated, which is left in place and which is ignored. | Inventory clients that read meta.source or Provenance. Confirm the migration behavior in the 8.0 notes, then test reads and searches on a copy of production. |
| Device resources in the Patient compartment | Compartment membership for Device resources may change, so Patient-scoped searches and compartment-based access rules can return different results. Confirm the exact membership change in the release notes. | List every access rule, consent filter and export job that depends on Patient compartment membership. Retest each one after upgrade. |
| Search results and compartment membership after reindex | Existing rows keep their old index values until they are reindexed, so search results can be inconsistent between old and new data. Confirm which indexes the release notes require you to rebuild. | Plan the reindex step explicitly, estimate its duration on a copy of production, and confirm whether the server must be taken out of service while it runs. |
| Authorization and consent interceptors that rely on compartments | Custom AuthorizationInterceptor or consent logic that assumes the old compartment rules may grant or deny access incorrectly. Confirm which interceptor APIs changed in 8.0. | Review custom interceptors against the 8.0 notes and add tests for Patient-scoped reads by a user who should be denied. |
| Other 8.0 behavior changes in the release notes | Changes unrelated to provenance or compartments may still affect clients, custom code or runtime requirements. Confirm the full list in the official 8.0 release notes. | Read the complete 8.0 notes, record each item against your server, and mark which need code, configuration or data changes. |
| Java and runtime requirements for 8.0 | The runtime needed to run 8.0 may differ from the one in production. Confirm the required JDK version in the 8.0 notes and the HAPI FHIR versions page. | Check the JDK, application server and container image against the 8.0 requirements before scheduling the upgrade window. |
How the legacy provenance table and meta.source affect existing resources
In FHIR, meta.source is a field in the resource's meta element that records where a resource's content or version came from, typically a URI identifying the system that produced or last stored it. Servers keep this kind of provenance-related data so that clients and auditors can tell which system supplied a resource and so that a server can distinguish between records written by different sources. The specification defines the element, but how a server stores it, indexes it and returns it is an implementation decision, which is why the HAPI FHIR 8.0 change needs checking against your own data rather than assumed from the FHIR definition.
If your server has been running on the 7.x line, some of your existing resources may carry meta.source values written under older behavior, and some of those values may be stored in a legacy provenance table that predates the current handling. The risk is not that the data is lost. The risk is that version 8.0 reads the same stored values differently, so searches on _source, provenance-based filters or downstream consumers may return different results after the upgrade. Read the 8.0 release notes for the exact storage and read-path changes before you draft a migration plan, and do not infer table names or column meanings from this page alone.
Before the upgrade, query your own database to count the rows in the legacy provenance table and to count resources with a non-empty meta.source, grouped by resource type and by distinct source value. Save those counts as a baseline. After a rehearsal upgrade on a copy of production, run the same queries and compare, then run a sample of _source searches through the API and confirm the results match what your consumers expect. Any mismatch becomes a decision item: whether to backfill, rewrite or accept the difference, and who signs off on that choice before the production window.
Decision path for the data work on 8.0
The path starts with an inventory of current data and custom code, since both determine how much work the upgrade carries. Next, check whether the legacy provenance table holds rows, and whether any Device resources sit in patient compartments, because either finding changes the data work. Then decide whether a reindex is required. The last decision chooses between an in-place upgrade and a rehearsal-first route on a copy of production, and that choice should be made before any production change.
Decision points that set the data work before the 8.0 production upgrade.
What to back up and inventory before the 8.0 upgrade
These six items give the team a rollback path, a map of code that depends on the 8.0 behavior changes, and a rehearsal that reflects production. Each one has a named owner and a piece of evidence that shows it is finished before the upgrade window opens.
Full database backup, restore-tested
Take a full backup of the JPA server database immediately before the upgrade and restore it into a separate environment. The restore must be proven, not assumed. Confirm that the HAPI FHIR server starts against the restored copy and that a sample of resources and history reads back correctly. The database administrator owns this item. Evidence is a restore log, a row count comparison for key resource tables, and a dated record of the backup identifier that the rollback plan names.
Inventory of custom interceptors and providers
List every custom interceptor, provider and partition interceptor that reads meta.source, the provenance data, or compartment membership. Include code in server overlays and any libraries shared with other services. Each entry should name the class, the behavior it relies on and the test that covers it. The backend or platform developer owns the list, and the lead engineer signs off. Evidence is a reviewed inventory file in version control with a test reference for each row.
Java runtime and application server versions
Record the JDK version, application server or container image, and any build tooling used by each environment that runs the server. Compare these against the requirements in the HAPI FHIR versions documentation for the target release, since the 8.x line requires a newer JDK than earlier releases. The platform engineer owns this record. Evidence is a table listing every environment, its runtime version and the upgrade action it needs, with the target JDK confirmed against the release documentation.
HAPI FHIR versionsRehearsal copy of production data
Create a rehearsal environment from a recent copy of production data, with the same database engine, version and configuration. Use it to run the schema migration, reindex and the test suite for compartment-based searches. Remove or mask personal health information as your privacy policy requires before the copy leaves the production boundary. The database administrator owns the copy and the privacy lead approves the masking. Evidence is a timed migration log and a list of differences between the rehearsal and production results.
Searches that depend on compartments
Collect the client search queries, saved searches and SMART or consent rules that depend on compartment membership, including Patient and Device compartment queries. Compare results before and after the rehearsal upgrade to find queries whose result sets change. The integration lead owns the collection and the application owners confirm their queries. Evidence is a query list with expected results for a fixed test dataset and a diff of those results from the rehearsal run.
Agreed maintenance windows
Agree the maintenance window, the rollback decision point and the people on call with clinical operations, application owners and the service desk in writing. Include time for the reindex, which can run longer than the schema change itself, and for the verification steps. The service owner owns the schedule. Evidence is a signed change record that states the start and end times, the go or no-go criteria, the rollback trigger and the named contacts for each stakeholder group.
How to plan the reindex for different server sizes and layouts
On a single non-partitioned JPA server, the reindex works across the whole resource store in one scope. Every search parameter index that the 8.0 change affects is rebuilt for all resources, so the rehearsal results describe the production run directly. Plan one rehearsal on a copy of production and record the figures below before choosing a window.
- Run duration: Time the reindex job from start to finish on the copy, and note whether it can be paused and resumed without repeating work.
- Database load: Watch CPU, I/O, lock waits and connection use on the database during the run, and compare them with normal business peaks.
- Search results before and after: Pick a fixed set of representative searches, record the result counts and sample IDs before the upgrade, and repeat them after the reindex to confirm that Patient compartment and provenance-related queries return the expected resources.
- Application impact: Note which API clients are affected while the reindex runs, since searches may return incomplete results until it finishes.
Confirm with the vendor release notes whether the 8.0 reindex is a required step, which search parameters it rebuilds, and whether the server can serve reads during the job. Ask your team to re-check these answers against the version you deploy.
On a partitioned server, resources are placed in partitions that can represent tenants, data sources or regions. The reindex scope therefore depends on how the partitions are used and whether your reindex runs across all partitions or in separate passes. Decide the scope first, then measure each partition type separately, because a large tenant can dominate the timing and load of the whole run.
- Partition inventory: List every partition, its approximate resource count and its owner, and mark the partitions that hold tenant data subject to separate retention or access rules.
- Per-partition timing: Measure the reindex for a representative small partition and a representative large one, so you can estimate how the run behaves as partitions are added.
- Cross-tenant checks: After the reindex, run searches under each tenant's identity to confirm that results stay inside that partition and that no data appears in another tenant's results.
- Custom interceptor behavior: Confirm that any custom partition interceptors and search narrowing rules still resolve partitions correctly after the upgrade.
Confirm with the vendor release notes whether the reindex can run per partition, whether partition-aware job parameters exist, and whether any partition API you use has changed in 8.0 or in later releases. The partition behavior of your own code is the part vendor notes cannot verify for you, so test it on the copy.
On a server with large data volumes, the main risks are run length, database capacity during the run and the effect on live traffic. The rehearsal must use a copy with a realistic volume of data, since a small test database will not reveal the time or load of production. Treat the figures from the rehearsal as the basis for the maintenance window, and do not assume that the test result scales in a straight line.
- Storage headroom: Check free space and transaction log capacity before the run, because index rebuilds and their logs can grow significantly during the job.
- Restart and resume: Test what happens if the job is interrupted, including whether it resumes cleanly and whether the database must be restored.
- Backup point: Take and verify a database backup immediately before the production run, and note the restore time you measured in the rehearsal.
- Search regression: Compare response times and result counts for your heaviest searches before and after the reindex, not only the result counts.
Confirm with the vendor release notes any guidance on batch size, job parameters and expected impact on the database for large stores. Ask your database administrator to confirm storage and log settings for your engine, since those limits are set in your environment and not by the HAPI FHIR release.
Upgrade sequence for HAPI FHIR 8.0 with reindex and rollback points
This sequence moves a HAPI FHIR 7.x JPA server to 8.0 in an order that proves the meta.source and compartment data is correct before production changes, and it keeps a restorable point at every stage.
Confirm the 8.0 target and runtime requirements
Read the HAPI FHIR 8.0 release notes and list every breaking change that touches your deployment, including the meta.source and Device compartment behavior. Check the JDK version the release requires against your own runtime, along with your application server, container base image and Helm chart version, rather than assuming the 8.2.0 JDK 17 requirement carries over. Done when the team has a written list of required runtime changes and an owner for each one, and the version list is signed off by the platform lead.
Back up the production database and configuration
Take a full database backup and a restore test on a separate instance before any schema change, and store the exact server version, JAR or image tag, and configuration files alongside it. Record row counts for the tables that hold resources, history and provenance data so the post-upgrade checks have a baseline. Done when a restore of the backup has been completed on a non-production host and the team has confirmed it can start the prior 7.x version against that restored copy. This is the rollback point for the production database.
Upgrade a rehearsal copy of the server
Restore the production backup into an isolated environment with the same database engine and version, then run the 8.0 upgrade there using the same migration procedure you plan to use in production. Capture the migration output, any warnings and the time the schema changes took. Done when the 8.0 server starts cleanly against the restored copy and the logs show no unresolved migration errors. If the rehearsal fails, the production system is untouched and you restore the rehearsal copy from backup before trying again.
Run data checks for meta.source and compartments
Query the rehearsal copy for legacy provenance rows, resources whose meta.source values no longer match what 8.0 expects, and Device resources that now fall into the Patient compartment. Compare the counts against the baseline from the production backup and classify each group as migrate, leave unchanged or remediate. Done when every affected group has a documented decision and a query that reproduces the count, and the team has agreed on which legacy data needs a cleanup script before the reindex starts.
Run the reindex on the rehearsal copy
Apply the cleanup decisions from the previous step, then run the reindex job that the 8.0 release notes require for search parameter and compartment data. Monitor database load, lock waits and job progress, and record the total elapsed time to size the production maintenance window. Done when the reindex job reports completion with no failed entries and a sample of resources shows the expected search index rows. Rollback point: if the reindex fails or corrupts index rows, restore the rehearsal copy and rerun with a corrected script, since production has not yet been touched.
Validate search and compartment results
Run a fixed set of regression searches and compartment queries against the reindexed rehearsal server, comparing results with the same queries on the 7.x backup. Include Patient compartment searches that cover Device resources, provenance-based queries and any custom interceptors or authorization rules your team uses. Done when every query returns results that match the expected outcome, each difference is explained and approved, and the application team has signed off on the test results. If any approved result differs, stop and return to the data check step.
Promote the upgrade to production
Schedule the production window using the rehearsal timings, announce it to dependent applications, and take a fresh backup immediately before the change. Apply the same steps in the same order as the rehearsal, then run the health checks and the validated search set against production. Done when the server responds on its health endpoints, the regression queries match the rehearsal results and the team has recorded the final version and configuration. Rollback point: if validation fails in production, stop the 8.0 instance, restore the pre-upgrade database backup and restart the prior 7.x version, keeping the backup until the owner approves closure.
Testing and rollback for a HAPI FHIR 8.0 upgrade
The test plan for this upgrade should cover the behavior that 8.0 changes, not just whether the server starts. Run a rehearsal on a copy of production data and check resource reads and writes for each resource type your clients use. Then check provenance round trips: create a resource with a meta.source value, read it back through the API, update it, and confirm the value survives. Records written before the upgrade and records written after it should both be checked, because the legacy provenance table is where older values live. Device searches are the change most likely to surprise clients, so run the searches your applications depend on in a Patient compartment and compare result counts against the pre-upgrade baseline. Record the baseline before you start so the comparison is meaningful.
Custom code needs its own pass. Exercise every custom interceptor, provider and partition or authorization hook with representative requests, including failure cases such as missing or malformed tokens and searches that should return nothing. Authentication flows deserve a separate test: confirm that your identity provider issues tokens the server accepts, that the AuthorizationInterceptor still narrows results as intended, and that audit entries are still written. Confirm the exact behavior changes and any API removals against the 8.0 release notes on the HAPI FHIR releases page and the upgrade guidance in the documentation, and record which items apply to your code.
Rollback after a schema change depends on the database backup taken before the upgrade. Reverting the application binary alone is not a reliable path once migrations have altered tables, so a verified pre-upgrade backup is the rollback plan. Rehearse the restore on a separate environment: restore the backup, start the prior server version against it, and run the same smoke tests. Time the restore and note every manual step. Ask your team to confirm the rollback limits in the release notes and in your own change process, including how long writes made after the upgrade would be lost if you restored, and who approves that decision during the maintenance window.
What makes the 8.0 upgrade take longer
This table lists the factors that push the 7.x to 8.0 effort up or down, with the direction of each effect and what to check in your own environment. Read each row against your deployment: the rows with the largest data volumes, custom code and partition use usually decide how much rehearsal and reindexing the upgrade needs.
| Driver | Effect on effort | What to check |
|---|---|---|
| Resource and provenance volume | More work as volume grows, since the legacy provenance data and reindex steps scale with table size | Row counts for resources and the legacy provenance table, plus how long a reindex took in your last test copy |
| Custom interceptors and providers | More work for each custom class that touches meta.source, search parameters or compartment logic | Inventory of custom interceptors, providers and search code, and which ones read or write provenance fields |
| Device resources in patient-scoped searches | More work if your searches or access rules rely on Device membership in the Patient compartment | Whether patient-scoped queries, consent rules or authorization interceptors expect Device resources in results |
| Partitioning | More work when partitioned data needs separate reindex and verification per partition | Whether partition mode is enabled, how many partitions exist, and whether custom partition interceptors are in use |
| Application server and container images | More work when runtimes, images or Helm values must be rebuilt and retested alongside the server | Current Java runtime, application server version, and whether the image or WAR is pinned in your pipeline |
| Number of environments to rehearse | More work with each environment that needs its own migration run, reindex and functional test pass | Count of development, test, staging and production copies, and whether each has data at production scale |
Questions teams ask before a HAPI FHIR 8.0 upgrade
What drives the cost of a HAPI FHIR 8.0 upgrade?
The cost is driven mainly by how much custom code and data the server carries, not by the version number itself. Main factors include the number of custom interceptors, providers and partition logic that touch meta.source or compartment behavior, the size of the JPA database, how many environments must be rehearsed, and whether the team has to build a test harness from scratch. Cost splits into labor for analysis, code changes, rehearsal and cutover, plus infrastructure for the copy of production used in testing. Labor is one-time, while retesting and monitoring after each later upgrade recur. When requesting a quote, ask the provider to list which components are in scope, how many environments are covered, and what is excluded, such as application-level fixes found during testing.
How long does a HAPI FHIR 8.0 upgrade take?
Duration depends on data volume and on what rehearsal reveals, so no fixed figure applies to every server. A small server with little custom code can move through analysis and rehearsal faster than a large partitioned deployment with years of resources and custom interceptors. The reindex step is the part most sensitive to data size, and it can only be timed reliably on a copy of production. Your team must measure it: run the upgrade and reindex on a recent copy, record elapsed time per step, and note any failures. Ask any partner to base its schedule on those measurements and to state which assumptions it depends on.
What does the upgrade need from our internal team?
The upgrade needs people who know the server's data and its consumers, and they need time set aside for it. Typical contributions include a developer who understands custom interceptors and providers, a database administrator who can take and verify backups and monitor the reindex, an operator who owns the deployment and rollback path, and a clinical or data owner who can confirm that meta.source values and compartment-based searches still return what downstream systems expect. Expect these people to review rehearsal results and sign off on cutover. Confirm their availability before work starts, since the schedule depends on it.
Can our own team perform the HAPI FHIR 8.0 upgrade?
Yes, a capable internal team can perform the upgrade if it has the skills and time to do so safely. The work involves reviewing the 8.0 behavior changes, adjusting custom code, rehearsing the migration and reindex on a copy of production, and documenting rollback. The main risks for internal teams are underestimating the testing of custom partition or security code, and running the reindex without a tested recovery path. An outside partner can take on defined parts of this work under a written scope, such as rehearsal, reindex planning or the test harness. Decide which parts you keep in-house before you request a quote.
What should we ask for in a quote for this upgrade?
Ask for a written scope that lists each deliverable and the environments it covers. A useful quote names the systems in scope, the custom code to be reviewed, the rehearsal runs and copy of production used, the reindex plan and its timing measurements, the backup and rollback procedure, and the cutover support. It should state what recurs after the upgrade, such as monitoring or retesting for later releases, and what is excluded. Ask how changes found during rehearsal are handled and how additional rounds are priced. Price should follow from that written scope. DeployOpen does not publish a price list and provides a quote from the agreed scope.
What happens if the reindex fails during the upgrade?
If the reindex fails, the server should not go live on the new version until the cause is found and fixed. Before the upgrade, you should have a verified backup of the database and a documented rollback path to the 7.x application and schema. The failure is investigated from the reindex logs and the database state on the copy of production, then the step is rerun there before anyone touches production. Ask your provider how partial reindex runs are detected, how long a rollback takes in your environment (which you must measure during rehearsal), and who makes the go or no-go decision. Keep the rollback path tested until the upgraded server has run through a full business cycle.
Which parts of the 8.0 changes should engineers check first?
Engineers should first check any code that reads or writes meta.source on the legacy provenance table, and any custom logic that depends on Device resources being in the Patient compartment. Review interceptors and search narrowing rules that rely on compartment membership, since their results may change after the upgrade. Then confirm the reindex steps required by the release notes for your version, and run representative searches against the rehearsal copy before and after. Verify results with the consumers that depend on them. Consult the HAPI FHIR release notes and documentation for the exact behavior change and reindex requirement, because those details must come from the official source for your version.
How DeployOpen scopes and delivers a HAPI FHIR upgrade
DeployOpen plans the move from HAPI FHIR 7.x to 8.0 as a written, fixed-scope engagement inside your own infrastructure. The work centers on the legacy provenance table, meta.source handling, Device in the Patient compartment and the reindex steps that follow the schema change.
How we scope
- Inventory your current HAPI FHIR version, JPA server deployment method and database engine before agreeing any scope
- Identify where meta.source values and the legacy provenance table are read, written or exported by your applications
- Review which searches, access rules and consent logic depend on Device being in the Patient compartment
- Agree in writing which reindex runs, test environments and cutover checks are included before work starts
How we build
- Rehearse the 8.0 upgrade on a copy of your database so schema migration and reindex timing are measured, not assumed
- Adjust custom interceptors, providers and compartment-dependent search logic to the 8.0 behavior changes
- Test FHIR search, provenance and access control results against documented expected outputs for your resource types
- Run the upgrade in your own cloud accounts, data centers or air-gapped network with backups taken before each step
How we hand over
- Deliver a runbook covering backup, migration, reindex, rollback and post-upgrade verification steps
- Document every code and configuration change, with the reason for each change tied to a specific 8.0 behavior
- Provide test evidence showing which searches, compartment queries and provenance reads were checked and their results
- Walk your platform and security teams through the runbook so they can repeat or review the steps
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the handover
- Retainer scope can cover later HAPI FHIR releases, including reviewing release notes against your custom code
- Ask any quote to state what recurs (support hours, testing cycles) and what is one-time (the upgrade itself)
- Confirm with your team whether a compliance assessment needs the upgrade evidence, since DeployOpen prepares evidence but does not issue audit reports

