In a config modifier schema, use properties to define individual properties to construct an object in the processed payload.
This keyword executes at the following nesting level:
- omit
- constant
- references
- use
- get
- properties or if or concat or switch or pipe or merge
- default
- plugin
In this example, you have an HL7v2 RDE message that gets mapped to the Redox Medication data model, which doesn't include an Order.ClinicalInfo array.
However, the destination wants each OBX segment in the HL7v2 message and decides they want it to come through a ClinicalInfo array under Order.
The following schema ensures the order remains unchanged. It creates a new ClinicalInfo array by iterating over the initial message’s ORDER[0].OBSERVATION array and getting a specific OBX component.
Each ClinicalInfo requires the following properties:
- Code
- Description
- Value
- Units
- Codeset
These fields must be nested under the ClinicalInfo array property name.
Given that, the output would be: