Profiling with zen-lang
Validate your resources with zen-lang schemas
Aidbox supports a powerful profile validation mechanism powered by Zen language. It allows you to define a set (or multiple sets) of profiles in edn format and later load them into your Aidbox instance. These profiles can be used to validate resources against the specified schemas, including individual properties and also interoperation with other profiles in a composable way.
- 1.Write profiles with schemas to validate against
2. Load profiles into your Aidbox instance
Resource examples and external (not-present) terminologies are not loaded into the storage by default
3. Validate resources against profiles
Use FHIR $validate operation or a CRUD request with a profile URL specified in
.meta.profile
or in .profile
query parameters.Zen FHIR packages require
AIDBOX_CORRECT_AIDBOX_FORMAT=true
environment variable.We recommend to load Zen FHIR packages using an Aidbox Configuration project. Visit the following page for a detailed guide:
Our
zen-lang/fhir
tool allows you to generate zen schemas for custom FHIR profiles and use them in your Aidbox Configuration projects. You can use existing Zen FHIR packages as a foundation for your custom Zen FHIR package. See our guide on profiling with Zen-lang.