Mappings with lisp/mapping
Last updated
Was this helpful?
Last updated
Was this helpful?
Aidbox provides the ability to convert data dynamically using lisp/mapping
in your configuration. This is used in the and some operations.
In order to create mapping, you need to declare a definition with lisp/mapping
tag and write a structure with :mapping
key, using in places where data will be calculated dynamically from the passed structure. It also allow to define an optional parameter :data-schema
, which should be tagged as zen/schema and allows to validate the input data.
In the provided example, mapping is used to create a Bundle with dynamically calculated Observation.valueQuantity.value and Obsevation.effectiveDateTime FHIR properties.