Common use cases for config modifiers

Last updated: Oct 9, 2025
IMPLEMENTATION
DEVELOPER

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.

Use case 1: Hardcode a specific field

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.

Use case 2: Populate values from different segments

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.

Use case 3: Account for inconsistent messaging

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.

Other common use cases

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.