Mappings with lisp/mapping
Aidbox provides the ability to convert data dynamically using lisp/mapping
in your configuration. This is used in the HL7 v2 pipeline and some API constructor operations.
In order to create mapping, you need to declare a definition with lisp/mapping
tag and write a structure with :mapping
key, using lisp expressions 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.
Example
Passed structure
Result
In the provided example, mapping is used to create a Bundle with dynamically calculated Observation.valueQuantity.value and Obsevation.effectiveDateTime FHIR properties.
Last updated