Migrate to FHIR Schema
Entity & Attributes and Zen Schema are planned to be retired and will be replaced by FHIR Schema. Here’s a migration guide to help you transition your custom resources defined via Entity & Attributes / Zen Schema.
Migration Overview
The migration process involves six key steps:
Identifying deprecated capabilities
Setting up a parallel environment with FHIR Schema
Migrating profiles
Migrating custom resources
Migrating search parameters
Validating resources and resolving issues
Step 1: Identify Deprecated Capabilities
First, obtain a comprehensive list of all your EA and Zen components that will need migration:
Example response:
Step 2: Set Up Parallel Environment with FHIR Schema
Launch a parallel Aidbox instance configured to use the FHIR Schema, connected to the same database and the same Zen configuration project (if you have one).
Below is an example of a docker-compose
file with two Aidbox instances running on the same database: the first Aidbox (aidbox_zen
) is configured with a Zen configuration project and uses Zen validation mode, while the second (aidbox_schema
) is set up to use the FHIR Schema.
For detailed FHIR Schema engine configuration instructions, refer to the FHIR Schema setup documentation.
Step 3: Migrate FHIR Packages to FHIR Schema
Set FHIR core packages using an environment variable:
Step 4: Migrate Custom Resources
If you have custom resource defined by Entity & Attributes, follow this guide
Migrate custom resources defined with Entity & Attributes to FHIR SchemaIf you have custom resource defined by Zen, follow this guide -
Migrate custom resources defined with Zen to FHIR SchemaStep 6: Validate Resources and Resolve Issues
Since FHIR Schema validation engine is more reliable and validates all the FHIR container cases, we need to validate existing data with FHIR Schema. To do it use Aidbox Asynchronous Validation API.
Check deprecated capabilities
If you have total 0 for each section, your migration is done. You can delete old Entity & Attributes and Zen configuration.
Verification Steps
After completing the migration:
Verify API functionality:
Test search parameters:
Validate that resource creation and updates work properly:
Last updated
Was this helpful?