Installing implementation guide packages on HAPI FHIR

A planning guide to installing FHIR implementation guide packages on a HAPI FHIR JPA server: the install paths, the 8.6 ID change, and how to keep IG versions aligned across environments.

On this page

Why installing IG packages on HAPI FHIR needs a plan

A team that needs US Core or a national implementation guide (IG) loaded on a HAPI FHIR server usually discovers the gap when validation or profile checks fail. Installing an IG package puts that guide's StructureDefinitions, value sets and code systems onto the server so that profile-based checks can resolve the guide by its canonical URL. Teams need this step before any profile-level validation or conformance check can reference the guide, and they need to repeat it whenever the guide or one of its dependencies changes.

The core specification is the base FHIR standard. It defines the base resources, data types and general rules that every conforming server follows. An IG sits on top of it: it defines profiles that constrain core resources for a country, region or use case, and it often ships extensions, value sets and dependencies on other guides. US Core is an IG for US health data, and a national IG may depend on US Core or on terminology packages. The server already holds the core definitions, so the install work concerns the guide content layered above them, including every package it depends on.

This page covers the install mechanics: how the package reaches the server, the ways to load it and how to keep versions aligned across environments. It does not cover profile enforcement, which is a separate control. Before you start, confirm which guide and version your data senders and auditors expect, list its dependencies and name the owner of each environment's package list. A server that loads a different version from the one a partner validates against produces results that nobody can reconcile.

Which install path fits your environment

Uploading a package file means an operator obtains the IG package outside the server and sends it to the server through the supported upload mechanism for your release. The person who runs it is usually a platform or FHIR administrator with write access to the server's configuration. Because the file travels from a workstation or build pipeline, the server itself needs no outbound network access for this step, which suits environments where egress is tightly restricted. The action is deliberate and reviewable, so it fits production change control well.

  • Who runs it: an administrator with rights to load packages, usually during an approved change window.
  • Network needs: the operator fetches the file, so the server can stay on an internal network.
  • Provenance: you choose the exact file, so you can record its name, version and checksum in the change record.
  • Repeatability: the same file can be loaded into development, test and production, which keeps environments in step.
  • Ongoing effort: each new or updated guide needs a fresh upload, so someone must track releases and schedule the work.

Confirm the upload endpoint, accepted file formats, size limits and authentication requirements for your release before you write the runbook.

Configuration options and when each fits

This table compares the ways an IG package can reach a HAPI FHIR server: uploading it, downloading it from packages.fhir.org, installing at runtime, pinning or floating versions, and pre-staging packages in a build. Read each row against your own needs for reproducibility, network dependence, audit trail and operator effort, then choose the path your change process can support.

Install optionTrade-offWhen it fits
Package uploadReproducible if the uploaded file is kept under version control. No outbound network needed. Operator must upload and record each change manually.Air-gapped or tightly controlled servers where the package file is reviewed before it reaches production
Download from packages.fhir.orgDepends on outbound access at install time. Versions can drift if the request does not name an exact version. Source is easy to trace.Lower-control environments such as development, where speed matters more than strict repeatability
Runtime $install operationConvenient for the starter, but the server changes at runtime. Needs a clear record of who triggered it and which version was requested.Controlled one-off installs with a logged change ticket and a documented rollback step
Pinned IG versionSame version in every environment, so test results carry over. Upgrades require a deliberate change to the pinned value.Production and any environment where validation results must match across promotion
Floating IG versionPicks up newer content without a change to configuration. Validation results can change between restarts or environments.Early exploration or sandboxes where drift is acceptable and monitored
Pre-staged package in the buildSame artifact in every environment and no runtime network call. Requires a build pipeline step and an artifact store.Teams promoting images through several environments and needing a clear audit trail of the IG version

What the ID change in 8.6 means for existing IG installs

The identifier change introduced in HAPI FHIR 8.6 matters if your server received implementation guide packages on an earlier version, because the IDs recorded for those packages may no longer match what the 8.6 server expects. Before you plan anything, confirm the exact behavior with the 8.6 release notes on the hapifhir/hapi-fhir releases page, since the details of which identifiers change and how they are stored are what determine whether a re-install is needed. Do not assume the change is cosmetic until you have read those notes against your own package list.

