Skip validation of references in resource using request header

Skip validation of references in resource using request header

aidbox-validation-skip header allows to skip resource reference validations.

The header functionality can be enabled with box_features_validation_skip_reference env.

Example
box_features_validation_skip_reference=true

Usage

Request without aidbox-validation-skip request header causes an error.

PUT /fhir/Observation/f001
content-type: text/yaml

resourceType: Observation
id: f001
subject:
  reference: Patient/id-does-not-exist
status: final
code:
  coding:
  - system: http://loinc.org
    code: 15074-8

The request is successful when aidbox-validation-skip request header is provided.

PUT /fhir/Observation/f001
content-type: text/yaml
aidbox-validation-skip: reference

resourceType: Observation
id: f001
subject:
  reference: Patient/id-does-not-exist
status: final
code:
  coding:
  - system: http://loinc.org
    code: 15074-8

Last updated