What a Google Cloud Healthcare API to HAPI FHIR migration involves
A team leaving a managed Google Cloud Healthcare API FHIR store for a self-hosted HAPI FHIR JPA server should expect the effort to depend on four things: how much data sits in the store, which FHIR version the source and target use, how many systems consume the Pub/Sub notifications today, and how much validation the data must pass before cutover. There is no single answer until those four are measured. The move covers five pieces of work: exporting the FHIR store to Cloud Storage, loading the resources into the JPA server, aligning FHIR versions and profiles, replacing Pub/Sub notifications with HAPI FHIR subscriptions, and validating resource counts on both sides. This scope assumes no vendor migration tool. Your team or your partner will script the export, transform the files where needed and write the load process directly against the HAPI FHIR API.
The export and load steps are where volume matters most. The managed service writes its export as newline-delimited JSON files, and the load must preserve resource IDs and references so that links between resources still resolve after the move. Confirm the exact export format, the export location and the access rights your service account needs before you size the work. Version alignment is the step teams most often underestimate. HAPI FHIR supports DSTU2, DSTU3, R4, R4B and R5, so the target version and any profiles, search parameters or extensions that your data depends on must be checked against the HAPI FHIR documentation for the server version you plan to run. The HAPI FHIR versions page is the starting point for that check.
Notification replacement and count validation close the project. Every system subscribed to Pub/Sub notifications needs a named owner, a defined trigger and a tested replacement, whether that is a HAPI FHIR subscription or a change to the consumer. Count validation should compare resource totals per type between the source export and the target server, and it should test a sample of records for field-level equality. Ask any partner for a written list of the notification consumers, the FHIR versions in use and the validation criteria before agreeing a fixed scope, because those three lists decide most of the quote.
What maps cleanly from Google Cloud Healthcare API to HAPI FHIR
This table compares the main Google Cloud Healthcare API FHIR features with their HAPI FHIR counterparts and notes what you must configure, rebuild or confirm. Read each row as a planning item: most features have a close equivalent, but access control, notifications and audit logging need deliberate design rather than a direct switch. Confirm each behavior against the current HAPI FHIR documentation for your target version before committing to a design.
| Capability | HAPI FHIR equivalent | What to configure, rebuild or confirm |
|---|---|---|
| FHIR resource storage | JPA server backed by a relational database such as PostgreSQL or Microsoft SQL Server | Choose the database and schema settings, size storage for your data volume, and confirm that your FHIR version is supported by the JPA server. |
| REST operations (create, read, update, delete) | Standard RESTful FHIR interactions served by the JPA server | Confirm resource-level behavior such as versioned reads, conditional operations and transaction bundles against the client code you are moving. |
| Search | Built-in FHIR search with search parameters from the server's capability statement | Test each search parameter your applications use, and confirm any custom search parameters or profile-specific behavior are rebuilt. |
| History | Resource and server history served by the JPA server | Confirm how far back history must be retained and whether history expunge or retention rules match your policy. |
| Bulk export | Bulk data export through the server's $export operation, with files written to storage you configure | Export output and file layout differ from Google's Cloud Storage output, so confirm how the files will be read and loaded. |
| Pub/Sub notifications | FHIR subscriptions configured on the server, delivered to endpoints you operate | Rebuild every notification consumer, define the channel and endpoint, and test delivery, retries and message ordering in your environment. |
| IAM-based access | No single built-in IAM layer; access is built from authentication and AuthorizationInterceptor, consent and search narrowing interceptors | Design the access model, connect an external identity provider, and test every role against real requests because the security controls are assembled, not inherited. |
| Audit logging | BALP audit logging and standard server logs, added through interceptors and log pipelines | Cloud audit logs do not carry over automatically. Confirm what must be logged, where logs are stored, and who reviews them. |
Documented export and import paths for this move
The move has four documented touchpoints: exporting from Google Cloud, transporting files, loading through the FHIR REST API and checking the result. Each one has its own options and limits, so confirm them in the current vendor documentation before you set a schedule.
Google Cloud FHIR bulk export
The source side is the FHIR bulk data export operation run against the Google Cloud Healthcare API FHIR store, which writes NDJSON files to a Cloud Storage bucket you name. Confirm which resource types, output formats and filters the current release supports, and whether the export runs at the store or group level. Check that the bucket location, IAM permissions and object naming suit the load job that follows.
Cloud Storage transfer
Exported files stay in Cloud Storage until you copy them to the network where HAPI FHIR runs. Plan the transfer path, encryption at rest and in transit, and retention of the export bucket, since the files contain full patient records. Confirm any egress costs and bucket lifecycle rules with your Google Cloud administrator before the first large copy.
FHIR REST API for loading
The load target is the HAPI FHIR JPA server REST interface, which accepts create, update and conditional operations for each resource type. Decide whether your loader posts individual resources or grouped requests, and confirm how the server handles resource IDs supplied in the export. Check the server's configured request size and timeout limits in HAPI's documentation before you size batches.
JPA server docsTransaction bundles
Transaction bundles group many resources into one atomic request, so a failed entry rolls back the whole bundle. Use them to keep references between resources intact and to control load order, for example Patients before Encounters. Confirm the maximum bundle size and the transaction behavior for your HAPI FHIR version, because the server's limits govern how you split the NDJSON files.
Count and version validation
After loading, compare resource counts per type against the export manifest and spot-check a sample of resources for field-level parity. Record the HAPI FHIR version and the FHIR release of the data, because a version mismatch can change how resources validate. Confirm the verification method with your data governance team before the cutover window is set.
Sequence for exporting, loading, running in parallel and cutting over
This sequence moves a Google Cloud Healthcare API FHIR store onto a self-hosted HAPI FHIR JPA server in an order that proves the data is complete before any consumer depends on the new server. Each step closes with a check, so the cutover decision rests on evidence rather than on a single export run.
Inventory resource types and profiles
Your team lists every resource type in the source FHIR store, the count per type, the FHIR version the store reports, and every profile, extension and search parameter your applications rely on. Confirm the source store's FHIR version in its metadata before choosing a HAPI FHIR release, because the target must support the same version. The output is a signed-off inventory that defines what counts as a complete migration. Done means every type and custom profile has an owner and a target behavior, and the list is stored with the project records.
Run a pilot load into HAPI FHIR
Deploy a non-production HAPI FHIR JPA server using the hapi-fhir-jpaserver-starter with PostgreSQL or Microsoft SQL Server, then load a representative subset of the export, including patients with complex references, into it. Your engineers check which resources fail validation, which references break, and how long the load takes per resource type. Done means the pilot results are documented, every failure class has a fix or an accepted exception, and the team has confirmed the JDK and HAPI FHIR release match the target version plan.
Check FHIR version and profile alignment
Compare the source store's FHIR version, the server's supported versions, and the profiles used by your applications against what the HAPI FHIR server validates and stores. Confirm search parameters that clients use still resolve on the target, and document any differences in terminology bindings or extensions. Your architects and application owners sign off on each difference. Done means a written parity list exists with each gap classified as fixed, accepted, or blocking, and no blocking gap remains open.
Export and load the full store
Run the full bulk export from the Google Cloud Healthcare API to Cloud Storage, then load the NDJSON files into HAPI FHIR in an order that keeps references resolvable, such as loading referenced resources before resources that point to them. Keep the export files and load logs under change control so the run can be repeated. Done means the load finishes without unexplained errors and the logs, file manifest and export timestamp are archived together.
Validate counts and references
Compare resource counts per type between the source store and HAPI FHIR, then run reference checks to find dangling or mismatched references between resources. Sample individual records across several types and compare their content field by field. Your data owners review any variance that the logs do not explain. Done means counts match for every type in the inventory, or each difference has a documented cause, and the sampled records pass the comparison.
Run in parallel with subscriptions
Replace each Pub/Sub consumer with a FHIR subscription on the HAPI FHIR server that delivers the same resource events to the same downstream systems. Keep the managed store receiving writes while both servers run, and compare the events each side produces for the same changes. Your integration engineers confirm that delivery, retries and message content match what the existing consumers expect. Done means every consumer receives events from the new path in the parallel run and the team has reviewed the differences.
Cut over applications to HAPI FHIR
Switch application endpoints, client credentials and authentication settings to the HAPI FHIR server during a planned window, and freeze writes to the managed store for the final delta. Load any changes made after the full export, then rerun the count and reference checks. Your operations team watches error rates and access logs during the first production period. Done means applications read and write only against HAPI FHIR and the post-cutover checks pass.
Decommission the managed store
Once the cutover has been stable for a period your organization agrees in advance, retire the Pub/Sub topics, subscriptions and service accounts that no longer serve a consumer, then remove the Google Cloud Healthcare API FHIR store. Retain the final export and reconciliation reports according to your records policy and confirm the retention terms with your compliance team. Done means the store is deleted, access is revoked, and the retained evidence is filed.
How the export, load and notification paths fit together
The diagram starts at the Google Cloud FHIR store, which is exported as NDJSON files to Cloud Storage. Those files are transformed and loaded into a HAPI FHIR JPA server backed by PostgreSQL or SQL Server. A parallel path replaces Pub/Sub notifications with FHIR subscriptions that feed existing consumers. Before cutover, resource counts from the source store and the target server are compared, and any gap is resolved before traffic moves.
Export, load, notification and count validation paths between Google Cloud and HAPI FHIR.
How FHIR version alignment decides the load plan
The FHIR version of the data you export from Google Cloud Healthcare API sets the HAPI FHIR release you must target before any load starts. HAPI FHIR JPA covers DSTU2, DSTU3, R4, R4B and R5, so a store that holds R4 resources needs a HAPI release whose JPA server supports R4 with the same resource definitions, search parameters and profiles. Check the fhirVersion of the FHIR store you are migrating (it is set when the store is created) and record it alongside the export files. Do not assume that the newest HAPI release is the right target, because the data version, the server's supported versions and the packages you install all have to agree.
Confirm the target release against the HAPI FHIR versions page and the release notes on GitHub before you choose a build. HAPI FHIR 8.2.0 and newer require JDK 17, so the Java runtime in your base image, application server and build pipeline must be checked first. A JDK mismatch fails at startup, not during the load, which makes it cheap to catch early and expensive to discover after the export is staged. Also confirm which database engines the starter supports for production, since the starter defaults to an embedded H2 database and the production choices are PostgreSQL and Microsoft SQL Server.
The version you choose also sets your upgrade path for years. A target that is already at the newest release may need a different upgrade sequence than one that is several releases behind, and the schema migrations that follow a version change apply to every resource you loaded. Ask your partner or internal team to write down the target release, the JDK version, the database version and the upgrade plan together, and to treat that record as a change-controlled decision. Revisit it if Google Cloud's resource versions or your clinical profiles change during the migration window.
Questions teams ask before moving off Google Cloud Healthcare API
How much does it cost to move from Google Cloud Healthcare API to HAPI FHIR?
No public figure is available for this migration, and the cost depends on the scope you agree in writing. The main components are the export and load work, FHIR version and profile alignment, replacing Pub/Sub notifications with subscriptions, validation, infrastructure you run yourself, and cutover support. Your own engineers' time is a cost even when no invoice is raised. Ask any partner for a quote built from a written scope that lists each of these components separately, and confirm which parts are one-time and which recur.
How long does a Google Cloud Healthcare API to HAPI FHIR migration take?
Duration is driven by the size of the FHIR store, the number of resource types and custom profiles in use, how many integrations subscribe to Pub/Sub notifications, and how much parallel running you need before cutover. Stores with few profiles and a small number of consumers are simpler than stores with heavy search customization and many downstream systems. No duration is stated here because none is supplied. Ask for a timeline tied to phases in the written scope, and confirm which milestones require your sign-off.
What does our team need to provide during the migration?
Your team needs to supply access to the source FHIR store and the Cloud Storage bucket used for exports, the target infrastructure you control, and a list of every system that reads from or writes to the store. Clinical or data owners must confirm which profiles, extensions and search parameters count as in scope. Security and compliance staff should approve the identity, audit and network design before data moves. Expect to name a technical owner for each integration so that subscription behavior can be tested against the business process it supports.
Can our own engineers run this migration in-house?
Yes, if your team has Java and Spring operations experience, PostgreSQL or Microsoft SQL Server administration skills, and working knowledge of FHIR resources, bulk export and subscriptions. The HAPI FHIR JPA server starter can be deployed with the hapiproject/hapi Docker image, with Docker Compose, with Spring Boot, as a WAR on an application server, or on Kubernetes with a Helm chart, so the deployment choice should match the skills you already run. Teams without FHIR load experience often underestimate validation and reference repair. Confirm your skills against the work list before deciding.
How do we validate that every resource arrived after the load?
Validation should compare counts per resource type between the exported files and the HAPI FHIR server, then check that references resolve and that a sample of resources matches the source field by field. Count checks alone can hide missing references or altered extensions, so add spot checks on patients with linked encounters, observations and documents. Keep the export manifest, load logs and failed-entry lists as evidence. Confirm with your partner or internal team which count method and sample sizes will be used, and who signs off the result.
How is partitioning handled, and what about security after the move?
HAPI FHIR JPA partitioning places each resource in a partition, which can support multitenancy, separate data sources or group data by region. Decide the partition model before loading, because changing it later affects how data is stored and searched. HAPI FHIR does not provide one security layer for the whole server. Authentication, the AuthorizationInterceptor, consent and search narrowing interceptors, CORS and BALP audit logging are building blocks you configure and test. Google Cloud IAM and audit settings do not transfer automatically, so you must design access control again.
Which recurring costs appear after cutover?
After cutover, the recurring costs are the compute and storage you run for the HAPI FHIR server, the database service and its backups, monitoring and log retention, and staff time for upgrades, security patching and reindexing. Java and database versions also need planning, since HAPI FHIR 8.2.0 requires JDK 17. If you want commercial support, the HAPI FHIR README points to Smile CDR, which is a separate arrangement. Ask any partner for a support and upgrade scope with the same written detail as the migration itself.
Are Pub/Sub notifications replaced one for one by HAPI FHIR?
Not automatically. Pub/Sub notifications from Google Cloud Healthcare API must be inventoried and mapped to FHIR subscriptions or equivalent handlers on your server, and each consumer must be tested for the events it receives. Delivery behavior, retry handling and message ordering can differ, so plan a parallel run and confirm the behavior of each subscription type in the HAPI FHIR documentation for your chosen version before retiring the old path.
What usually goes wrong in this migration and how to prevent it
Most failed FHIR migrations fail in a handful of predictable places: version drift, identifiers, profiles, notifications, access and sizing. Each card below names one of these risks, why it matters when moving from Google Cloud Healthcare API to HAPI FHIR, and the check that catches it before cutover.
Mismatched FHIR versions
The Cloud Healthcare FHIR store and the HAPI FHIR server must agree on FHIR version, or resources will be rejected or silently reshaped on load. Confirm the version of the source store, then choose a HAPI FHIR JPA server build that supports that version. Check the version table in the HAPI FHIR docs against your store before you export anything, and keep a record of the chosen version for the upgrade plan.
HAPI FHIR versionsLost references or IDs
Resource IDs and references are the glue between patients, encounters and observations. If the load process generates new IDs or drops references to resources not yet loaded, the data loads cleanly but links break. Test a sample of cross-resource references after each load batch, and confirm that IDs are preserved in the target server's configuration before the full load begins.
Unvalidated profiles
Resources that passed validation in Google Cloud may fail the profiles or implementation guides you configure in HAPI FHIR, particularly if your store uses custom profiles or US Core. Decide which profiles the target must enforce, load the IGs you depend on, and run a validation pass over a representative export. Record the rejections, since they are often the first signal of a data-quality issue upstream.
Missed Pub/Sub consumers
Google Cloud Pub/Sub notifications may feed downstream systems that nobody has listed, such as analytics jobs, alerting or partner feeds. Inventory every topic subscription on the FHIR store, then map each one to a FHIR subscription or an equivalent consumer on HAPI FHIR. Cut over one consumer at a time, and confirm each downstream system receives the expected events before retiring the original topic.
Authentication and IAM gaps
Google Cloud IAM roles protect the managed store, but they do not carry over to HAPI FHIR. Client applications, service accounts and admin users need new credentials and access rules, which HAPI FHIR does not supply as one complete security layer. Design the authorization model, identity provider integration and audit logging before cutover, then test each client's access, including denied requests, against the new server.
HAPI FHIR security docsIncomplete count checks
Comparing a total resource count is not enough to prove a migration is complete. Counts can match while individual resources are missing, duplicated or altered. Compare counts per resource type, check for resources that failed on load, and sample-verify content and references. Keep the export manifests and load logs as evidence, since they show what was moved and when.
Underestimated database sizing
A HAPI FHIR JPA server stores resources, history and search indexes in a relational database, and that footprint can exceed the size of the raw NDJSON exports. Size storage from a measured export of your store, plus history, growth and index overhead, rather than from resource counts alone. Confirm the supported database choice (PostgreSQL or Microsoft SQL Server for production) and test the load on a production-like instance before scheduling cutover.
JPA server introductionHow DeployOpen works on this
DeployOpen approaches this migration as a fixed-scope engagement in which the source Google Cloud Healthcare API FHIR store, the target HAPI FHIR JPA server and the notification replacement are agreed in writing before work starts. The work runs inside your own cloud accounts, data centers or air-gapped networks, and the deliverables are documented so your team can operate the result.
How we scope
- Inventory the FHIR stores, resource types, Pub/Sub topics and client applications that depend on the Google Cloud source.
- Agree the target FHIR version, database choice and hosting model for the HAPI FHIR JPA server before the build starts.
- Record in writing the count checks, cutover approach and acceptance criteria that define a completed migration.
How we build
- Set up the export to Cloud Storage and load the resources into a HAPI FHIR JPA server in your environment.
- Map each Pub/Sub notification to a FHIR subscription and test that downstream consumers receive the same events.
- Run resource count and reference validation between source and target, and record every mismatch with its fix.
How we hand over
- Deliver configuration, deployment files and runbooks for the HAPI FHIR server, written for your operations team.
- Document the validation evidence, including counts by resource type, so your compliance and security reviewers can inspect it.
- Walk your engineers through cutover steps, rollback options and open items agreed in the written scope.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the migration is complete.
- Plan HAPI FHIR version upgrades and schema changes as a separate, scoped piece of work when your team is ready.
- Confirm with us during scoping which post-cutover support and monitoring tasks your team will keep in house.

