The "msg" Object
This is the same as in a filter. For more information, see
About Filters
.
Recommendations
Explore
Mirth® Connect by NextGen Healthcare User Guide
Filter
A filter is the piece of a connector that decides whether a message should proceed to the next step or not. It is configured on the Edit Filter View within either the Source Tab or Destinations Tab within the Edit Channel View. See About Filters for additional information. Parent topic: Connector Components
Mirth® Connect by NextGen Healthcare User Guide
The "tmp" Object
This is similar to msg, except that it is the internal representation of the outbound template configured in your transformer settings. It will only be available in the transformer when you have an outbound template configured. The tmp variable is used when you want to convert a message from one format to a completely different format (e.g. HL7 v2.x to JSON). Or, it can be used to selectively include pieces of the incoming message and map them into the outbound message. Parent topic: About Transformers
Mirth® Connect by NextGen Healthcare User Guide
About Filters
The filter is the piece of a connector that decides whether a message should proceed to the next step or not. It is configured on the Edit Filter View within either the Source Tab or Destinations Tab within the Edit Channel View. A filter returns true or false. When the filter returns true, the message is said to have been accepted. When the filter returns false, the message is said to have been filtered. If the source connector filters out a message, it will not flow through the source transformer, and will not be processed by any of the destination connectors. If a destination connector filters out a message, it will not flow through the destination transformer, and will not be dispatched outbound by that destination connector. However other destinations may still process the message. A filter is comprised of multiple rules. Each rule is joined together with an operator, which can be AND or OR. For example a filter may look like this: Accept the message if: Rule 1 returns true OR Rul
Mirth® Connect by NextGen Healthcare User Guide
The "msg" Object
In order to decide whether a message needs to be filtered or not, you will typically need to test pieces of the incoming message. As mentioned in the About Data Types section, when the message enters a filter / transformer, it gets serialized into an internal representation. This is the variable msg, which may be an E4X XML Object, a JavaScript Object, or a Java String, depending on the data type implementation. Parent topic: About Filters
Mirth® Connect by NextGen Healthcare User Guide
About Transformers
A transformer is the piece of a connector that modifies a message, converts a message from one format to another, and extracts pieces of the message for later use. It is configured on the Edit Transformer View within either the Source Tab or Destinations Tab within the Edit Channel View. A transformer has an inbound data type, and an outbound data type. These may be the same (e.g. HL7 v2.x to HL7 v2.x), or they could be different (e.g. HL7 v2.x to JSON). For additional information on data types, see About Data Types. A transformer is also comprised of multiple steps. Each transformer step modifies the message, extracts a piece of the message, or performs some other general task. The "msg" Object The "tmp" Object Response Transformers Transformer Step Types Parent topic: The Fundamentals of Mirth Connect
Mirth® Connect by NextGen Healthcare User Guide
Connector Components
General Connector Properties Connector-Specific Properties Filter Transformer General Connector Properties Connector-Specific Properties Filter Transformer Parent topic: About Channels and Connectors