Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

simple transformer to delete OBX 16

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • simple transformer to delete OBX 16

    I am getting a feed from a neighboring hospital and for some reason, the radiology tech that performed the procedure is in OBX 16, I need to eliminate this field. I know there is an easy way to do this, I just can't remember the syntax.
    Regards,
    Chris

  • #2
    Re:simple transformer to delete OBX 16

    Code:
    delete msg[OBX][OBX.16];

    Comment


    • #3
      Re:simple transformer to delete OBX 16

      Where do I put the code?

      Comment


      • #4
        Re:simple transformer to delete OBX 16

        put the code in the destination transformer.
        Reid Hospital and Healthcare

        Comment


        • #5
          Re:simple transformer to delete OBX 16

          Here is my channel, it doesn't appear to be deleting OBX16.
          <com.webreach.mirth.model.Channel>
          <id>fbd73b62-ed2d-425f-a2c1-15d2c8ad647d</id>
          <name>UHSReports</name>
          <description>This channel takes uhs reports and currently stores them in the original HL7 format in which they were sent.</description>
          <enabled>true</enabled>
          <version>1.6.1.2750</version>
          <revision>15</revision>
          - <sourceConnector>
          <name>sourceConnector</name>
          - <properties>
          <property name="messageEnd">0x1C</property>
          <property name="ackCodeError">AE</property>
          <property name="messageStart">0x0B</property>
          <property name="ackMsgRejected">Message Rejected.</property>
          <property name="ackCodeRejected">AR</property>
          <property name="receiveTimeout">0</property>
          <property name="charEncoding">hex</property>
          <property name="bufferSize">65536</property>
          <property name="useStrictLLP">1</property>
          <property name="reconnectInterval">5000</property>
          <property name="waitForEndOfMessageCharacter">0</property>
          <property name="sendACK">1</property>
          <property name="port">9180</property>
          <property name="ackOnNewConnection">0</property>
          <property name="checkMSH15">0</property>
          <property name="ackMsgSuccessful" />
          <property name="tcpProtocolClassName">org.mule.providers.tcp .protocols.TcpProtocol</property>
          <property name="responseFromTransformer">0</property>
          <property name="segmentEnd">0x0D</property>
          <property name="ackPort" />
          <property name="charsetEncoding">DEFAULT_ENCODING</property>
          <property name="host">127.0.0.1</property>
          <property name="responseValue">None</property>
          <property name="DataType">LLP Listener</property>
          <property name="processBatchFiles">1</property>
          <property name="ackMsgError">An Error Occured Processing Message.</property>
          <property name="serverMode">1</property>
          <property name="ackCodeSuccessful">AA</property>
          <property name="ackIP" />
          <property name="recordSeparator">0x0D</property>
          </properties>
          - <transformer>
          - <steps>
          - <com.webreach.mirth.model.Step>
          <sequenceNumber>0</sequenceNumber>
          <name>delete OBX16</name>
          <script>delete msg['OBX][OBX.16'];</script>
          <type>JavaScript</type>
          - <data class="map">
          - <entry>
          <string>Script</string>
          <string>delete msg['OBX][OBX.16'];</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          </steps>
          <inboundTemplate></inboundTemplate>
          <outboundTemplate />
          <inboundProtocol>HL7V2</inboundProtocol>
          <outboundProtocol>HL7V2</outboundProtocol>
          <inboundProperties />
          - <outboundProperties>
          <property name="handleRepetitions">false</property>
          <property name="encodeEntities">true</property>
          <property name="useStrictValidation">false</property>
          <property name="useStrictParser">false</property>
          </outboundProperties>
          </transformer>
          - <filter>
          <rules />
          </filter>
          <transportName>LLP Listener</transportName>
          <mode>SOURCE</mode>
          <enabled>true</enabled>
          </sourceConnector>
          - <destinationConnectors>
          - <com.webreach.mirth.model.Connector>
          <name>Destination 1</name>
          - <properties>
          <property name="channelName">dailyuhsreports</property>
          <property name="DataType">Channel Writer</property>
          <property name="synchronised">0</property>
          <property name="template">${message.encodedData}</property>
          <property name="host">cd97d5fa-e0b9-4600-a451-bf1ae759e969</property>
          </properties>
          - <transformer>
          <steps />
          <inboundProtocol>HL7V2</inboundProtocol>
          <outboundProtocol>HL7V2</outboundProtocol>
          </transformer>
          - <filter>
          <rules />
          </filter>
          <transportName>Channel Writer</transportName>
          <mode>DESTINATION</mode>
          <enabled>true</enabled>
          </com.webreach.mirth.model.Connector>
          </destinationConnectors>
          - <properties>
          <property name="synchronous">true</property>
          <property name="removeNamespace">true</property>
          <property name="transactional">false</property>
          <property name="initialState">started</property>
          <property name="dont_store_filtered">false</property>
          <property name="error_messages_only">false</property>
          <property name="max_message_age">-1</property>
          <property name="store_messages">true</property>
          <property name="encryptData">false</property>
          </properties>
          <preprocessingScript>// Modify the message variable below to pre process data return message;</preprocessingScript>
          <postprocessingScript>// This script executes once after a message has been processed return;</postprocessingScript>
          <deployScript>// This script executes once when the mule engine is started // You only have access to the globalMap here to persist data return;</deployScript>
          <shutdownScript>// This script executes once when the mule engine is stopped // You only have access to the globalMap here to persist data return;</shutdownScript>
          </com.webreach.mirth.model.Channel>

          Comment


          • #6
            Re:simple transformer to delete OBX 16

            Pleas, attach the channel and an example message

            Comment

            Working...
            X