Config modifiers are a set of custom instructions for processing incoming or outgoing data. Learn about changing data with config modifiers.
This article shows how config modifiers can solve common data transformation problems, such as:
- hardcoding specific values;
- remapping fields; or
- handling inconsistent message formats.
These are just a few use cases. During implementation, you might find other opportunities for config modifiers when you or your connection receive data you don’t expect during testing.
Different sites expect different things. You can hardcode fields and values so that your connection always gets the required data. For example, you expect a certain document ID type or sending facility code in every message.
Different sites configure their messages differently, so data might be found in unusual places. Redox base configs account for most of these variations. But if a value is missing from the segment you expect, you could write a config modifier to pull that value from another segment. For example, your connection sends the time the visit starts in an unexpected segment.
Sometimes a site is inconsistent with their own message formatting. A site might populate a value in one field in some messages but leave it blank or populate a different field for other messages. This can happen if your connection handles IDs and codes differently based on the visit or order type.
Review examples from our how-to docs to solve for other common use cases:
Use case | Example(s) |
|---|---|
Check if a value exists in the initial payload. If so, set a constant value; if not, set a different constant value. | |
Change a code based on whether data in the initial payload equals or includes some other text. | |
Remove an observation from the Observations array in a Flowsheet when the code from that observation matches. |