In a config modifier schema, use get to retrieve a value at a given path.
To retrieve a nested property value, use dot.notation; a prefix . isn’t required. Additionally, we support an array[index] notation (e.g., get: someArray[0].someProperty).
This value can either be simply returned or used as a starting point for other keywords at the same level or nested below.
This keyword executes in the following order:
- omit
- constant
- references
- use
- get
- Mutually exclusive keywords at this level:
- properties
- if
- concat
- switch
- pipe
- merge
- prefer
- items
- default
- plugin
You can indicate which nested property value to return.
Let’s say you have an MDM message. The TXA.4.1 value—mapped from a FHIR® message and representing activity date/time—is missing and needs to be populated.
TXA.6.1, which represents origination date/time, is already being mapped. A simple approach is to get the value directly from TXA.6.1 (from the current payload) to map to TXA.4.1.
First include use to get the HL7v2 output (the current processedPayload), then use get to retrieve and map the value at TXA.6.1 to TXA.4.1.
Based on this example config modifier, TXA.4.1 is now populated.