Build a config modifier schema

What is a config modifier?

A config modifier is an operation that applies a set of custom instructions for processing incoming or outgoing data. Review common use cases at the end of this article to see how and when to use config modifiers.

You can set up a config modifier in the Redox dashboard. But a crucial part of the config modifier is building its schema.

Use keywords to build a schema

You build a config modifier schema with keywords, which specify what action to take on the payload at a given point in time.

This reference guide breaks down the Redox-specific syntax to build a config modifier schema. It’s intended to teach you how to use the coding language.

Execution order of keywords

If keywords exist at the same nesting level in a schema, they execute according to this listed execution order, not the order they appear in the schema itself. For example, if you add get above use in the schema, use still executes first.

  1. The following keywords execute at this level, so they’re mutually exclusive. This means only one of these keywords will execute if they’re listed at the same level.

Input and output of keywords

Keywords build on each other, so each one uses the previous keyword’s output as its input. For example, the output of use is the input of get.

A diagram starts with input payload, which the config modifier operates on in the execution order of keywords. The 1st keyword's output serves as the 2nd keyword's input until all keywords are operated on to produce the output payload.
Keyword input and outputs

Using comments in a schema

You can use a comment keyword at any point in the schema. This is a free text field to add context for anyone reading the config modifier. The comment keyword isn’t used when processing the config modifier.

Comments may be placed anywhere in the schema.

Config Modifier Assistant

Coming soon

This feature is coming soon, so you won’t see it live in a production environment just yet. Stay tuned for the release!

If AI assistants are enabled in your organization, you can use our Config Modifier Assistant to help you get started building a schema. This AI assistant knows our coding language and builds a schema when you enter a natural language prompt.

Highlights the "Help me write" button that opens Config Modifier Assistant.
Config Modifier Assistant button

You can choose to apply the AI-generated schema or give feedback on its response.

A user enters a prompt and Config Modifier Assistant builds a schema. The user applies the AI-generated schema.
Using Config Modifier Assistant

Config Modifier Assistant process things in steps. You might see a warning when the assistant has reached its step limit. If you're not finished building, simply click the Continue button.

A warning message indicates that the AI assistant has reached its step limit and has paused.
Config Modifier Assistant - Paused

Or you might see a warning if you've reached your weekly usage limit. AI tokens reset every Sunday. You can either wait for a reset or talk to your Account Manager if you need a higher token limit.

A warning message indicates that the user has reached their AI token usage limit the week.
Config Modifier Assistant - Reached AI token limit

Common use cases

Here are a few use cases where config modifiers solve common data transformation problems:

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.

Other common use cases

Review examples throughout our building guide 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.

Constant

Change a code based on whether data in the initial payload equals or includes some other text.

Operator: equals

Operator: all

Remove an observation from the Observations array in a Flowsheet when the code from that observation matches.

Omit

Concat

Use config modifiers

See common ways config modifiers can resolve unexpected data to or from your connections.

Set up in the dashboard

Get step-by-step instructions for setting up a config modifier in the Redox dashboard.

Helpful articles

What are selectors?

Selectors point to where config modifier processing should happen. Learn how to choose or write one.

Config modifiers basics

Learn how a config modifier changes data in process.

Operation types

Learn what each data operation does in Redox processing.

FHIR® is a registered trademark of Health Level Seven International (HL7) and is used with the permission of HL7. Use of this trademark does not constitute an endorsement of products/services by HL7®.