Start by inventorying what each existing server holds. List every IG package that was installed or uploaded, the package name and version, and the identifiers the server currently reports for the resources it stores, for example by querying the server's StructureDefinition, ValueSet and CodeSystem resources for the relevant packages. Record this per environment, because development, test and production often diverged in which packages were loaded and when. Compare that inventory against what the 8.6 release notes describe. Any package whose identifiers are affected is a candidate for re-install, and any profile that a validation setting references by URL should be checked against the new identifiers as well.

Plan the re-install or migration in a lower environment first. Choose between removing and re-loading affected packages in place and standing up a fresh server on 8.6 and loading packages there, and be explicit about what happens to data already validated against the old profiles. Then test: confirm that the packages load without errors, that profile references resolve, that validation of sample resources still behaves as expected, that existing client queries and stored resources still return correctly, and that the same versions match across environments. Keep the test results and the package list as change evidence for your own review.

Setup sequence for installing an IG package

This sequence takes a HAPI FHIR server from an unknown state to a verified implementation guide package in a non-production instance. It ends with a written record of the package name and version that other environments can match.

  1. Confirm server version and JDK

    Check the HAPI FHIR version your server runs against the HAPI FHIR versions page and confirm the JDK that version requires. HAPI FHIR 8.2.0 requires JDK 17, but confirm the requirement for your exact version before you change anything. Run java -version on the host or inside the container and compare the result with the documentation. This step is done when the Java version matches the documented requirement and you have recorded the HAPI FHIR version in use.

  2. Choose the install path

    Decide how the package reaches the server: an uploaded package file, an install from packages.fhir.org, or the runtime $install operation in the JPA server starter. Base the choice on whether each environment can reach the public registry, how tightly the team needs to control the exact package version, and whether the package URL allow list permits the source. Uploads suit networks without outbound access because the file is carried in, while registry installs need the server to reach the registry. This step is done when the team has agreed the path for each environment and written it down.

  3. Install into a non-production instance

    Install the package into a test or staging instance that runs the same HAPI FHIR version and database type as production and holds no live patient data. Use the path you chose and note the exact package name and version you requested. Read the server startup or install logs for the result and for any error about missing dependencies or blocked URLs. This step is done when the install completes without errors and the server starts and responds normally afterward.

  4. Verify the package is listed

    Confirm the server reports the package and version you installed. Use the administrative view or query the server offers for installed packages, and check that the entry matches the name and version in your install request. If the package is missing or shows a different version, review the install logs before retrying, since a silent failure can look like success on the surface. This step is done when the installed package and version match your request exactly.

  5. Fetch sample resources from the package

    Request a few resources from the package to confirm they are retrievable. For example, if you installed US Core (illustrative), request its patient profile with a GET to [base]/StructureDefinition/us-core-patient and confirm the response returns with the expected version metadata. Then request one ValueSet that the profile binds to. Confirm the canonical URLs in your own package before running these requests. This step is done when both requests return HTTP 200 and their version matches the installed package.

  6. Record the package name and version

    Write down the package name, exact version, source, install path, HAPI FHIR version and JDK version in your environment register. Treat these values as the reference for every other environment, so production and any later instance install the same package version unless a change is approved. Keep the record with your deployment configuration so it is updated when the package changes. This step is done when another engineer can reproduce the install from the record alone.

Keeping IG versions in step across environments

An IG package on a HAPI FHIR server is only as consistent as the version each environment actually runs. The cards below cover how to pin versions, move one artifact through every environment, record what was installed, detect drift, and handle a bump when data already exists.

Pin package versions in code

Write the exact IG package name and version into the configuration or deployment code that starts the server, rather than relying on a latest or floating reference. Keep the pin in the same repository as the Docker Compose file, Helm values or Spring Boot configuration so a reviewer sees every version change in a diff. Check that the pinned version is the one listed on the IG's publication page before the first install. Confirm the exact configuration keys for your starter release in the starter documentation.

Starter repository

Promote one package artifact

Use the same package file or the same package reference in dev, test and production, rather than downloading it separately in each environment. A package fetched again later can resolve to different content under the same version label. Store the artifact or pinned reference in your artifact store or repository so the test run proves the exact bits that production will install. Record the checksum of the artifact if your pipeline can capture one.

