In a config modifier schema, use properties to define individual properties to construct an object in the processed payload.
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
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 system wants each OBX segment in the HL7v2 message to come through as 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 specific OBX components.
Each ClinicalInfo comprises the following optional properties:
- Code
- Description
- Value
- Units
- Codeset
These fields must be nested under the ClinicalInfo array property name.
Given that, the output would be: