Announcement

Collapse
No announcement yet.

Trouble with HTTP Sender

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

  • Trouble with HTTP Sender

    I've got my channel mapped out so that certain parts of ADT messages are sent via HTTP post to a rails webapp. I belive the mappings are correct, but according to the log for my webapp no variables are set, all empty strings. Ideas???

    Log:
    Code:
    Processing Hl7Controller#mirth (for 172.25.12.55 at 2007-04-20 10:21:04) [POST]
      Session ID: 329beda8c9a687ab053da05385cc8315
      Parameters: {"bus_email"=>"", "addr1"=>"", "inid"=>"", "city"=>"", "addr2"=>"", "dob"=>"", "zip"=>"", "home_ph"=>"", "home_area"=>"", "home_x"=>"", "ssn"=>"", "bus_x"=>"", "type"=>"ADT-A8", "action"=>"mirth", "bus_ph"=>"", "bus_ac"=>"", "sex"=>"", "controller"=>"hl7", "pcp"=>"", "xid"=>"", "first_name"=>"", "last_name"=>"", "middle_name"=>"", "home_email"=>"", "state"=>""}
    INFO: Writing ADT Message
    Rendering  within layouts/application
    Rendering hl7/mirth
    Completed in 0.01600 (62 reqs/sec) | Rendering: 0.01600 (100%) | 200 OK [http://ANALYST01/hl7/mirth/]
    Channel:
    Code:
    <com.webreach.mirth.model.Channel>
      <id>c9017dc9-1a5f-4f56-bc44-7043b708e301</id>
      <name>PM-EMR for KillerApp</name>
      <description></description>
      <enabled>true</enabled>
      <version>1.4.0</version>
      <revision>12</revision>
    
      <sourceConnector>
        <name>sourceConnector</name>
        <properties>
          <property name="tcpProtocolClassName">org.mule.providers.tcp.protocols.TcpProtocol</property>
          <property name="ackCodeRejected">AR</property>
          <property name="ackIP">...</property>
          <property name="segmentEnd">0x0D</property>
    
          <property name="ackOnNewConnection">0</property>
          <property name="messageEnd">0x1C</property>
          <property name="keepSendSocketOpen">1</property>
          <property name="sendACK">0</property>
          <property name="port">6661</property>
          <property name="bufferSize">65536</property>
    
          <property name="ackPort"></property>
          <property name="ackMsgError">An Error Occured Processing Message.</property>
          <property name="messageStart">0x0B</property>
          <property name="charEncoding">ascii</property>
          <property name="DataType">LLP Listener</property>
          <property name="recordSeparator">0x0D</property>
    
          <property name="ackCodeSuccessful">AA</property>
          <property name="ackMsgSuccessful"></property>
          <property name="receiveTimeout">5000</property>
          <property name="ackCodeError">AE</property>
          <property name="charsetEncoding">DEFAULT_ENCODING</property>
          <property name="responseFromTransformer">0</property>
    
          <property name="responseValue">None</property>
          <property name="host">127.0.0.1</property>
          <property name="checkMSH15">0</property>
          <property name="ackMsgRejected">Message Rejected.</property>
        </properties>
        <transformer>
          <steps/>
    
          <inboundTemplate></inboundTemplate>
          <outboundTemplate></outboundTemplate>
          <inboundProtocol>HL7V2</inboundProtocol>
          <outboundProtocol>HL7V2</outboundProtocol>
        </transformer>
        <filter>
          <rules/>
        </filter>
    
        <transportName>LLP Listener</transportName>
        <mode>SOURCE</mode>
      </sourceConnector>
      <destinationConnectors>
        <com.webreach.mirth.model.Connector>
          <name>Main Destination</name>
          <properties>
    
            <property name="requestVariables"><properties>
      <property name="dob">${PID.7 DOB}</property>
      <property name="inid">${PID.3 Patient Internal ID}</property>
      <property name="home_x">${PID.13.8 Home Extension}</property>
    
      <property name="sender">${MSH.3 Sending Application}</property>
      <property name="first_name">${PID.5.2 Given Name}</property>
      <property name="home_ph">${PID.13.7 Home Phone}</property>
    
      <property name="type">${message.type}</property>
      <property name="home_area">${PID.13.6 Home Area Code}</property>
      <property name="state">${PID.11.4 State}</property>
    
      <property name="pcp">${PD1.4 Primary Care Provider}</property>
      <property name="bus_x">${PID.14.8 Business Extension}</property>
      <property name="ssn">${PID.19 SSN}</property>
    
      <property name="sex">${PID.8 Sex}</property>
      <property name="home_email">${PID.13.4 Home Email Address}</property>
      <property name="bus_ac">${PID.14.6 Business Area Code}</property>
    
      <property name="city">${PID.11.3 City}</property>
      <property name="bus_ph">${PID.14.7 Business Phone}</property>
      <property name="addr2">${PID.11.2 Address 2}</property>
    
      <property name="addr1">${PID.11.1 Address 1}</property>
      <property name="last_name">${PID.5.1 Family Name}</property>
      <property name="zip">${PID.11.5 Zip}</property>
    
      <property name="bus_email">${PID.14.4 Business Email}</property>
      <property name="middle_name">${PID.5.3 Middle Name}</property>
      <property name="xid">${PID.2 Patient External ID}</property>
    
    </properties></property>
            <property name="host">http://ANALYST01:3000/hl7/mirth/</property>
            <property name="DataType">HTTP Sender</property>
            <property name="replyChannelId">sink</property>
            <property name="channelName">None</property>
            <property name="method">post</property>
    
          </properties>
          <transformer>
            <steps>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>0</sequenceNumber>
                <name>MSH.3 Sending Application</name>
                <script>connectorMap.put(&#039;MSH.3 Sending Application&#039;, validate(msg[&#039;MSH&#039;][&#039;MSH.3&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>MSH.3 Sending Application</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;MSH&#039;][&#039;MSH.3&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>connector</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>1</sequenceNumber>
                <name>PID.2 Patient External ID</name>
                <script>channelMap.put(&#039;PID.2 Patient External ID&#039;, validate(msg[&#039;PID&#039;][&#039;PID.2&#039;][&#039;CX.1&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.2 Patient External ID</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.2&#039;][&#039;CX.1&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>2</sequenceNumber>
                <name>PID.3 Patient Internal ID</name>
                <script>channelMap.put(&#039;PID.3 Patient Internal ID&#039;, validate(msg[&#039;PID&#039;][&#039;PID.3&#039;][&#039;CX.1&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.3 Patient Internal ID</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.3&#039;][&#039;CX.1&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>3</sequenceNumber>
                <name>PID.5.1 Family Name</name>
                <script>channelMap.put(&#039;PID.5.1 Family Name&#039;, validate(msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.1&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.5.1 Family Name</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.1&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>4</sequenceNumber>
                <name>PID.5.2 Given Name</name>
                <script>connectorMap.put(&#039;PID.5.2 Given Name&#039;, validate(msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.2&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.5.2 Given Name</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.2&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>connector</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>5</sequenceNumber>
                <name>PID.5.3 Middle Name</name>
                <script>channelMap.put(&#039;PID.5.3 Middle Name&#039;, validate(msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.3&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.5.3 Middle Name</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.3&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>6</sequenceNumber>
                <name>PID.5.4 Suffix</name>
                <script>connectorMap.put(&#039;PID.5.4 Suffix&#039;, validate(msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.4&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.5.4 Suffix</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.4&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>connector</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>7</sequenceNumber>
                <name>PID.5.5 Prefix</name>
                <script>channelMap.put(&#039;PID.5.5 Prefix&#039;, validate(msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.5&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.5.5 Prefix</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.5&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>8</sequenceNumber>
                <name>PID.7 DOB</name>
                <script>channelMap.put(&#039;PID.7 DOB&#039;, validate(msg[&#039;PID&#039;][&#039;PID.7&#039;][&#039;TS.1&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.7 DOB</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.7&#039;][&#039;TS.1&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>9</sequenceNumber>
                <name>PID.8 Sex</name>
                <script>channelMap.put(&#039;PID.8 Sex&#039;, validate(msg[&#039;PID&#039;][&#039;PID.8&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.8 Sex</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.8&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>10</sequenceNumber>
                <name>PID.11.1 Address 1</name>
                <script>channelMap.put(&#039;PID.11.1 Address 1&#039;, validate(msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.1&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.11.1 Address 1</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.1&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>11</sequenceNumber>
                <name>PID.11.2 Address 2</name>
                <script>channelMap.put(&#039;PID.11.2 Address 2&#039;, validate(msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.2&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.11.2 Address 2</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.2&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>12</sequenceNumber>
                <name>PID.11.3 City</name>
                <script>channelMap.put(&#039;PID.11.3 City&#039;, validate(msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.3&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.11.3 City</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.3&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>13</sequenceNumber>
                <name>PID.11.4 State</name>
                <script>channelMap.put(&#039;PID.11.4 State&#039;, validate(msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.4&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.11.4 State</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.4&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>14</sequenceNumber>
                <name>PID.11.5 Zip</name>
                <script>channelMap.put(&#039;PID.11.5 Zip&#039;, validate(msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.5&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.11.5 Zip</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.5&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>15</sequenceNumber>
                <name>PID.13.4 Home Email Address</name>
                <script>channelMap.put(&#039;PID.13.4 Home Email Address&#039;, validate(msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.4&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.13.4 Home Email Address</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.4&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>16</sequenceNumber>
                <name>PID.13.6 Home Area Code</name>
                <script>channelMap.put(&#039;PID.13.6 Home Area Code&#039;, validate(msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.6&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.13.6 Home Area Code</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.6&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>17</sequenceNumber>
                <name>PID.13.7 Home Phone</name>
                <script>channelMap.put(&#039;PID.13.7 Home Phone&#039;, validate(msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.7&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.13.7 Home Phone</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.7&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>18</sequenceNumber>
                <name>PID.13.8 Home Extension</name>
                <script>channelMap.put(&#039;PID.13.8 Home Extension&#039;, validate(msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.8&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.13.8 Home Extension</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.8&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>19</sequenceNumber>
                <name>PID.14.4 Business Email</name>
                <script>channelMap.put(&#039;PID.14.4 Business Email&#039;, validate(msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.4&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.14.4 Business Email</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.4&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>20</sequenceNumber>
                <name>PID.14.6 Business Area Code</name>
                <script>channelMap.put(&#039;PID.14.6 Business Area Code&#039;, validate(msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.6&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.14.6 Business Area Code</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.6&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>21</sequenceNumber>
                <name>PID.14.7 Business Phone</name>
                <script>channelMap.put(&#039;PID.14.7 Business Phone&#039;, validate(msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.7&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.14.7 Business Phone</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.7&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>22</sequenceNumber>
                <name>PID.14.8 Business Extension</name>
                <script>channelMap.put(&#039;PID.14.8 Business Extension&#039;, validate(msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.8&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.14.8 Business Extension</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.8&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>channel</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>23</sequenceNumber>
                <name>PID.19 SSN</name>
                <script>connectorMap.put(&#039;PID.19 SSN&#039;, validate(msg[&#039;PID&#039;][&#039;PID.19&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PID.19 SSN</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PID&#039;][&#039;PID.19&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>connector</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
                <sequenceNumber>24</sequenceNumber>
                <name>PD1.4 Primary Care Provider</name>
                <script>connectorMap.put(&#039;PD1.4 Primary Care Provider&#039;, validate(msg[&#039;PD1&#039;][&#039;PD1.4&#039;][&#039;XCN.3&#039;].toString() + " " + msg[&#039;PD1&#039;][&#039;PD1.4&#039;][&#039;XCN.4&#039;].toString() + " " + msg[&#039;PD1&#039;][&#039;PD1.4&#039;][&#039;XCN.2&#039;].toString(), &#039;&#039;, new Array()));</script>
    
                <type>Mapper</type>
                <data class="map">
                  <entry>
                    <string>Variable</string>
                    <string>PD1.4 Primary Care Provider</string>
                  </entry>
                  <entry>
    
                    <string>DefaultValue</string>
                    <string></string>
                  </entry>
                  <entry>
                    <string>Mapping</string>
                    <string>msg[&#039;PD1&#039;][&#039;PD1.4&#039;][&#039;XCN.3&#039;].toString() + " " + msg[&#039;PD1&#039;][&#039;PD1.4&#039;][&#039;XCN.4&#039;].toString() + " " + msg[&#039;PD1&#039;][&#039;PD1.4&#039;][&#039;XCN.2&#039;].toString()</string>
    
                  </entry>
                  <entry>
                    <string>RegularExpressions</string>
                    <list/>
                  </entry>
                  <entry>
                    <string>isGlobal</string>
                    <string>connector</string>
    
                  </entry>
                </data>
              </com.webreach.mirth.model.Step>
            </steps>
            <inboundTemplate>MSH|^~\&|MIK-AIG^MIK-AIG^GUID||triSTRUCT^triSTRUCT^GUID||20070216134200||ADT^A08|73CCD39D-7EB6-435a-A8D9-4A4C12EF76E9|P|2.3||||NE
    EVN|A08|20070216084200||01
    PID|1|1|1||Bruns^Kim^M^MD^Cmdr||19810625000000|F|||4911 Main Lane^^Fort Wayne^IN^46804||(260)456-4561^^^[email protected]^^260^4564561^7000|(260)490-7822X310^^^[email protected]^^260^4907822^310|||||123-45-6789|||||||||||N
    PD1||||12^Mason MD^Thomas^P^M&UPIN</inboundTemplate>
            <outboundTemplate></outboundTemplate>
    
            <inboundProtocol>HL7V2</inboundProtocol>
            <outboundProtocol>HL7V2</outboundProtocol>
            <inboundProperties>
              <property name="useStrictParser">true</property>
              <property name="useStrictValidation">false</property>
            </inboundProperties>
            <outboundProperties/>
    
          </transformer>
          <filter>
            <rules/>
          </filter>
          <transportName>HTTP Sender</transportName>
          <mode>DESTINATION</mode>
        </com.webreach.mirth.model.Connector>
      </destinationConnectors>
    
      <properties>
        <property name="synchronous">true</property>
        <property name="encryptData">false</property>
        <property name="store_messages">true</property>
        <property name="dont_store_filtered">false</property>
        <property name="initialState">started</property>
    
        <property name="max_message_age">-1</property>
        <property name="transactional">false</property>
        <property name="recv_xml_encoded">false</property>
        <property name="error_messages_only">false</property>
      </properties>
      <preprocessingScript>// Modify the message variable below to pre process data
    
    
    return message;</preprocessingScript>
    </com.webreach.mirth.model.Channel>
    Jon Bartels

    Zen is hiring!!!!
    http://consultzen.com/careers/
    Talented healthcare IT professionals wanted. Engineers to sales to management.
    Good benefits, great working environment, genuinely interesting work.

  • #2
    Re: Trouble with HTTP Sender

    Ok I found something.

    In the Message Log, Mirth says that the raw message looks like this:
    Code:
    .....3||||NE0EVN|A31|274......
    That is the start of an EVN segment in an ADT-A31 message.

    If I look at the transformed message Mirth seems to think that its all a big MSH segment.

    So it isn&#039;t processing the carriage return (0x0d correctly). Any idea where I go to fix it?
    Jon Bartels

    Zen is hiring!!!!
    http://consultzen.com/careers/
    Talented healthcare IT professionals wanted. Engineers to sales to management.
    Good benefits, great working environment, genuinely interesting work.

    Comment


    • #3
      Re: Trouble with HTTP Sender

      Flipped it to hex instead of ascii and fixed the sequence issue. Mirth now seems to be mapping things ok, but they&#039;re still showing up as empty paramaters at the reciever.
      Jon Bartels

      Zen is hiring!!!!
      http://consultzen.com/careers/
      Talented healthcare IT professionals wanted. Engineers to sales to management.
      Good benefits, great working environment, genuinely interesting work.

      Comment


      • #4
        Re: Trouble with HTTP Sender

        The problem is definately inside of my channel. I put the packet sniffer on it and the responses aren&#039;t making it to the wire.

        I added a hardcoded mapping where I set a variable called look_at_me equal to a random string and that is coming through. The Mirth log is showing that the mappings are pulling data out of the message and into the right variables, it just isn&#039;t getting sent out for some reason.
        Jon Bartels

        Zen is hiring!!!!
        http://consultzen.com/careers/
        Talented healthcare IT professionals wanted. Engineers to sales to management.
        Good benefits, great working environment, genuinely interesting work.

        Comment


        • #5
          Re: Trouble with HTTP Sender

          Code:
          java.io.IOException: Attempted read from closed stream.
          	at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:159)
          	at java.io.FilterInputStream.read(FilterInputStream.java:111)
          	at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107)
          	at java.io.FilterInputStream.read(FilterInputStream.java:90)
          	at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:126)
          	at org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodBase.java:684)
          	at org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(HttpMethodBase.java:735)
          	at com.webreach.mirth.server.mule.providers.http.HttpClientMessageDispatcher.doDispatch(HttpClientMessageDispatcher.java:107)
          	at org.mule.providers.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:257)
          	at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290)
          	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
          	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
          	at java.lang.Thread.run(Thread.java:595)
          I don&#039;t think this is relevant as it only happens when I reprocess messages and not when I recieve them normally.
          Jon Bartels

          Zen is hiring!!!!
          http://consultzen.com/careers/
          Talented healthcare IT professionals wanted. Engineers to sales to management.
          Good benefits, great working environment, genuinely interesting work.

          Comment


          • #6
            Re: Trouble with HTTP Sender

            ..aaand I got it working. I changed a variable name from something like "MSH.3 Sending Application" to just "SendingApp". It wasn&#039;t raising any errors.

            I&#039;ve got it working and I&#039;m happy, but I&#039;m curious as to why it was happening to begin with.
            Jon Bartels

            Zen is hiring!!!!
            http://consultzen.com/careers/
            Talented healthcare IT professionals wanted. Engineers to sales to management.
            Good benefits, great working environment, genuinely interesting work.

            Comment


            • #7
              Re: Trouble with HTTP Sender

              Thanks for filing this as an issue - Mirth treats the variable mappings as Javascript variables, so you are under the naming contraints of JS. We are going to add the validation on the variable field so names are always correct.

              Thanks!
              -Chris
              Chris Lang

              Comment

              Working...
              X