Announcement

Collapse
No announcement yet.

Error deploying channel

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

  • Error deploying channel

    I got this error message when I deploy a channel, I have no idea about this error message.

    Thanks
    Kebin

    org.mule.config.ConfigurationException: Failed to parse configuration resource "C:\Program Files\Mirth\conf\mule-config.xml" (org.mule.config.ConfigurationException)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:196)
    at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:229)
    at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:186)
    at com.webreach.mirth.server.Mirth.run(Mirth.java:117 )
    Caused by: org.mule.config.ConfigurationException: Failed to parse configuration resource "C:\Program Files\Mirth\conf\mule-config.xml"
    at org.mule.config.builders.AbstractDigesterConfigura tion.process(AbstractDigesterConfiguration.java:12 1)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:202)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:194)
    ... 3 more
    Caused by: org.mule.management.agents.JmxManagementException: Failed to start Jmx Connector
    at org.apache.commons.digester.Digester.createSAXExce ption(Digester.java:2919)
    at org.apache.commons.digester.Digester.createSAXExce ption(Digester.java:2945)
    at org.apache.commons.digester.Digester.endElement(Di gester.java:1133)
    at org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1685)
    at org.mule.config.builders.AbstractDigesterConfigura tion.process(AbstractDigesterConfiguration.java:11 9)
    ... 5 more

    {}

  • #2
    Re:Error deploying channel

    You'll need to post the relevant code in the channel, or the export of the whole channel. If you only made a couple of changes, the code should be enough. Can't tell much just looking at the error without the source code.

    Comment


    • #3
      Re:Error deploying channel

      You'll need to post the relevant code in the channel, or the export of the whole channel. If you only made a couple of changes, the code should be enough. Can't tell much just looking at the error without the source code.

      Comment


      • #4
        Re:Error deploying channel

        The channel is called "Lancaster", its xml file is attached and the "mule-config.xml" is also attached.

        Thanks
        kebin mule_config-c69bab50106858d7d55312cf3c175a75.xml (12904 bytes)

        Comment


        • #5
          Re:Error deploying channel

          exported channel "lancaster.xml" is posted as following:

          <com.webreach.mirth.model.Channel>
          <id>6a0da1d3-0a1e-44b8-a879-fbe5d5a78c8d</id>
          <name>Lancaster</name>
          <description></description>
          <enabled>true</enabled>
          <version>1.6.1.2750</version>
          <revision>70</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">6661</property>
          <property name="ackOnNewConnection">0</property>
          <property name="checkMSH15">0</property>
          <property name="ackMsgSuccessful"></property>
          <property name="tcpProtocolClassName">org.mule.providers.tcp .protocols.TcpProtocol</property>
          <property name="responseFromTransformer">0</property>
          <property name="segmentEnd">0x0D</property>
          <property name="ackPort"></property>
          <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>
          <property name="recordSeparator">0x0D</property>
          </properties>
          <transformer>
          <steps>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>0</sequenceNumber>
          <name>CaseID</name>
          <script>globalMap.put(&apos;CaseID&apos;, validate(msg[&apos;SCH&apos;][&apos;SCH.23&apos;][&apos;SCH.23.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;SCH&apos;][&apos;SCH.23&apos;][&apos;SCH.23.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseID</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>1</sequenceNumber>
          <name>CaseAccount</name>
          <script>globalMap.put(&apos;CaseAccount&apos;, validate(msg[&apos;PID&apos;][&apos;PID.18&apos;][&apos;PID.18.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.18&apos;][&apos;PID.18.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseAccount</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>2</sequenceNumber>
          <name>CasePatRoom</name>
          <script>globalMap.put(&apos;CasePatRoom&apos;, validate(msg[&apos;PV1&apos;][&apos;PV1.3&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PV1&apos;][&apos;PV1.3&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CasePatRoom</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>3</sequenceNumber>
          <name>CaseEstDur</name>
          <script>globalMap.put(&apos;CaseEstDur&apos;, validate(msg[&apos;AIS&apos;][&apos;AIS.7&apos;][&apos;AIS.7.1&apos;][0].toString(), &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;AIS&apos;][&apos;AIS.7&apos;][&apos;AIS.7.1&apos;][0].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseEstDur</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>4</sequenceNumber>
          <name>CaseCleanUp</name>
          <script>globalMap.put(&apos;CaseCleanUp&apos;, validate(msg[&apos;AIG&apos;][&apos;AIG.11&apos;][&apos;AIG.11.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;AIG&apos;][&apos;AIG.11&apos;][&apos;AIG.11.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseCleanUp</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>5</sequenceNumber>
          <name>CaseORLoc</name>
          <script>globalMap.put(&apos;CaseORLoc&apos;, validate(msg[&apos;AIL&apos;][&apos;AIL.3&apos;][&apos;AIL.3.2&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;AIL&apos;][&apos;AIL.3&apos;][&apos;AIL.3.2&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseORLoc</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>6</sequenceNumber>
          <name>CaseSchedStart</name>
          <script>globalMap.put(&apos;CaseSchedStart&apos; , validate(msg[&apos;AIS&apos;][&apos;AIS.4&apos;][&apos;AIS.4.1&apos;][0].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;AIS&apos;][&apos;AIS.4&apos;][&apos;AIS.4.1&apos;][0].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseSchedStart</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>7</sequenceNumber>
          <name>CaseAnesType</name>
          <script>globalMap.put(&apos;CaseAnesType&apos;, validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseAnesType</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>8</sequenceNumber>
          <name>CaseAnes</name>
          <script>globalMap.put(&apos;CaseAnes&apos;, validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseAnes</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>9</sequenceNumber>
          <name>CaseCRNA</name>
          <script>globalMap.put(&apos;CaseCRNA&apos;, validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseCRNA</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>10</sequenceNumber>
          <name>CasePhysicianCode</name>
          <script>globalMap.put(&apos;CasePhysicianCode&apos ;, validate(msg[&apos;AIP&apos;][&apos;AIP.3&apos;][&apos;AIP.3.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;AIP&apos;][&apos;AIP.3&apos;][&apos;AIP.3.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CasePhysicianCode</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>11</sequenceNumber>
          <name>CasePhysicianCredential</name>
          <script>globalMap.put(&apos;CasePhysicianCredentia l&apos;, validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CasePhysicianCredential</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>12</sequenceNumber>
          <name>CasePhysicianFName</name>
          <script>globalMap.put(&apos;CasePhysicianFName&apo s;, validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CasePhysicianFName</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>13</sequenceNumber>
          <name>CasePhysicianLName</name>
          <script>globalMap.put(&apos;CasePhysicianLName&apo s;, validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CasePhysicianLName</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>14</sequenceNumber>
          <name>CaseCancelCode</name>
          <script>globalMap.put(&apos;CaseCancelCode&apos; , validate(msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseCancelCode</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>15</sequenceNumber>
          <name>PatientID</name>
          <script>globalMap.put(&apos;PatientID&apos;, validate(msg[&apos;PID&apos;][&apos;PID.2&apos;][&apos;PID.2.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.2&apos;][&apos;PID.2.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientID</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>16</sequenceNumber>
          <name>PatientLName</name>
          <script>globalMap.put(&apos;PatientLName&apos;, validate(msg[&apos;PID&apos;][&apos;PID.5&apos;][&apos;PID.5.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.5&apos;][&apos;PID.5.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientLName</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>17</sequenceNumber>
          <name>PatientFName</name>
          <script>globalMap.put(&apos;PatientFName&apos;, validate(msg[&apos;PID&apos;][&apos;PID.5&apos;][&apos;PID.5.2&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.5&apos;][&apos;PID.5.2&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientFName</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>18</sequenceNumber>
          <name>PatientMI</name>
          <script>globalMap.put(&apos;PatientMI&apos;, validate(msg[&apos;PID&apos;][&apos;PID.5&apos;][&apos;PID.5.3&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.5&apos;][&apos;PID.5.3&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientMI</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>19</sequenceNumber>
          <name>PatientDOB</name>
          <script>globalMap.put(&apos;PatientDOB&apos;, validate(msg[&apos;PID&apos;][&apos;PID.7&apos;][&apos;PID.7.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.7&apos;][&apos;PID.7.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientDOB</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>20</sequenceNumber>
          <name>PatientSex</name>
          <script>globalMap.put(&apos;PatientSex&apos;, validate(msg[&apos;PID&apos;][&apos;PID.8&apos;][&apos;PID.8.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.8&apos;][&apos;PID.8.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientSex</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>21</sequenceNumber>
          <name>PatientSSN</name>
          <script>globalMap.put(&apos;PatientSSN&apos;, validate(msg[&apos;PID&apos;][&apos;PID.19&apos;][&apos;PID.19.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.19&apos;][&apos;PID.19.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientSSN</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>22</sequenceNumber>
          <name>PatientMedRec</name>
          <script>globalMap.put(&apos;PatientMedRec&apos;, validate(msg[&apos;PID&apos;][&apos;PID.2&apos;][&apos;PID.2.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;PID&apos;][&apos;PID.2&apos;][&apos;PID.2.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>PatientMedRec</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>23</sequenceNumber>
          <name>Action</name>
          <script>globalMap.put(&apos;Action&apos;, validate(msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>Action</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>24</sequenceNumber>
          <name>CaseProcedures</name>
          <script>globalMap.put(&apos;CaseProcedures&apos; , validate(&apos;&apos;, &quot;&quot;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string></string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CaseProcedures</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string>&quot;&quot;</string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          <com.webreach.mirth.model.Step>
          <sequenceNumber>25</sequenceNumber>
          <name>CasePatType</name>
          <script>globalMap.put(&apos;CasePatType&apos;, validate(msg[&apos;AIL&apos;][&apos;AIL.4&apos;][&apos;AIL.4.1&apos;].toString(), &apos;&apos;, new Array()));</script>
          <type>Mapper</type>
          <data class="map">
          <entry>
          <string>Mapping</string>
          <string>msg[&apos;AIL&apos;][&apos;AIL.4&apos;][&apos;AIL.4.1&apos;].toString()</string>
          </entry>
          <entry>
          <string>Variable</string>
          <string>CasePatType</string>
          </entry>
          <entry>
          <string>RegularExpressions</string>
          <list/>
          </entry>
          <entry>
          <string>isGlobal</string>
          <string>global</string>
          </entry>
          <entry>
          <string>DefaultValue</string>
          <string></string>
          </entry>
          </data>
          </com.webreach.mirth.model.Step>
          </steps>
          <inboundTemplate>&#x0D;MSH|^~\&amp;|Picis|LGH|||20 071008111129||SIU^S12|20071008111118||2.3|||||&#x0 D;EVN|S12|20071008111129||||&#x0D;PID||1004269|||T EST^JAN^^||19710715|F|||123 MAIN STREET^^EPHRATA^PA^17522||7175544511||||||20070202 1||&#x0D;PV1||||||||||||||||||IP|||||||||||||||||| ||||||||200710081150|||||||||&#x0D;SCH||||||S12||| 180||||||||||||||713|||&#x0D;AIS|1||^Abdominal Aorto-Femoral Artery Bypass Graft^^ABGN1120|200710081150|200710081200||180|||| &#x0D;AIS|1||^Bypass Graft Abdominal Aorto-Femoral Artery ^^ABGN1140|200710081150|200710081200||180||||&#x0D ;AIP|1||S07004||||0||||||&#x0D;AIL|1||^L00A^^LGH|L AA||&#x0D;AIG|1||L_CELLSAV^Cell Saver|E||1||||||||&#x0D;AIG|2||S_AAA_PAN^AAA Pan|E||1||||||||&#x0D;AIG|3||L_OMNRET^Omni Retractor System|E||1||||||||&#x0D;AIG|4||PERFUSION^Perfusio nist|R||1||||||||&#x0D;AIG|5||S_VASCSPEC^Vascular Specials|E||1||||||||&#x0D;</inboundTemplate>
          <outboundTemplate></outboundTemplate>
          <inboundProtocol>HL7V2</inboundProtocol>
          <outboundProtocol>HL7V2</outboundProtocol>
          <inboundProperties>
          <property name="handleRepetitions">false</property>
          <property name="encodeEntities">true</property>
          <property name="useStrictValidation">false</property>
          <property name="useStrictParser">false</property>
          </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="charsetEncoding">DEFAULT_ENCODING</property>
          <property name="outputAppend">1</property>
          <property name="DataType">File Writer</property>
          <property name="outputPattern">${message.id}.txt</property>
          <property name="template">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
          &lt;Events&gt;
          &lt;ScheduleEvents&gt;
          &lt;CaseID&gt;${CaseID}&lt;/CaseID&gt;
          &lt;CaseAccount&gt;${CaseAccount}&lt;/CaseAccount&gt;
          &lt;CasePatRoom&gt;${CasePatRoom}&lt;/CasePatRoom&gt;
          &lt;CasePatType&gt;${CasePatType}&lt;/CasePatType&gt;
          &lt;CaseEstDur&gt;${CaseEstDur}&lt;/CaseEstDur&gt;
          &lt;CaseCleanup&gt;${CaseCleanUp}&lt;/CaseCleanup&gt;
          &lt;CaseORLoc&gt;${CaseORLoc}&lt;/CaseORLoc&gt;
          &lt;CaseSchedStart&gt;${CaseSchedStart}&lt;/CaseSchedStart&gt;
          &lt;CasePhysicianCode&gt;${CasePhysicianCode}&l t;/CasePhysicianCode&gt;
          &lt;CasePhysicianCredential&gt;${CasePhysicianCred ential}&lt;/CasePhysicianCredential&gt;
          &lt;CasePhysicianFName&gt;${CasePhysicianFName}&lt ;/CasePhysicianFName&gt;
          &lt;CasePhysicianLName&gt;${CasePhysicianLName}&lt ;/CasePhysicianLName&gt;
          &lt;CaseCancelCode&gt;${CaseCancelCode}&lt;/CaseCancelCode&gt;
          &lt;CaseAnesType&gt;${CaseAnesType}&lt;/CaseAnesType&gt;
          &lt;CaseAnes&gt;${CaseAnes}&lt;/CaseAnes&gt;
          &lt;CaseCRNA&gt;${CaseCRNA}&lt;/CaseCRNA&gt;
          &lt;PatientID&gt;${PatientID}&lt;/PatientID&gt;
          &lt;PatientLName&gt;${PatientLName}&lt;/PatientLName&gt;
          &lt;PatientFName&gt;${PatientFName}&lt;/PatientFName&gt;
          &lt;PatientMI&gt;${PatientMI}&lt;/PatientMI&gt;
          &lt;PatientDOB&gt;${PatientDOB}&lt;/PatientDOB&gt;
          &lt;PatientSex&gt;${PatientSex}&lt;/PatientSex&gt;
          &lt;PatientSSN&gt;${PatientSSN}&lt;/PatientSSN&gt;
          &lt;PatientMedRec&gt;${PatientMedRec}&lt;/PatientMedRec&gt;
          &lt;Action&gt;${Action}&lt;/Action&gt;
          ${CaseProcedures}
          &lt;/ScheduleEvents&gt;
          &lt;/Events&gt;</property>
          <property name="host">c:/temp/Lancaster/Out</property>
          <property name="binary">0</property>
          </properties>
          <transformer>
          <steps/>
          <inboundTemplate>&#x0D;MSH|^~\&amp;|Picis|LGH|||20 071008111129||SIU^S12|20071008111118||2.3|||||&#x0 D;EVN|S12|20071008111129||||&#x0D;PID||1004269|||T EST^JAN^^||19710715|F|||123 MAIN STREET^^EPHRATA^PA^17522||7175544511||||||20070202 1||&#x0D;PV1||||||||||||||||||IP|||||||||||||||||| ||||||||200710081150|||||||||&#x0D;SCH||||||S12||| 180||||||||||||||713|||&#x0D;AIS|1||^Abdominal Aorto-Femoral Artery Bypass Graft^^ABGN1120|200710081150|200710081200||180|||| &#x0D;AIS|2||^Bypass Graft Abdominal Aorto-Femoral Artery ^^ABGN1140|200710081150|200710081200||180||||&#x0D ;AIP|1||S07004||||0||||||&#x0D;AIL|1||^L00A^^LGH|L AA||&#x0D;AIG|1||L_CELLSAV^Cell Saver|E||1||||||||&#x0D;AIG|2||S_AAA_PAN^AAA Pan|E||1||||||||&#x0D;AIG|3||L_OMNRET^Omni Retractor System|E||1||||||||&#x0D;AIG|4||PERFUSION^Perfusio nist|R||1||||||||&#x0D;AIG|5||S_VASCSPEC^Vascular Specials|E||1||||||||&#x0D;</inboundTemplate>
          <outboundTemplate></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>
          <com.webreach.mirth.model.Rule>
          <sequenceNumber>0</sequenceNumber>
          <name>New Rule</name>
          <script>//first thing you may want to do here is ensure that you are
          // only dealing with messages that have the segments you are
          // looking for. In this example, we will deal with SIU^S12, 13, 14, 15 messages.
          if (msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.1&apos;].toString() == &apos;SIU&apos; &amp;&amp; ((msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString() == &apos;S12&apos ||
          (msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString() == &apos;S13&apos || (msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString() == &apos;S14&apos ||
          (msg[&apos;MSH&apos;][&apos;MSH.9&apos;][&apos;MSH.9.2&apos;].toString() == &apos;S15&apos))
          {

          var i = 0;
          var str = &quot;&quot;;
          var dur = 0;

          //whenever you have more than one segment, Mirth essentially creates an array of them. Which you can access traditionally varname[index].
          while (msg[&apos;AIS&apos;][&apos;AIS.3&apos;][&apos;AIS.3.4&apos;][i] != null)
          {

          str = str + &quot;&lt;CaseProcedures&gt;&lt;ProcedCode&gt;&quo t; + msg[&apos;AIS&apos;][&apos;AIS.3&apos;][&apos;AIS.3.4&apos;][i] + &quot;&lt;/ProcedCode&gt;&lt;ProcedName&gt;&quot; + msg[&apos;AIS&apos;][&apos;AIS.3&apos;][&apos;AIS.3.2&apos;][i] + &quot;&lt;/ProcedName&gt;&lt;PhysicianCode&gt;&lt;/PhysicianCode&gt;&lt;PhysicianLName&gt;&lt;/PhysicianLName&gt;&lt;PhysicianFName&gt;&lt;/PhysicianFName&gt;&lt;PhysicianCredential&gt;&lt;/PhysicianCredential&gt;&lt;/CaseProcedures&gt;&quot;
          i = i + 1;
          }
          globalMap.put(&quot;CaseProcedures&quot;,str);

          /*
          i = 0;
          while (msg[&apos;AIS&apos;][&apos;AIS.7&apos;][&apos;AIS.7.1&apos;][i] != null)
          {
          var partDur = msg[&apos;AIS&apos;][&apos;AIS.7&apos;][&apos;AIS.7.1&apos;][i];
          dur = dur + partDur;
          }
          globalMap.put(&quot;CaseEstDur&quot;, dur);


          globalMap.put(&quot;CaseSchedStart&quot;, msg[&apos;AIS&apos;][&apos;AIS.4&apos;][&apos;AIS.4.1&apos;][0]);
          */
          }

          //finally you can return whatever you want to do with your filter.
          return true;</script>
          <operator>NONE</operator>
          </com.webreach.mirth.model.Rule>
          </rules>
          </filter>
          <transportName>File 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

          Working...
          X