Record versions in change records

Each change record should name the IG package, its version, the HAPI FHIR server version and the environment where the install ran. Auditors and clinical informatics teams often ask which profile version validated a given write, so the answer must be traceable to a date. Attach the pipeline run or the commit that carried the pin. Ask your change board to treat an IG version bump as a change, not as a routine dependency update.

Check drift between environments

Drift happens when a manual install, a restored backup or a hotfix leaves one environment on a different IG version than the others. Run a scheduled comparison of installed package versions against the pinned values in code, and compare the server's reported packages in each environment. Investigate any mismatch before the next promotion. Confirm how your server exposes installed package information, since the method depends on your starter release.

Handle a bump with existing data

A new IG version can change profile constraints, so resources stored under the old version may no longer conform. Before upgrading production, run a validation pass against a copy of production data on the new version and count failures by profile. Decide whether stored data is revalidated, left as is, or corrected, and document the decision. This work is separate from the install itself and often takes longer than it.

Align server version with IG version

Check the IG package's stated FHIR version and the HAPI FHIR server release before choosing an IG version, because the server's supported FHIR version and Java requirement constrain what can be installed. Plan HAPI FHIR upgrades and IG bumps together when they touch the same environment, so one change does not hide the other's failures. Read the versions page for the server release you run and confirm the JDK requirement for it.

HAPI FHIR versions

Questions teams ask before installing IG packages

How much effort does installing IG packages on HAPI FHIR take?

The effort depends mainly on how many implementation guides you install, how deep their dependency chains run, how strictly validation is applied, and how many environments must match. One core guide with few dependencies is a short, contained task. Each added guide brings more dependencies to resolve, more terminology to check and more profiles to test against real records. Validation settings add work because every enforced profile must be checked against data that already exists, and legacy records that fail often need a decision from the data owner. Environments multiply the work, since development, test, staging and production must all run the same package versions. Drift between them is where much of the rework comes from. Ask for the full list of guides, their versions and their dependencies before you estimate anything.

Can our team install IG packages on HAPI FHIR without a partner?

Yes, if your team already runs the HAPI FHIR JPA server and has engineers comfortable with Java services, relational databases and deployment pipelines. The install is mostly configuration and operations work, but confirming that the right package versions resolve, that validation behaves as intended and that legacy data is handled correctly requires disciplined testing. Many teams handle one or two guides in-house and bring in a partner when the work spans several guides, several environments or a hard audit deadline. A partner works from a written scope and should hand over a runbook your staff can repeat for later upgrades. Before you decide, check who will maintain the installed guides after the first install, who approves changes and who will be on call when a validation rule starts rejecting writes.

What does an IG package install need from our side?

The install needs five things from your side: administrative access to the server or container platform, a Java runtime that matches the HAPI FHIR version you target, network rules that let the server reach your chosen package source, a test instance with representative data, and a change process that approves the guide versions, validation settings and rollout window. The versions page lists the JDK requirement for each release. For example, the 8.2.0 release required JDK 17, so confirm the requirement for your target version before you schedule work. Outbound network rules should match your security policy, and the change process should record who approved each guide version so that environments stay aligned.

How long does an IG install take and what sets the duration?

The duration depends on the number of guides, the number of environments, how much legacy data needs review, and how long your change approvals and test cycles take. Dependency resolution and validation failures tend to take the longest, because each failure needs a fix, a retest and sometimes a decision about the data. Promotion from test to production adds time when environments are built manually or when the change board meets on a fixed schedule. Team availability matters too, especially for the people who own the database and the identity provider. Ask for a timeline tied to written milestones, such as dependency sign-off, test pass, production rollout and handover. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

Does the ID change in HAPI FHIR 8.6 affect our IG installs?

It can, if anything in your environment refers to an installed guide by its identifier. The ID change in 8.6 can affect scripts, configuration, deployment manifests, monitoring checks and runbooks that point at a specific identifier. Read the 8.6 release notes on the HAPI FHIR releases page to confirm the exact change, then search your repositories and operations documents for every identifier you use. Test the upgrade in a non-production environment first, and confirm that validation still applies to the same profiles after the change. Record the outcome so that every environment is updated in the same way.

