Start Aidbox locally with US Core IG enabled
This tutorial is deprecated. Since the 2405 release, using Aidbox in FHIRSchema mode is recommended, which is incompatible with zen or Entity/Attribute options.
Steps
You need to go through the following steps:
Set up base Aidbox instance
Specify US Core as a dependency
Commit changes to your Aidbox configuration project
Start Aidbox and verify that IGs are enabled
All of them are covered in a greater detail below.
If you are new to Aidbox it is strongly recommended not to skip any steps. Otherwise you may end up with a misconfigured instance.
Set up base Aidbox instance
Set up Aidbox instance by following our quick start guide.
Run Aidbox locallySpecify US Core as a dependency
Put the following content in project/zen-package.edn
:
Go to the main configuration file for your system (project/zrc/system.edn
if you followed the quick start guide from above) and add hl7-fhir-us-core
namespace to imports. It should look like this:
Commit the changes you just made:
Commit step is necessary as we are using Aidbox configuration project which is a git repository under the hood.
Start Aidbox
Start Aidbox by running the following command:
It should be available now at http://localhost:8888
.
Database implications
Note that US Core IG takes about 1.5GB in the database. You can significantly reduce this size by disabling the loading of Concepts, ValueSets and CodeSystems. For that you need to set BOX_FEATURES_FTR_PULL_ENABLE=true|false
.
You’ll still be able to validate codes from ValueSets but Concept lookups and ValueSet expansions as well as GET /Concept
, GET /ValueSet
and GET /CodeSystem
endpoints won’t work. Lookups and expansions without loading into database are currently work in progress
Verify that US Core IG works
By default, Aidbox does not load terminologies into the database in order to save the 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.
Go to “Profiles” page in the Aidbox UI (http://localhost:8888/ui/zen-ui
) and make sure that hl7-fhir-us-core
is listed among the namespaces.
You can also verify that validation with US Core IG works. For that you can make the following HTTP requests and check that response statuses are returned 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.
Resources
If you want to learn more about working with IGs in Aidbox, there is a special page dedicated to it.
Enable IGsLast updated