Loading...
Recommendations
Explore
Mirth® Connect by NextGen Healthcare User Guide
Transformer Step Types
Mirth® Connect supports the following transformer step types: Mapper Transformer Step Message Builder Transformer Step JavaScript Transformer Step External Script Transformer Step XSLT Transformer Step Destination Set Filter Transformer Step Iterator Transformer Step Parent topic: About Transformers
Mirth® Connect by NextGen Healthcare User Guide
Working With Iterators
An Iterator is a special type of step that allows you to loop (iterate) through an array or list of XML nodes. For each array element or XML node (each "iteration"), you can execute multiple filter rules or transformer steps (the "children"). For example, let us say you are mapping inbound HL7 v2.x messages to an outbound HL7 v2.x template, and you want to copy OBR.16 .1 (ordering provider) component to a the PV1.9.1 (consulting doctor) component in the outbound template. Typically you would do this with a Message Builder Transformer Step: This works so far when there is only one OBR segment and one OBR.16 field. But what if you want to handle multiple segments or repeating fields? This is where Iterators come into play. Creating Iterators From Drag-and-Drop The Assign To Iterator Task Remove From Iterators Parent topic: Edit Filter / Transformer Views
Mirth® Connect by NextGen Healthcare User Guide
External Script Transformer Step
This step functions the same way as the JavaScript Transformer Step, except that the script is read from an external file when the channel is deployed. If the given path is not absolute, it will be relative to the Mirth® Connect installation directory. Parent topic: Transformer Step Properties
Mirth® Connect by NextGen Healthcare User Guide
Create a Rule Builder Rule or Mapper Step
When editing a filter, you can create a Rule Builder Filter Rule directly from the message tree. When editing a transformer, you can create a Mapper Transformer Step in the same way. Method 1 Right-click the node you wish to filter on or map, then select either Filter by Value or Map to Variable: A dialog may be shown asking whether you want to add the rule/step as part of an Iterator. For additional information, see Working With Iterators A Rule Builder or Mapper is automatically added to the table with the selected node populated appropriately. Method 2 Drag the node you wish to filter on or map from the tree into the table. The same steps follow as in Method 1. Parent topic: Message Trees Tab
Mirth® Connect by NextGen Healthcare User Guide
Filter Rule Properties
The following Filter Rules are supported by Mirth® Connect Rule Builder Filter Rule JavaScript Filter Rule External Script Filter Rule Iterator Filter Rule Rule Builder Filter Rule JavaScript Filter Rule External Script Filter Rule Iterator Filter Rule Parent topic: Edit Filter / Transformer Views
Mirth® Connect by NextGen Healthcare User Guide
Transformer Tasks
The following context-specific tasks are available throughout the Edit Transformer View: Task Icon Task Name Description Add New Step Adds a new transformer step to the table. If an Iterator step or any step that is a child of an Iterator is currently selected, the new step is placed at the end of the children of the most immediate parent Iterator. Otherwise, the new step will be placed at the very end of the list at the bottom of the table. Delete Step Removes the currently selected step from the table. If an Iterator step is deleted, all of its children are also deleted. Assign To Iterator Adds the selected step to a new or existing Iterator. For additional information, see Working With Iterators. Remove From Iterator Removes the selected step from its current Iterator. For additional information: Working With Iterators Import Transformer Imports a transformer from an XML file. You can choose to completely replace the current transformer, or simply append the steps to the current tab
Transformer Step Properties
The following Transformer Steps are supported by
Mirth® Connect
:
Mapper Transformer Step
Message Builder Transformer Step
JavaScript Transformer Step
External Script Transformer Step
XSLT Transformer Step
Destination Set Filter Transformer Step
Iterator Transformer Step
Mapper Transformer Step
Message Builder Transformer Step
JavaScript Transformer Step
External Script Transformer Step
XSLT Transformer Step
Destination Set Filter Transformer Step
Iterator Transformer Step