Why HAPI FHIR code system versioning decides whether validation stays stable
Versioning in HAPI FHIR controls which release of a code system or value set answers a terminology request, and that answer decides whether existing data still validates. Teams need several versions loaded at once when records were created against an older SNOMED CT, LOINC or ICD-10 release while newer releases are already in use for new data. A terminology server that holds only the latest release will reject or reinterpret codes that were valid when the data was written, so the version question has to be settled before the first release is uploaded.
The JPA server stores code systems and value sets as versioned FHIR resources, identified by a canonical URL and a version. The version a request uses changes the result: a $validate-code or $expand call that names a different version can return a different display, a different membership or a different validity status for the same code. The same request without a version parameter falls back to the server's default resolution, which is the behavior teams most often misread. Clients should therefore send an explicit version on every call that matters for validation, and the server's documented version resolution rules should be confirmed for the release in use.
Before planning rollout, confirm in the HAPI FHIR documentation for your version exactly how the server selects a version when none is given, how it handles multiple loaded versions of one canonical URL, and how a new release is marked current. Then test with a fixed set of records created against each release you must keep supporting, and record the expected results. That test set is the regression baseline you will rerun before any release is switched on. The HAPI FHIR JPA server introduction is the starting point for the terminology capabilities your version supports.
Which versioning approach fits each terminology use
This table compares three ways to hold terminology versions on a HAPI FHIR server: pinning one current version, running the prior and new versions side by side during a transition, and keeping historical versions for reprocessing. Read each row against the workload it serves, then check the storage, load-time and operational risk before choosing. For most sites the answer is a mix, with a single pinned default and history kept only where old records need reprocessing.
| Approach | Workload that fits | Storage and load-time cost | Operational risk |
|---|---|---|---|
| Pin one current version | Validation of incoming messages and coding of new data against one agreed release | Lowest. One version is loaded and indexed, and load time covers only that release | Callers that omit a version may silently validate against the new default after an update |
| Keep prior and new versions during transition | Validation of messages from partners that still send codes from the older release | Higher. Both versions are stored and indexed for the overlap period, so ask your team to size the database for two loads | Two versions can disagree on retired or moved codes, and the overlap must have a planned end date |
| Keep historical versions for reprocessing | Reporting on historical data and re-coding old records against the release that was current when they were created | Highest over time. Every retained release adds storage and a full load, so ask for the size and load time of each release in your environment | Old versions drift out of review, and reprocessing jobs may pick up an unintended version if version parameters are not set explicitly |
| Explicit version on every operation | Any workload where results must be reproducible, including audits and regression tests | Adds little storage. The cost is in client changes to send version parameters on every call | Clients that do not send the parameter still fall back to the default version, so enforce it in gateways or tests |
How a request reaches a specific code system version
A client sends a $validate-code or $expand request naming a code system or value set, optionally with a version. The HAPI FHIR JPA server looks up the matching CodeSystem or ValueSet resources and selects a version. If the request names no version, the server applies its default selection rule, which you should confirm in the documentation for the release you run. The response then returns to the client, so check that the version in the response matches the one you intended.
Version resolution for terminology operations, with the unversioned branch to confirm.
Four release risks that break validation when versions change
Each terminology release can change what a code means, which codes exist and what an expansion returns. The four risks below are the ones a validation team is most likely to meet when moving a HAPI FHIR terminology server from one set of loaded versions to the next.
Unversioned canonical URLs drift
Clients that send a canonical URL without a version parameter get whatever version the server treats as current. After a new release is loaded, the same request can return a different display, status or validation result without any client change. The validation team sees tests that passed last month failing with no code deployed. Check by pinning the expected version in every test request and comparing results for the same codes across the old and new versions before switching the default.
Value sets reference missing versions
A value set that pins a code system version the server no longer has loaded will fail to expand or will validate against the wrong content. The symptom is often an error on one value set while others still work, which makes it easy to misread as a client bug. Before cutover, list every value set and the exact system versions each one references, then confirm each referenced version is still loaded on the target server.
Local codes vanish in new releases
Locally maintained codes added to a national or international code system, or kept in a custom code system, can be dropped or renamed when an upstream release replaces the file. Codes that a claim, order or report depends on then fail validation. Check by diffing the local code list against the new release and confirming that every locally required code either exists in the new version or is maintained in a separate, versioned custom system.
Cached expansions from old versions
Expansions cached or pre-computed for an earlier version keep serving results after the underlying code system has changed. The symptom is a value set that lists codes the new release has retired, or omits codes it added, while the expansion metadata looks current. Check by confirming that each expansion records the code system version it was built from and by re-running expansions for critical value sets against the new version before the cutover is approved.
Loading a second code system version alongside the current one
This sequence adds a new release of a code system next to the version already in production, so both can be queried with explicit version parameters and value sets can be tested against each one before anything changes for users.
Confirm the versioned canonical URL and version string
Before loading anything, the terminology lead reads the publisher's release notes for the new edition and records the exact canonical URL, the version string and the file format the release ships in. Compare these with the identifiers already on the server, because a mismatch in the version string is the most common reason two releases end up colliding or being resolved incorrectly. Confirm the load commands, supported file formats and any licensing steps in the HAPI FHIR documentation for the release in use rather than relying on older examples. The step is done when the identifiers are written in the change log and match the publisher's notes.
Load the new version into a non-production server
The platform engineer loads the new code system release into a non-production JPA server that mirrors the production configuration, including the database engine and terminology settings. Loading into a copy first keeps the production server untouched while the team learns the real load time, storage growth and any errors in the file. Record the load duration, the database size before and after, and any warnings in the log. The step is done when the load finishes without errors and the server reports the new version as present.
Confirm both versions resolve with explicit version parameters
The terminology engineer runs lookup and validation calls against the non-production server, first pinning the current version and then the new version using the explicit version parameter on each request. Use a fixed sample of codes that are known to be active in both releases, plus a few codes that were retired or added between them. The expected result is that each call returns the display and status of the version it asked for, and no call silently falls back to the other version. The step is done when the saved results for both versions match the expected output for every sample code.
Check that value sets bind to the intended version
The terminology engineer reviews every value set that references the code system and confirms which version each one points to in its compose section. Value sets that omit a version will resolve to whichever version the server treats as default, so each one must be pinned or deliberately left unpinned with a documented reason. Run an expansion of each value set against both versions and compare the code counts and the differences. The step is done when every value set has a recorded version decision and the expansion differences match the publisher's list of changes for the release.
Test dependent validation and expansion behavior
The integration team runs the systems that depend on the terminology server, such as data entry forms, message validators and reporting queries, against the non-production instance. Focus on records that use codes changed between the two releases, since these show whether a validator rejects data that was valid before or accepts codes that should now be retired. The step is done when each dependent system produces the expected accept or reject result for the test cases and the team has written down any change that needs a downstream update.
Record the loaded versions in a change log
The terminology lead writes a change log entry that lists each code system, its canonical URL, the version string, the load date, the server it was loaded into and the value sets pinned to it. The entry also notes the test results, the open downstream changes and the person who approved the production load. Keep the log in version control or another controlled system so it can be audited later. The step is done when the entry is reviewed and approved, and anyone can see which versions the server holds and which value sets depend on them.
How operations choose a version when a request does not name one
A request that carries an explicit version and a request that carries only a canonical URL can return different answers after a release is loaded, so the first decision is to find out which of your integrations send which form. A $validate-code or $expand call that includes a version parameter, or a system value written as a versioned URL such as <version>, pins the terminology the server uses. A call that gives only the unversioned canonical URL leaves the choice to the server, which can pick the latest loaded version or a version marked as default. The same ValueSet reference can therefore validate a code in one environment and fail in another after a new release is uploaded. Inventory your clients and flag every call that omits a version, because those are the calls that change silently when the code system changes.
Make version choice explicit in both places where it is set. In your own integrations, send the version on every terminology operation and store it in configuration, not in code, so that a release upgrade is a reviewed change. In value set definitions, pin each compose.include to a version rather than leaving it open, and record which code system version a published value set was authored against. Where a value set must follow a moving release, document that choice and the process that updates it. Confirm with the HAPI FHIR documentation for your exact release how the JPA server resolves a versionless reference, which behavior applies to code systems and value sets separately, and whether a loaded version can be marked as the default. Defaults can differ between releases, so do not rely on behavior you observed in an earlier version.
Before any production rollout, prove the behavior in your own environment with a small test suite run against a staging server loaded with two versions of the same code system. Cover at least these cases: a versioned call returns the result for that version only; a versionless call returns the result the documentation predicts; a value set pinned to the older version rejects a code that exists only in the newer one; a value set left open follows the default after the default changes; a retired code is flagged as expected; and an unknown version returns a clear error rather than a silent fallback. Keep the expected results in version control and rerun the suite after every server upgrade and every terminology load.
Rolling out a new terminology release by environment
Development is where a new terminology release is first loaded into a HAPI FHIR JPA server, so the team can confirm that the upload works and that the new version gets its own canonical identity. Engineers load the release next to the versions already present, rather than overwriting them, and check that each code system version resolves under its versioned URL. This stage is mainly about the build itself: file format, load behavior and whether the server accepts the release as a separate version.
- Loaded content: the new code system or value set version, plus the prior versions still referenced by development test data.
- Validation suites: basic lookup and validate-code checks against codes that exist in the new version and codes retired from it.
- Approver: usually the engineer or platform owner who performed the load, with no formal sign-off required.
- Rollback: delete or reload the development database from a snapshot, since no consumer depends on this environment.
- Check: confirm that a development database snapshot can be restored quickly, because the same procedure will matter later.
Confirm with your own change process whether development loads need any record at all, and with your terminology licensing terms whether development copies are permitted.
Test or staging is the first environment that mirrors production in configuration, data volume and client connections. Here the team checks how client systems behave against the new version, including value set expansions, validation of coded data and any code mapping that relies on the release. Staging is also where the old version is kept loaded alongside the new one, so consumers can be tested against both before any switch.
- Loaded content: the new release and the currently production-active version, with the same value set definitions used in production.
- Validation suites: regression tests for $validate-code and $expand against representative codes, plus tests from each consuming application that pin the version they expect.
- Approver: the terminology owner or data steward, with application owners confirming their test results.
- Rollback: point the test clients back to the prior version URL, and leave the prior version loaded until consumers have moved.
- Check: confirm that staging uses the same server version, database type and pre-expansion settings as production, so results carry over.
Confirm with your own change process who signs off test results, and with the code system licensor the terms that apply to staging copies.
Production is where a release becomes the default for live clients. The safest pattern is to add the new version without removing the old one, then move consumers to it in a controlled order and retire the old version only after the migration is complete. Validation of coded data, value set expansion and audit records should all be checked before and after the switch, and the change should be reviewable by the people who own the clinical or business rules that depend on codes.
- Loaded content: the new version added beside the existing production versions, with no deletion during the cutover window.
- Validation suites: a smoke test of the release's key value sets and validate-code calls, plus monitoring of validation error rates from consuming systems.
- Approver: a named change approver, usually a platform owner together with a clinical or data governance owner, recorded under your change process.
- Rollback: repoint the default version to the prior URL, keeping the prior version loaded and unchanged until consumers have moved off it.
- Check: confirm that retiring any old version is a separate, later change with its own approval and a documented reason.
Confirm with your auditor which evidence of approval and rollback they expect, and with your vendor how the server behaves when a version is removed while consumers still reference it.
Securing terminology changes and keeping an audit trail
Loading or deleting a code system version changes what every downstream validation and expansion returns, so it needs the same control as a production schema change. HAPI FHIR gives you building blocks for this, but the rules about who may act, how loads are recorded and where they are tested are decisions your team must design around the server.
Who may load or delete versions
Decide which roles can upload a code system file, which can delete a version and which only read. HAPI FHIR offers the AuthorizationInterceptor and an authentication layer, but it does not ship a finished rule set for terminology operations. Write the rule down per operation and per code system, then test that a standard client account is refused when it tries to post a CodeSystem or run a load. Confirm that the same rule covers direct REST calls and any admin tooling.
HAPI security docsAudit logging of load operations
Loads of SNOMED CT, LOINC or ICD-10 content are administrative events that should appear in your audit trail with the actor, the time and the code system version. HAPI FHIR provides BALP audit logging as a building block, so confirm it captures the terminology upload and delete calls you care about, not only clinical reads. Check that audit records leave the server for a store your security team controls, and that a test load shows up with the expected identity.
Separating production and non-production loads
Load and validate new releases in a non-production server first, then promote the same version to production through a controlled step. Keep separate credentials and databases per environment so a test upload cannot alter production expansions. Be aware that a server partitioned for multitenancy may need careful design before you use it to separate environments. Agree in advance who approves each promotion and how a rollback to the previous version is done.
Change records tied to source and checksum
For every loaded version, keep a change record that names the source distribution, its release date, the file checksum, the load date, the person or pipeline that ran the load and the resulting version URL. Recompute the checksum before loading so a file changed in transit or on a shared drive is detected. Store these records outside the server so they survive a database rebuild, and use them to answer an auditor's question about which exact content supported a given validation result.
Questions teams ask before running multiple terminology versions
Can our internal team run multiple terminology versions on HAPI FHIR without a partner?
Yes, many teams can, provided they have Java and FHIR terminology skills and someone who owns the release calendar. The work splits into platform tasks (JDK, database and server upgrades, backups) and terminology tasks (loading each release, deciding which version each consumer uses, and regression testing value sets). The platform side is routine for a team that already runs Java services. The terminology side depends on how many systems depend on the code. Outside help is most useful when the team lacks FHIR terminology experience, when several regulated systems must be validated before each release, or when the team needs a documented change process for auditors. A written scope from any provider should list which of these tasks it covers and which stay with your staff.
What drives the cost of a terminology versioning project?
The main cost drivers are the number of code systems you keep, the number of value sets that depend on each version, the number of systems that call the server, and the depth of testing before each switch. Each added code system adds a load, validation and regression cycle. Each dependent value set and consuming application adds test cases and sign-off work. Change governance also matters: a team with an approval workflow, release notes and rollback steps spends more time up front but fewer hours on each later release. Costs are one-time for the initial design and build, and recurring for each new release of every code system. Ask any provider to price these items separately so you can see what recurs.
How long does a terminology version rollout take?
The duration depends on the size of each release and the number of consumers that must be retested, not on a fixed schedule. A single code system loaded into a test environment and checked against a short list of value sets can be handled quickly. A rollout that covers several code systems, large value sets and multiple applications needs time for load, pre-expansion, regression checks and staged cutover. Your own release calendar from the code system publishers and your change board also set the pace. Ask the provider to show the steps, the owner of each step and the test evidence required before a version becomes the default.
What must our team provide before a versioning project starts?
Plan to provide the license terms and distribution files for each code system you are allowed to use, a list of value sets and the applications that depend on them, and named owners for clinical content and for technical sign-off. You will also need access to test environments that mirror production, a database backup policy, and a decision on which version is the default for each system. Confirm with each code system's licensor which releases you may load and where they may be hosted, because licensing differs by code system. These inputs decide how quickly the work can start and how much rework occurs later.
Which HAPI FHIR and Java versions should we plan around?
Confirm your target version before planning, because Java requirements change between releases. The HAPI FHIR versions documentation states that HAPI FHIR 8.2.0 requires JDK 17, so a team on an older JDK must plan that upgrade before adopting that release. The current release noted in the project's GitHub releases page is HAPI FHIR v8.8.2, released on 25 September 2026. Check the upgrade notes between your current version and your target before you load new terminology, because schema or behavior changes can affect how versioned code systems are stored and matched.
What breaks when a new code system version replaces the old one?
The most common breakage is a value set or client that quietly resolves to a different version than the one it was tested against, so codes that were valid become invalid or display text changes. Other issues include stale pre-expanded value sets, consumers that send no version and receive the default, and validation rules that reject codes removed in the new release. Prevent these by pinning versions explicitly in consuming applications, keeping old versions loaded while consumers migrate, and running a regression set of known codes against the new release before the default changes. Document which version each system uses so audits can trace it.
When is outside help worth paying for on terminology versioning?
Outside help is worth considering when several regulated systems depend on the terminology, when releases arrive on a fixed schedule that your team cannot absorb, or when no one on staff has run versioned code systems in production. It is also useful when you need evidence for a compliance assessment, such as documented change control and test records. DeployOpen plans, implements, tests and documents self-hosted platforms in your own infrastructure under a written, fixed scope, and it prepares evidence for compliance assessments without issuing audit reports. Ongoing upgrades and testing can be covered by a retainer if your release cadence is steady.
Limits to confirm before you rely on version pinning
Version pinning only works if the server, runtime, database, licensing and deployment layout all behave the way your plan assumes. The cards below list the points to confirm with the people who own each one, before you build validation or client workflows on top of a specific code system version.
Versioning behavior of your release
The versioning rules for code systems and value sets belong to the HAPI FHIR release you actually deploy, so confirm them against that release rather than against the latest documentation. The current release referenced in the researched facts is 8.8.2, released 25 September 2026, but your platform team should check which version is in use and whether its terminology behavior matches your pinning plan. Ask the platform team to record the exact version in your runbook and to test version-specific calls such as $expand and $validate-code against it.
HAPI FHIR versionsJava runtime for the chosen release
Each HAPI FHIR release sets its own minimum Java runtime, and an upgrade to a newer release can change that requirement. For example, HAPI FHIR 8.2.0 requires JDK 17, which means a team pinned to an older runtime may be unable to take a later terminology fix. Ask your application owner or platform team which JDK your image or application server uses, and confirm it against the requirement for the release you plan to run.
HAPI FHIR versionsDatabase support for your storage
The JPA starter defaults to an embedded H2 database and supports PostgreSQL and Microsoft SQL Server for production, but it does not support MySQL. Terminology content is large, so the version history, expansion results and indexes you store will weigh on the database you choose. Ask your DBA which supported engine and version you run, and confirm the storage sizing and backup plan for several loaded code system versions at once.
License terms for loading and sharing
Many code systems, including SNOMED CT and LOINC, come with their own license terms that govern who may load a release, store it on a server and expose its contents to other systems. Those terms can differ by country, affiliate and use, and they may apply to each version you keep side by side. Ask your legal or compliance owner to confirm in writing which releases you may load, retain and share with consuming applications, and whether that permission covers a shared terminology server.
Partitioning and where code systems live
When partitioning is enabled, each resource is placed in a partition, which can separate tenants, data sources or regions. Code system and value set resources may need to be visible to every partition that validates against them, or they may need a copy in each. Ask the architect who owns your tenancy model whether code system resources sit in a shared partition, and test that a request from each partition resolves the expected version.
HAPI FHIR partitioningWhether operations meet consumer needs
Consumers differ in how they choose a version: some send an explicit version in the canonical URL, others expect the server default, and some depend on a specific value set expansion. Before you rely on pinning, list every calling system and the version it requests, then test $expand, $lookup and $validate-code against that list. Ask the application owners of each consumer to confirm their expected responses, and ask the server team to confirm that defaults behave the same after an upgrade.
How DeployOpen works on this
DeployOpen plans, builds and hands over terminology versioning for a self-hosted HAPI FHIR JPA server inside your own infrastructure. We start from the code systems and value sets your systems depend on, then agree in writing how each version is loaded, pinned and retired.
How we scope
- Inventory every code system and value set your FHIR clients and validators currently reference, with their versions and canonical URLs.
- Agree which versions must stay side by side, such as a prior SNOMED CT release kept for historical data, and which can be retired.
- Document the operations and clients that must pin a version and those that follow the server default, in a written scope before work starts.
How we build
- Set up versioned canonical URL conventions and load each release under its own version identifier, following the loading guidance for each code system.
- Configure how $expand, $lookup and $validate-code select a version, and test explicit and default version requests against expected results.
- Run a staged rollout test on a non-production server to confirm that a new release does not change validation results for existing data.
How we hand over
- Deliver a written version policy covering load order, default version selection, deprecation dates and the rollback steps for each release.
- Provide runbooks for loading a new release, checking expansion status and reverting a failed update, tested with your operations team.
- Train the teams that own clients and validators on how to pin versions in their requests and read version information in responses.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so each new terminology release follows the same tested process.
- Retainer work can cover HAPI FHIR version upgrades that affect how code system versions are stored and resolved on your server.
- Confirm with us during scoping which support hours, response expectations and release cadence you need, as these are set in the written agreement.

