Enable IGs
This feature is currently available on the Aidbox:latest
and :edge
channels.
Aidbox configuration project allows you to easily enable FHIR IGs which extend basic FHIR functionality with a variety of features including additional profiles and terminologies. Currently, Aidbox can only work with a subset of IG specification but we plan to extend it in the future.
Currently supported list of features:
BaseProfiles — enable base FHIR resources validation
Extensions — enable First-Class Extensions with validation
Profiles — enable validation via
meta.profile
Searches (partial support) — enable search
CodeSystems & ValueSets (partial support) — enable lookup and binding validation
Available IGs
View the gallery of available FHIR IGs in our GitHub repository:
How to enable IG
You can enable FHIR IGs you want to use by specifying dependencies in the zen-package.edn
.
You need to go through the following steps:
Specify zen FHIR IGs in your
zen-package.edn
Import the zen FHIR IGs entrypoints
Commit changes to your Aidbox configuration project
Restart Aidbox and verify that IGs are enabled
All of them are covered in greater detail below.
Zen FHIR packages require AIDBOX_CORRECT_AIDBOX_FORMAT=true
environment variable.
Specify zen FHIR IGs in your zen-package.edn
Here's an example for enabling US Core IG and DaVinci PDEX Plan Net:
Or another example for enabling FHIR r4 core IG:
To the left of each zen FHIR IG URL you give a name. In the examples above the names are r4-core
, us-core
and plan-net
. These names are arbitrary and currently are used only to annotate a URL.
Import the zen FHIR IGs entrypoints
To enable zen FHIR IGs you provided you need to import them inside of your entrypoint.
Using the example from the getting started page the updated entrypoint file will look like this for both of the examples above:
r4 core | us-core and plan-net |
---|---|
Commit changes to your Aidbox configuration project
Don't forget to do git commit
after you made changes to your Aidbox configuration project. To commit you can execute the following command inside your Aidbox configuration project directory:
Restart Aidbox
After you change zen-package.edn
you need to restart Aidbox for your changes to be applied.
Verify that IGs are enabled
After Aidbox restarted with a new configuration you can use profiles, terminology, and other IG features.
By default, Aidbox does not load terminologies into the database to save disk space. This still allows you to use them for validation but terminology server functionality won’t be available. If you do wish to load the terminologies, you need to set BOX_FEATURES_FTR_PULL_ENABLE=true
environment variable.
To see currently loaded profiles you can go to the profiles
UI page:
If you want to verify that validation with IGs work, you can create FHIR resource using FHIR REST API which will validate the provided resource against the specified Profile.
For example, if you want to check that US Core IG works, you can send the following requests and check that response statuses are as expected.
This request checks that valid values for birthsex
field are allowed.
This request checks that invalid values for birthsex
field are not allowed.
Development and production tips
If you want some tips regarding development and production usage, visit the links below:
Last updated