--- description: How to enable new validator engine and specify IGs --- # Setup Aidbox with FHIR Schema validation engine ### Configure Aidbox to Use FHIR Schema Validation Engine To configure Aidbox to use FHIR Schema Validation Engine you need to: * Enable FHIR Schema Validation Engine * Specify the IG you want to be loaded during the startup * Configure external terminology server #### Enable the FHIR Schema Validation Engine To enable the FHIR Schema Validator engine, set the following environment variable: ``` AIDBOX_FHIR_SCHEMA_VALIDATION=true ``` #### Enable a Specific Implementation Guide (IG) To enable a specific IG, list it in the following environment variable. Separate different packages using a colon (`:`). Package entry template: `#`. ``` AIDBOX_FHIR_PACKAGES=hl7.fhir.r4.core#4.0.1 ``` #### Configure External Terminology Service To validate coded values with an external Terminology service, set it in the following environment variable. ``` AIDBOX_TERMINOLOGY_SERVICE_BASE_URL=https://tx.health-samurai.io/fhir ``` {% hint style="warning" %} Please note that this external terminology server will be used exclusively to validate terminology bindings. If you don't specify the AIDBOX\_TERMINOLOGY\_SERVICE\_BASE\_URL environment variable the validation of terminology bindings will be skipped. {% endhint %} ### Validation Engine Settings #### FHIRSchema Validator Strict Extension Resolution Extensions referenced in data instances must be known to Aidbox. If Aidbox encounters an unknown extension during validation, it will raise a validation error. ``` AIDBOX_VALIDATOR_STRICT_EXTENSION_RESOLUTION_ENABLED=true ``` #### FHIRSchema Validator Strict Profile Resolution Profiles referenced in data instances _(e.g. meta.profile)_ must be known to Aidbox. If Aidbox encounters an unknown profile during validation, it will raise a validation error. ``` AIDBOX_VALIDATOR_STRICT_PROFILE_RESOLUTION_ENABLED=true ```