Does installing IG packages make our HAPI FHIR server compliant?

No. An installed guide and an enforced profile help you demonstrate how data is validated, but they do not make a server compliant on their own. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records, change history, test results and runbooks. Independent auditors and certification bodies issue audit reports and certifications, so ask your assessor which evidence they expect before the install starts. Keep the guide versions, validation settings and approval records in version control so you can show what was in force on any given date.

What should we ask a partner to include in an IG install quote?

Ask the partner to state the work in writing, with the list of guides and exact versions, the dependencies they expect to resolve, the environments in scope and the target HAPI FHIR and JDK versions. The quote should also name the validation mode, how legacy data failures will be handled, and which deliverables you will receive, such as a runbook, configuration files and test evidence. Confirm what is one-time work and what recurs, such as upgrades or ongoing support, which DeployOpen offers as retainers. Check the assumptions and exclusions, who holds server access and who approves changes. DeployOpen does not publish a price list, and a quote follows from the written scope.

How an IG package moves from source to the server

The package can start in three places: a file uploaded by an operator, a download from packages.fhir.org, or an artifact staged by the build pipeline. Whichever source is used, the install step on the HAPI FHIR JPA server writes the resources into the database, which is where the server reads them during validation. Promotion then carries the same package version through dev, test and production, so check that each environment ends with the same package and version before anything is validated against it. Only the download path crosses the outbound network boundary, so that is where access rules and the package URL allow list apply.

Three package sources feed one install step, then the same version is promoted across environments.

How DeployOpen scopes an IG installation

An IG installation starts with a written scope that names every implementation guide, its exact package version, each environment it must reach and the install path to be used. For HAPI FHIR this means listing the packages to be loaded, whether they come from an uploaded file, from packages.fhir.org or from a runtime $install call in the JPA server starter, and confirming the HAPI FHIR version and FHIR version the server runs. DeployOpen records these choices together with the dependency chain each IG pulls in, because a US Core install can bring in other packages that must be pinned too. Engagements are fixed-scope, so this written scope is what the quote is built from, and changes to the list of guides or environments are handled as scope changes before work continues.

With the scope agreed, DeployOpen plans the sequence of installs and the checks that follow each one. The plan covers which packages load first, how the server is restarted or reloaded after an install, and what happens to any resources already stored that the new profiles would reject. Work is tested first on a non-production HAPI FHIR instance built to match the target configuration, including the database, the package URL allow list and the ID format used by the server version in place. Teams should confirm with their own platform owner which ID change applies to their HAPI FHIR version before testing, since the install identifiers differ across releases. DeployOpen then documents the final version alignment for each environment so that the same package set can be reproduced in production and in later upgrades.

DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. The version record and test results it produces are inputs an independent auditor or certification body may review, and the client's own compliance team decides how to use them. Teams planning an installation should ask for the written scope, the test plan and the environment version record as deliverables before any production change is approved.

How DeployOpen delivers HAPI FHIR IG work

DeployOpen plans, installs and documents implementation guide packages on a HAPI FHIR JPA server running in infrastructure you control. We scope the IG versions, package sources and environments first, then build and verify each install path so the same versions run in every environment.

How we scope

  • Inventory the implementation guides, versions and dependencies your data must conform to
  • Decide between uploading packages, installing from packages.fhir.org and runtime $install for each environment
  • Agree the written scope, deliverables and timeline before any installation work begins

How we build

  • Configure the starter, database and package sources in the environments you control
  • Install the agreed IG packages and check the resulting StructureDefinitions load on the server
  • Test the ID change in 8.6 against your existing IG resources and record the migration steps

How we hand over

  • Deliver a runbook for installing, upgrading and rolling back IG packages in each environment
  • Document the version manifest that keeps IG versions aligned across development, test and production
  • Walk your platform and integration teams through the procedure and the verification checks

How we support

  • Offer ongoing support and upgrades for IG packages as a retainer, if your team wants it
  • Retest installed IG versions when the HAPI FHIR version or your IG set changes
  • Confirm with your team the support boundaries and response expectations in the written scope

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.