Why teams load ICD-10 into HAPI FHIR and what the load involves
Teams load ICD-10 into a HAPI FHIR server when they need diagnosis codes checked by the server itself rather than by each application. A FHIR server holding the WHO ICD-10 ClaML release or the US ICD-10-CM files can answer terminology requests such as code lookup and code validation, so that intake forms, clinical systems and data pipelines all check a diagnosis code against the same copy. The choice between the two sources depends on where the data is used. ICD-10 from the WHO is the international classification, while ICD-10-CM is the US clinical modification that many US organizations code against. Decide which one your records and reporting actually require before any file is downloaded.
In HAPI FHIR, the JPA server stores a loaded code system in its database and serves it through its terminology services, which is what makes operations such as lookup and validation available to clients. The load itself is not a single step. You will need to decide how each code system is identified by its system URL and version, how the files are converted or imported into the form the server expects, and how a later release will sit alongside the current one. Confirm the exact tooling, file handling and operation behavior in the HAPI FHIR documentation for the version you run, since the HAPI FHIR JPA server introduction is the place to check how terminology services are described.
Before starting, run a short check with your own team. Confirm which ICD-10 source your downstream systems expect, which HAPI FHIR version and JDK your platform supports (the project documents JDK 17 for version 8.2.0), and whose job it is to review each new release when it is published. Plan a test load on a non-production database, then validate a sample of codes your systems actually send, including codes that were retired or revised, so you know how the server responds before clients depend on it.
Which ICD-10 source file and load path fit your environment
This table compares the WHO ICD-10 ClaML files, the US ICD-10-CM files and the choice between a shared JPA server and a dedicated terminology instance. Read each row as a decision: find the source that matches your jurisdiction and coding use, then check the licensing, format and URL questions before choosing the load path.
| Option | When it fits | What to confirm | Main trade-off |
|---|---|---|---|
| WHO ICD-10 ClaML | International reporting, or systems outside the United States that code diagnoses against the WHO classification | Licence and redistribution terms for the ClaML files, the ClaML version you received, and the system URL and version string your consumers expect | 국제 classification structure differs from national clinical modifications, so US billing codes may be missing or mismatched |
| US ICD-10-CM files | US clinical and claims coding, where diagnosis codes carry the national clinical modification | Current federal release files and their file layout, the code system URL convention you will publish, and whether your payers expect a specific version | Frequent annual updates mean a recurring load and version-rollover task that must be scheduled and tested |
| Shared JPA server | Several applications already use one HAPI FHIR server and need the same diagnosis code validation | Partition or tenant design for terminology content, load permissions, and whether all consumers can see the code system | Any reload or version change affects every client, so change control and testing become shared responsibilities |
| Dedicated terminology instance | Validation load or update cadence should be isolated from clinical data, or one team owns all terminology content | Sizing for code system and expansion load, how consumers call $validate-code, and the update routine for each release | A second server to deploy, patch and monitor, with its own database and access controls |
| Single version loaded | Your rules only need one classification release at a time | Which version consumers pin to and how you will retire it when a new release arrives | Simpler operations, but older claims or records coded against a prior version may fail validation |
| Multiple versions side by side | Historical data or payer rules require older releases to remain valid alongside the current one | Version-specific system URLs, how operations choose a version, and storage growth from retained releases | More precise validation, but clients must specify versions and storage and test effort increase |
How to set up an ICD-10 code system in HAPI FHIR
This sequence takes a team from a compatible HAPI FHIR JPA server to a loaded ICD-10 code system that answers lookup and validation calls for known diagnosis codes. Each step ends with a check you can run before moving on.
Confirm the FHIR version and JDK requirement
Before anything is installed, the platform team picks the HAPI FHIR release and confirms the FHIR version and Java runtime it requires. The HAPI FHIR versions page lists the JDK each release needs, and HAPI FHIR 8.2.0 requires JDK 17, so confirm the requirement for the exact release you plan to run. Record the chosen release, the FHIR version your clients use, and the JDK in your build image. The step is done when the JDK on the target host or container reports the version the release documentation specifies, using
java -version.Prepare the database and JPA server deployment
The platform team provisions a supported database and deploys the JPA server starter in the environment you control. The starter defaults to an embedded H2 database, which is suited to trials only, so use PostgreSQL or Microsoft SQL Server for anything shared. MySQL is not supported. Confirm the server starts, connects to the database and answers a capability request at the metadata endpoint. The step is done when a GET on
/fhir/metadatareturns a CapabilityStatement and the database tables have been created.Obtain and verify the ICD-10 source files
The terminology lead downloads the WHO ICD-10 ClaML files for the international edition and, if you need US coding, the ICD-10-CM files published for the US. Record the publisher, edition year and download date, and keep the original archives unchanged in your artifact store. Compare checksums against the values the publisher lists, and open the ClaML or XML structure to confirm it parses and contains the expected concept count for that edition. The step is done when the checksums match and a sample of codes such as a known chapter heading is visible in the file.
Decide the system URL and version string
The terminology lead and the integration team agree the canonical system URL and version string for each ICD-10 edition before any upload. Choose one URL per classification, keep the version string tied to the publisher's edition, and write the decision into your terminology register so clients refer to the same values. Confirm with the owners of downstream systems which URL their ValueSets and claims use, because a mismatch causes validation to fail silently. The step is done when the register lists each system URL, version and source file, and every consuming system has acknowledged the values in writing.
Upload the ICD-10 code system
The platform team uploads the verified files to the JPA server using the tooling and terminology upload path that matches the HAPI FHIR release in use, and sets the system URL and version chosen in the previous step. Run the upload against a non-production instance first and capture the job output, including any warnings about unmapped or duplicate concepts. Check the server logs for errors that indicate a partial load. The step is done when the upload job reports completion and the CodeSystem resource is retrievable with the agreed version.
Check known codes with lookup
The integration team runs a
$lookupcall against the CodeSystem for a set of diagnosis codes they know are correct, such as codes from several chapters of the classification. Confirm the returned display text, the system URL and the version match the source file. Include at least one code that is a parent heading and one that is a billable or leaf code, since these behave differently in US coding. The step is done when every test code returns the expected display and version, and any mismatch is logged as a defect against the upload.Validate diagnosis codes with validate-code
The integration team runs
$validate-codeagainst the loaded system for valid codes, invalid codes and codes that were retired or do not exist in the chosen edition. They also send one request with a wrong version to confirm the server rejects or flags it as the design expects. Keep the request and response pairs as a regression set for future loads. The step is done when valid codes pass, invalid codes return a clear failure, and the regression set is stored with the terminology register so the next edition can be checked the same way.
How the ICD-10 files move from source to code validation
The diagram starts with the code set files taken from the publisher, which the operator downloads and checks before any load. The load step writes them into the HAPI FHIR JPA server, where each code system is assigned a versioned system URL and stored in the relational database behind the server. Client applications then call code validation through the server's authorization layer, which sits inside the trust boundary. Check that each version maps to the right system URL before clients depend on it.
Source files flow through the operator's load step into the server, with validation requests passing the authorization layer.
Choosing between WHO ICD-10 and US ICD-10-CM by audience
For teams outside the United States, the WHO ICD-10 classification is usually the source that matters, because national reporting, coding rules and local modifications are typically built on it. Validation against WHO ICD-10 works through a hierarchy of chapters, blocks and categories, with inclusion and exclusion notes that guide coders. Your national health authority may also publish its own modification, so the first question is which code set your reporting obligations actually reference.
- Source of record: Confirm which national authority mandates the code set and whether a national modification sits on top of the WHO base.
- Structure: WHO ICD-10 is distributed as a ClaML classification file, a hierarchical format that the loader must parse as a tree rather than as a flat list.
- Granularity: Expect fewer codes at the leaf level than in US ICD-10-CM, so validation rules written for US detail may reject valid local codes.
- Distribution terms: Check the license and redistribution conditions for the WHO release you plan to load, and whether national translations carry separate terms.
- Translations: Confirm which language version your clinicians and partners use, because display text and designations can differ between releases.
Check which edition your reporting partners and national authority expect before you choose the system URL and version string.
US providers and payers generally need ICD-10-CM for diagnosis coding on claims, encounters and problem lists. ICD-10-CM extends the WHO ICD-10 structure with additional codes, including more specific leaf-level codes that clinicians and billing staff select. Validation for this audience has to cover the full clinical modification, because a code that exists only in ICD-10-CM will fail a check against the WHO file.
- Billing level: Claims and encounter data use the most granular ICD-10-CM codes, so validation should target the complete code set, not a summary subset.
- Annual cycle: ICD-10-CM is updated on a yearly cycle, so confirm the effective dates for each release and how your payers and clearinghouses adopt them.
- Publication format: US government sources publish ICD-10-CM as tabular and index files, so the loading pipeline must handle that format in addition to any ClaML input.
- Procedure codes: ICD-10-PCS is a separate code set used for inpatient procedures, so confirm whether it falls within this load or is planned separately.
- Licensing and sharing: Confirm the terms for using the code set inside your environment, including any sharing with EHR vendors, clearinghouses or analytics partners.
Confirm with your revenue cycle and compliance owners which release each payer will accept on the claim date.
Organizations that operate across borders, such as a US payer with international members or a digital health company serving several markets, often need both editions. Keeping them separate prevents a code from one edition passing validation against the other, and it gives auditors a clear record of which edition each decision used. The two classifications do not map one-to-one, so combining them in a single code system is rarely the right design.
- Separate identifiers: Give each edition its own system URL and version so every validation result names the edition it used.
- Crosswalks: Decide whether a mapping between the two editions is needed, who owns it and how it is reviewed when either source changes.
- Routing rules: Define which edition each application, region or business line validates against, and record that decision where engineers and auditors can find it.
- Release schedules: Plan how each edition moves to new releases, because the two sources update on different timelines.
- Licensing and storage: Each additional load adds a licensing review, a storage footprint and a set of update tasks to your plan.
Ask the business owner which markets and payers the platform will serve before you decide whether one edition or both belong in the first release.
How system URLs and versions keep ICD-10 validation stable
Each loaded ICD-10 edition needs its own stable canonical system URL and an explicit version, because a validation call that omits the version can match a code against whichever edition the server treats as current. A diagnosis code such as one that was valid in an earlier release may be retired or re-described in a later one, so a silent match across editions produces claims that look correct but were coded against the wrong classification. Decide the system URL and version naming before the first upload, and write them into a short register that covers the WHO ICD-10 ClaML edition and the US ICD-10-CM edition separately, since they are distinct code systems with different publishers and release cycles. Confirm the exact canonical URLs and version strings your load tooling expects against the HAPI FHIR documentation for your release, rather than inventing them.
For version naming, pick a scheme that states the publication year or release identifier as published by the source and never reuses a label for different content. Keep the previous edition loaded during a transition so that claims coded against it can still be validated, retired or re-coded on a schedule your coding and billing teams agree. Plan the overlap window explicitly and record which applications still depend on the older version, so that removing it becomes a tracked change instead of an accident. Test the server's default behavior when no version is supplied, because that default decides what happens to clients you have not yet updated.
In client applications, verify that every validation or lookup request sends both the system URL and the version it intends, and that the value comes from configuration rather than hard-coded strings scattered through the code. Check that the response's version matches the request, and treat a mismatch or a missing version as a failure to investigate, not a success. Run a test set of known codes that changed or were retired between the two editions, and confirm each client rejects or flags them as expected. Finally, document which teams own each client's version setting so that a future edition change is reviewed by the people who will feel its effects.
Securing who can load and validate against ICD-10
Loading ICD-10 code systems into HAPI FHIR changes what every downstream validation step accepts, so upload rights, audit trails and network exposure need to be designed before the first load. HAPI FHIR supplies building blocks for these controls, not a finished security layer, so each card below is a decision your team owns.
Restrict who can upload or delete
Uploading a CodeSystem or running the terminology upload operation replaces what clinical systems validate against, so limit those rights to a small named group of terminology administrators. Map the roles in your identity provider to explicit server permissions, and deny delete and upload to every application account that only needs read access to $validate-code and $lookup. Check the rule in a test environment by attempting an upload with a read-only account and confirming it fails.
Enforce roles with AuthorizationInterceptor
The AuthorizationInterceptor is the HAPI FHIR building block for resource-level rules, and it decides which operations a token may call. Write rules that separate terminology write operations from read operations, and test each rule against the operation names your loader actually uses. Confirm the interceptor covers the operation endpoints as well as ordinary resource endpoints, because a rule that only guards resource writes can leave the upload path open.
HAPI security docsConnect an external identity provider
Terminology administrators should sign in through your organization's identity provider rather than through shared server credentials. Ask the identity team to issue separate service accounts for the ICD-10 loader and for clinical applications, with short-lived tokens for each. Confirm how group or role claims map into the authorization rules, and review who holds membership in the administrator group on a set schedule.
Log administrative changes with BALP
BALP audit logging records who accessed or changed FHIR data, which gives you a trail for every upload, version addition and delete of an ICD-10 edition. Confirm that the log captures the account, the time, the operation and the resource, and that it is written somewhere the terminology team cannot edit. Decide in advance who reviews the log and how often, because an audit trail that nobody reads does not show that a change was authorized.
Protect the terminology database
The relational database behind the server holds every loaded ICD-10 concept, designation and version, so it needs the same protection as other clinical data stores. Restrict database access to the HAPI FHIR server's service account, encrypt connections and storage, and back up the database on a schedule you can restore from. Verify that a restored copy returns the same results for a set of known diagnosis codes before you rely on it.
Control network access and change review
Place the server behind a reverse proxy or gateway that exposes only the FHIR endpoints clinical systems need, and keep the upload endpoints reachable only from the administration network. Before a new ICD-10 edition replaces the current one in production validation, run the new version in a staging instance, compare validation results for a sample of codes, and record the approval. Ask your team to confirm that the change review step blocks promotion until the approval is recorded.
Questions teams ask before loading ICD-10 into HAPI FHIR
What drives the cost of loading ICD-10 into HAPI FHIR?
The cost depends mostly on how many code systems you load, how clean your source files are, and how many systems will validate against them. The main work is acquiring the correct WHO ClaML or US ICD-10-CM files under the right licence terms, mapping their version and system URLs, writing validation rules for your diagnosis fields, changing client code that sends codes, and testing against real claims or record samples. Each item is paid as labour, and some are one-time while server hosting and periodic edition updates recur. When you request a quote, ask for each item to be listed separately, the editions in scope, which systems will call the server, and how test cases will be agreed and signed off.
How long does an ICD-10 load into HAPI FHIR usually take?
Duration is set by the number of editions, the state of your client systems, and how much validation behaviour has to be agreed before build starts. A single edition loaded into a test server with clean source files is a much smaller job than several editions with version-aware validation, client changes and sign-off from coding staff. Ask any provider to break the timeline into source acquisition, loading and verification, client integration, testing and handover, and to name the dependencies in each step. Treat any duration given without that breakdown as unverified.
What must our team provide before an ICD-10 engagement starts?
You will need to provide infrastructure, a licensing decision, and people who can sign off on coding behaviour. On infrastructure, confirm where the HAPI FHIR JPA server will run and which database it will use, since the starter supports PostgreSQL and Microsoft SQL Server for production. On licensing, confirm which ICD-10 distribution you are entitled to use, particularly for US ICD-10-CM, and who holds that decision. On sign-off, name a clinical coding lead who will approve which codes are valid, how billing-only or non-billable codes are treated, and which test cases define success. Confirm each of these with the source publisher and your own compliance team rather than assuming.
Can an internal team load ICD-10 into HAPI FHIR without a partner?
Yes, a capable internal team can load ICD-10 without a partner if it has FHIR server experience, Java and database operations skills, and access to a clinical coding lead. The public HAPI FHIR documentation and starter project describe the components involved, and the work is mostly configuration, data handling and testing rather than new software. The harder part is usually the terminology decisions: version strategy, validation strictness and client behaviour. Teams without a coding lead or without time for regression testing often find the cost of those gaps exceeds the cost of outside help.
How do we compare an in-house ICD-10 build with a fixed-scope engagement?
Compare both options against the same written scope: source files, editions, server environment, client changes, test cases, documentation and handover. For the in-house option, price your engineers' time, the coding lead's review time, infrastructure, and the cost of rework if the first load is wrong. For a fixed-scope engagement, compare the quoted deliverables, what is excluded, who owns the server after handover, and how changes to scope are priced. DeployOpen plans, implements, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. A quote follows from that written scope.
Which mistakes most often cause ICD-10 validation failures after go-live?
The most common failures come from mismatched system URLs and versions, clients that send codes from a different edition than the server holds, and validation rules that were never tested against real data. Other frequent problems include loading an edition without confirming its licence terms, treating billable and non-billable codes the same way, and skipping regression tests after a new edition arrives. Plan a test set that includes retired and newly added codes, confirm which version each client requests, and record the version used for every validation so that failures can be traced to a specific edition.
Does a HAPI FHIR server handle security for ICD-10 data by itself?
No. HAPI FHIR does not provide a single security layer; it offers building blocks such as authentication interceptors, the AuthorizationInterceptor, CORS support and BALP audit logging. Access to the terminology endpoints, administrative operations and any patient-linked data must be designed by your team. Decide who can upload new editions, who can call validation operations, and how those actions are logged. Review the HAPI FHIR security introduction and map each control to your own policies before the server receives production traffic.
Limits to confirm in your environment before loading ICD-10
ICD-10 content arrives from a publisher, runs on a specific HAPI FHIR and JDK combination, and is only useful if your applications call the operations you expect. The cards below are questions to settle with the publisher, the documentation and your own team before any file is uploaded.
Licensing and redistribution terms
Confirm the license and redistribution terms of each ICD-10 edition you plan to load, separately for the WHO ICD-10 release and the US ICD-10-CM release. Ask whether the terms allow storing the content on a server you operate, whether it may be copied into a shared terminology service, and whether any attribution or notice must appear in your applications. Record the answers with the publisher's current terms, since they decide who may receive the content and under what conditions.
Current file format and version
Ask the publisher which file format and release each ICD-10 edition is currently distributed in, and whether the WHO ClaML files and the US ICD-10-CM files use the structure your loader expects. Confirm the version identifier the publisher assigns, because it becomes part of the system URL and the version your validation calls reference. Check the release notes for code additions, deletions and changes before you choose a version string.
HAPI FHIR version and JDK requirement
Confirm which HAPI FHIR release you will run and the JDK it requires. The HAPI FHIR version documentation states that 8.2.0 requires JDK 17, but newer releases may change that requirement, so check the release notes for the exact version you deploy. Match the JDK, the JPA server starter and the database driver to the same release before you load terminology content.
HAPI FHIR versionsTerminology operations your applications call
List the terminology operations each client application calls, such as $lookup, $validate-code and $expand, and the code system and value set versions each call passes. Confirm that the HAPI FHIR JPA server supports each operation in the release you plan to run, and confirm whether clients send a version parameter or rely on the server default. The answers determine which ICD-10 resources must exist and how they must be versioned.
Sharing the code system with other servers
Decide whether the ICD-10 code system will live only on this JPA server or be shared with other FHIR servers, validators and consuming systems. A shared service needs agreed system URLs, a documented version policy and a clear owner for updates. Check the licensing answers from the first card before sharing, because redistribution to other systems may be governed differently from internal use.
Testing validation results
Define how the team will test that diagnosis codes validate as expected before the server goes into use. Prepare a reference set of valid, retired and invalid codes from the publisher's files, and record the expected result for each. Repeat the tests after every version change, and make sure someone outside the build team reviews the results, since a wrong code system version can silently accept or reject diagnoses.
How DeployOpen scopes and delivers ICD-10 terminology work on HAPI FHIR
DeployOpen plans, builds and hands over ICD-10 and ICD-10-CM loading on a HAPI FHIR JPA server running in infrastructure you control. Each engagement starts from a written scope that names the code system versions, the server deployment and the validation tests your systems need.
How we scope
- Confirm which ICD-10 or ICD-10-CM releases your systems need, and which source files your licenses and internal rules allow you to load.
- Agree in writing which HAPI FHIR version, database and deployment target the ICD-10 work will run on.
- List the systems that will call $validate-code or $lookup, so test cases reflect real diagnosis coding workflows.
How we build
- Load the WHO ICD-10 ClaML files and the US ICD-10-CM files with a defined system URL and version for each release.
- Test diagnosis code validation against known valid, retired and billable codes, and record the results.
- Document the load commands, configuration and version mapping so your team can repeat the load on a new release.
How we hand over
- Deliver the written configuration, load runbook and validation test results as part of the agreed deliverables.
- Walk your platform and clinical informatics staff through how code system versions are selected in requests.
- Record open decisions, such as version pinning and update timing, so your team owns them after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the initial build.
- Confirm with DeployOpen during scoping whether a retainer should cover new ICD-10-CM releases and HAPI FHIR upgrades.
- Ask for a quote that lists one-time build work separately from recurring support effort.

