Announcement

Collapse
No announcement yet.

IN1 segment arrays

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

  • IN1 segment arrays

    I am having issues with my insurance arrays going from an HL7 message to a SQL database. If there are two insurance carriers, but one of the sequences (i.e. Group number) for the first carrier is null, but is populated for second, the first array value [0] populates with the second insurance group number. If both are populated in the original HL7 message, it works fine. Any ideas?

  • #2
    Re: IN1 segment arrays

    Can you post your transformer and a sample message?

    Thanks,
    -Chris
    Chris Lang

    Comment


    • #3
      Re: IN1 segment arrays

      Chris,
      Thanks for looking at this!
      Andi

      TRANSFORMER:
      - <com.webreach.mirth.model.Transformer>
      - <steps>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>0</sequenceNumber>
      <name>FieldSeparator</name>
      <script>localMap.put(&#039;FieldSeparator&#039;, msg[&#039;MSH&#039;][&#039;MSH.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>FieldSeparator</string>
      </entry>
      - <entry>
      <string>isGlobal</string>
      <string>0</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>1</sequenceNumber>
      <name>EncodingCharacters</name>
      <script>localMap.put(&#039;EncodingCharacters&#039 ;, msg[&#039;MSH&#039;][&#039;MSH.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>EncodingCharacters</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>2</sequenceNumber>
      <name>SendingApplication</name>
      <script>localMap.put(&#039;SendingApplication&#039 ;, msg[&#039;MSH&#039;][&#039;MSH.3&#039;][&#039;HD.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.3&#039;][&#039;HD.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>SendingApplication</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>3</sequenceNumber>
      <name>ReceivingApplication</name>
      <script>localMap.put(&#039;ReceivingApplication&#0 39;, msg[&#039;MSH&#039;][&#039;MSH.5&#039;][&#039;HD.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.5&#039;][&#039;HD.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ReceivingApplication</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>4</sequenceNumber>
      <name>MessageType</name>
      <script>localMap.put(&#039;MessageType&#039;, msg[&#039;MSH&#039;][&#039;MSH.9&#039;][&#039;CM_MSG.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.9&#039;][&#039;CM_MSG.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>MessageType</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>5</sequenceNumber>
      <name>TriggerEvent</name>
      <script>localMap.put(&#039;TriggerEvent&#039;, msg[&#039;MSH&#039;][&#039;MSH.9&#039;][&#039;CM_MSG.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.9&#039;][&#039;CM_MSG.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>TriggerEvent</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>6</sequenceNumber>
      <name>MessageControlID</name>
      <script>localMap.put(&#039;MessageControlID&#039 ;, msg[&#039;MSH&#039;][&#039;MSH.10&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.10&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>MessageControlID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>7</sequenceNumber>
      <name>ProcessingID</name>
      <script>localMap.put(&#039;ProcessingID&#039;, msg[&#039;MSH&#039;][&#039;MSH.11&#039;][&#039;PT.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.11&#039;][&#039;PT.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ProcessingID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>8</sequenceNumber>
      <name>VersionID</name>
      <script>localMap.put(&#039;VersionID&#039;, msg[&#039;MSH&#039;][&#039;MSH.12&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.12&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>VersionID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>9</sequenceNumber>
      <name>ApplicationACKType</name>
      <script>localMap.put(&#039;ApplicationACKType&#039 ;, msg[&#039;MSH&#039;][&#039;MSH.16&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;MSH&#039;][&#039;MSH.16&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ApplicationACKType</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>10</sequenceNumber>
      <name>EventCodeType</name>
      <script>localMap.put(&#039;EventCodeType&#039;, msg[&#039;EVN&#039;][&#039;EVN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;EVN&#039;][&#039;EVN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>EventCodeType</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>11</sequenceNumber>
      <name>RecordedDate</name>
      <script>localMap.put(&#039;RecordedDate&#039;, msg[&#039;EVN&#039;][&#039;EVN.2&#039;][&#039;TS.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;EVN&#039;][&#039;EVN.2&#039;][&#039;TS.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>RecordedDate</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>12</sequenceNumber>
      <name>EventReasonCode</name>
      <script>localMap.put(&#039;EventReasonCode&#039; , msg[&#039;EVN&#039;][&#039;EVN.3&#039;][&#039;TS.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;EVN&#039;][&#039;EVN.3&#039;][&#039;TS.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>EventReasonCode</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>13</sequenceNumber>
      <name>PatientIDExternal</name>
      <script>localMap.put(&#039;PatientIDExternal&#039; , msg[&#039;PID&#039;][&#039;PID.18&#039;][&#039;CX.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.18&#039;][&#039;CX.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientIDExternal</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>14</sequenceNumber>
      <name>PatientIDInternal</name>
      <script>localMap.put(&#039;PatientIDInternal&#039; , msg[&#039;PID&#039;][&#039;PID.3&#039;][&#039;CX.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.3&#039;][&#039;CX.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientIDInternal</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>15</sequenceNumber>
      <name>PatientLast</name>
      <script>localMap.put(&#039;PatientLast&#039;, msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientLast</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>16</sequenceNumber>
      <name>PatientFirst</name>
      <script>localMap.put(&#039;PatientFirst&#039;, msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientFirst</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>17</sequenceNumber>
      <name>PatientMiddle</name>
      <script>localMap.put(&#039;PatientMiddle&#039;, msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.3&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.3&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientMiddle</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>18</sequenceNumber>
      <name>PatientSuffix</name>
      <script>localMap.put(&#039;PatientSuffix&#039;, msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.4&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.4&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientSuffix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>19</sequenceNumber>
      <name>PatientPrefix</name>
      <script>localMap.put(&#039;PatientPrefix&#039;, msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.5&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.5&#039;][&#039;XPN.5&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientPrefix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>20</sequenceNumber>
      <name>PatientBirthdate</name>
      <script>localMap.put(&#039;PatientBirthdate&#039 ;, msg[&#039;PID&#039;][&#039;PID.7&#039;][&#039;TS.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.7&#039;][&#039;TS.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientBirthdate</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>21</sequenceNumber>
      <name>PatientSex</name>
      <script>localMap.put(&#039;PatientSex&#039;, msg[&#039;PID&#039;][&#039;PID.8&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.8&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientSex</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>22</sequenceNumber>
      <name>PatientRace</name>
      <script>localMap.put(&#039;PatientRace&#039;, msg[&#039;PID&#039;][&#039;PID.10&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.10&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientRace</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>23</sequenceNumber>
      <name>PatientAddress1</name>
      <script>localMap.put(&#039;PatientAddress1&#039; , msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientAddress1</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>24</sequenceNumber>
      <name>PatientAddress2</name>
      <script>localMap.put(&#039;PatientAddress2&#039; , msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientAddress2</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>25</sequenceNumber>
      <name>PatientCity</name>
      <script>localMap.put(&#039;PatientCity&#039;, msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.3&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.3&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientCity</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>26</sequenceNumber>
      <name>PatientState</name>
      <script>localMap.put(&#039;PatientState&#039;, msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.4&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.4&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientState</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>27</sequenceNumber>
      <name>PatientZip</name>
      <script>localMap.put(&#039;PatientZip&#039;, msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.5&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.11&#039;][&#039;XAD.5&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientZip</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>28</sequenceNumber>
      <name>PatientPhoneHome</name>
      <script>localMap.put(&#039;PatientPhoneHome&#039 ;, msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientPhoneHome</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>29</sequenceNumber>
      <name>PatientPhoneWork</name>
      <script>localMap.put(&#039;PatientPhoneWork&#039 ;, msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.14&#039;][&#039;XTN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientPhoneWork</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>30</sequenceNumber>
      <name>PatientSSN</name>
      <script>localMap.put(&#039;PatientSSN&#039;, msg[&#039;PID&#039;][&#039;PID.19&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PID&#039;][&#039;PID.19&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientSSN</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>31</sequenceNumber>
      <name>PatientClass</name>
      <script>localMap.put(&#039;PatientClass&#039;, msg[&#039;PV1&#039;][&#039;PV1.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PV1&#039;][&#039;PV1.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>PatientClass</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>32</sequenceNumber>
      <name>ReferringLast</name>
      <script>localMap.put(&#039;ReferringLast&#039;, msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ReferringLast</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>33</sequenceNumber>
      <name>ReferringFirst</name>
      <script>localMap.put(&#039;ReferringFirst&#039;, msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.3&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.3&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ReferringFirst</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>34</sequenceNumber>
      <name>ReferringMiddle</name>
      <script>localMap.put(&#039;ReferringMiddle&#039; , msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.4&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.4&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ReferringMiddle</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>35</sequenceNumber>
      <name>ReferringSuffix</name>
      <script>localMap.put(&#039;ReferringSuffix&#039; , msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.5&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.5&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ReferringSuffix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>36</sequenceNumber>
      <name>ReferringPrefix</name>
      <script>localMap.put(&#039;ReferringPrefix&#039; , msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.6&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;PV1&#039;][&#039;PV1.8&#039;][&#039;XCN.6&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>ReferringPrefix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>37</sequenceNumber>
      <name>GuarantorID</name>
      <script>localMap.put(&#039;GuarantorID&#039;, msg[&#039;GT1&#039;][&#039;GT1.2&#039;][&#039;CX.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.2&#039;][&#039;CX.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>38</sequenceNumber>
      <name>GuarantorLast</name>
      <script>localMap.put(&#039;GuarantorLast&#039;, msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorLast</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>39</sequenceNumber>
      <name>GuarantorFirst</name>
      <script>localMap.put(&#039;GuarantorFirst&#039;, msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorFirst</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>40</sequenceNumber>
      <name>GuarantorMiddle</name>
      <script>localMap.put(&#039;GuarantorMiddle&#039; , msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.3&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.3&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorMiddle</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>41</sequenceNumber>
      <name>GuarantorSuffix</name>
      <script>localMap.put(&#039;GuarantorSuffix&#039; , msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.4&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.4&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorSuffix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>42</sequenceNumber>
      <name>GuarantorPrefix</name>
      <script>localMap.put(&#039;GuarantorPrefix&#039; , msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.5&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.3&#039;][&#039;XPN.5&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorPrefix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>43</sequenceNumber>
      <name>GuarantorAddress1</name>
      <script>localMap.put(&#039;GuarantorAddress1&#039; , msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorAddress1</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>44</sequenceNumber>
      <name>GuarantorAddress2</name>
      <script>localMap.put(&#039;GuarantorAddress2&#039; , msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorAddress2</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>45</sequenceNumber>
      <name>GuarantorCity</name>
      <script>localMap.put(&#039;GuarantorCity&#039;, msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.3&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.3&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorCity</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>46</sequenceNumber>
      <name>GuarantorState</name>
      <script>localMap.put(&#039;GuarantorState&#039;, msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.4&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.4&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorState</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>47</sequenceNumber>
      <name>GuarantorZip</name>
      <script>localMap.put(&#039;GuarantorZip&#039;, msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.5&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.5&#039;][&#039;XAD.5&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorZip</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>48</sequenceNumber>
      <name>GuarantorPhoneHome</name>
      <script>localMap.put(&#039;GuarantorPhoneHome&#039 ;, msg[&#039;GT1&#039;][&#039;GT1.6&#039;][&#039;XTN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.6&#039;][&#039;XTN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorPhoneHome</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>49</sequenceNumber>
      <name>GuarantorPhoneWork</name>
      <script>localMap.put(&#039;GuarantorPhoneWork&#039 ;, msg[&#039;GT1&#039;][&#039;GT1.7&#039;][&#039;XTN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.7&#039;][&#039;XTN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorPhoneWork</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>50</sequenceNumber>
      <name>GuarantorRelationship</name>
      <script>localMap.put(&#039;GuarantorRelationship&# 039;, msg[&#039;GT1&#039;][&#039;GT1.11&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.11&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorRelationship</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>51</sequenceNumber>
      <name>GuarantorSSN</name>
      <script>localMap.put(&#039;GuarantorSSN&#039;, msg[&#039;GT1&#039;][&#039;GT1.12&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.12&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorSSN</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>52</sequenceNumber>
      <name>GuarantorEmployerName</name>
      <script>localMap.put(&#039;GuarantorEmployerName&# 039;, msg[&#039;GT1&#039;][&#039;GT1.16&#039;][&#039;XPN.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.16&#039;][&#039;XPN.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorEmployerName</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>53</sequenceNumber>
      <name>GuarantorEmployerAddress1</name>
      <script>localMap.put(&#039;GuarantorEmployerAddres s1&#039;, msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.1&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.1&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorEmployerAddress1</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>54</sequenceNumber>
      <name>GuarantorEmployerAddress2</name>
      <script>localMap.put(&#039;GuarantorEmployerAddres s2&#039;, msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.2&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.2&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorEmployerAddress2</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>55</sequenceNumber>
      <name>GuarantorEmployerCity</name>
      <script>localMap.put(&#039;GuarantorEmployerCity&# 039;, msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.3&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.3&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorEmployerCity</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>56</sequenceNumber>
      <name>GuarantorEmployerState</name>
      <script>localMap.put(&#039;GuarantorEmployerState& #039;, msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.4&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.4&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorEmployerState</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>57</sequenceNumber>
      <name>GuarantorEmployerZip</name>
      <script>localMap.put(&#039;GuarantorEmployerZip&#0 39;, msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.5&#039;].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;GT1&#039;][&#039;GT1.17&#039;][&#039;XAD.5&#039;]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>GuarantorEmployerZip</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>58</sequenceNumber>
      <name>SetIDIN1</name>
      <script>localMap.put(&#039;SetIDIN1&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.1&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.1&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>SetIDIN1</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>59</sequenceNumber>
      <name>IN1PlanID</name>
      <script>localMap.put(&#039;IN1PlanID&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.2&#039;][&#039;CE.1&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.2&#039;][&#039;CE.1&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1PlanID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>60</sequenceNumber>
      <name>IN1CompanyID</name>
      <script>localMap.put(&#039;IN1CompanyID&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.3&#039;][&#039;CX.1&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.3&#039;][&#039;CX.1&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1CompanyID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>61</sequenceNumber>
      <name>IN1CompanyName</name>
      <script>localMap.put(&#039;IN1CompanyName&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.4&#039;][&#039;XON.1&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.4&#039;][&#039;XON.1&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1CompanyName</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>62</sequenceNumber>
      <name>IN1GroupNumber</name>
      <script>localMap.put(&#039;IN1GroupNumber&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.8&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.8&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1GroupNumber</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>63</sequenceNumber>
      <name>IN1Last</name>
      <script>localMap.put(&#039;IN1Last&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.1&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.1&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1Last</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>64</sequenceNumber>
      <name>IN1First</name>
      <script>localMap.put(&#039;IN1First&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.2&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.2&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1First</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>65</sequenceNumber>
      <name>IN1Middle</name>
      <script>localMap.put(&#039;IN1Middle&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.3&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.3&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1Middle</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>66</sequenceNumber>
      <name>IN1Suffix</name>
      <script>localMap.put(&#039;IN1Suffix&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.4&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.4&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1Suffix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>67</sequenceNumber>
      <name>IN1Prefix</name>
      <script>localMap.put(&#039;IN1Prefix&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.5&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.5&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1Prefix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>68</sequenceNumber>
      <name>IN1Relation</name>
      <script>localMap.put(&#039;IN1Relation&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.17&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.17&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1Relation</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>69</sequenceNumber>
      <name>IN1PolicyNumber</name>
      <script>localMap.put(&#039;IN1PolicyNumber&#039; , msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.36&#039;][0].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.36&#039;][0]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN1PolicyNumber</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>70</sequenceNumber>
      <name>SetIDIN2</name>
      <script>localMap.put(&#039;SetIDIN2&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.1&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.1&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>SetIDIN2</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>71</sequenceNumber>
      <name>IN2PlanID</name>
      <script>localMap.put(&#039;IN2PlanID&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.2&#039;][&#039;CE.1&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.2&#039;][&#039;CE.1&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2PlanID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>72</sequenceNumber>
      <name>IN2CompanyID</name>
      <script>localMap.put(&#039;IN2CompanyID&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.3&#039;][&#039;CX.1&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.3&#039;][&#039;CX.1&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2CompanyID</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>73</sequenceNumber>
      <name>IN2CompanyName</name>
      <script>localMap.put(&#039;IN2CompanyName&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.4&#039;][&#039;XON.1&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.4&#039;][&#039;XON.1&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2CompanyName</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>74</sequenceNumber>
      <name>IN2GroupNumber</name>
      <script>localMap.put(&#039;IN2GroupNumber&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.8&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.8&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2GroupNumber</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>75</sequenceNumber>
      <name>IN2Last</name>
      <script>localMap.put(&#039;IN2Last&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.1&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.1&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2Last</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>76</sequenceNumber>
      <name>IN2First</name>
      <script>localMap.put(&#039;IN2First&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.2&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.2&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2First</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>77</sequenceNumber>
      <name>IN2Middle</name>
      <script>localMap.put(&#039;IN2Middle&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.3&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.3&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2Middle</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>78</sequenceNumber>
      <name>IN2Suffix</name>
      <script>localMap.put(&#039;IN2Suffix&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.4&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.4&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2Suffix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>79</sequenceNumber>
      <name>IN2Prefix</name>
      <script>localMap.put(&#039;IN2Prefix&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.5&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.16&#039;][&#039;XPN.5&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2Prefix</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>80</sequenceNumber>
      <name>IN2Relation</name>
      <script>localMap.put(&#039;IN2Relation&#039;, msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.17&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.17&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2Relation</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      - <com.webreach.mirth.model.Step>
      <sequenceNumber>81</sequenceNumber>
      <name>IN2PolicyNumber</name>
      <script>localMap.put(&#039;IN2PolicyNumber&#039; , msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.36&#039;][1].toString());</script>
      <type>Mapper</type>
      - <data class="map">
      - <entry>
      <string>Mapping</string>
      <string>msg[&#039;ADT_A01.INSURANCE&#039;][&#039;IN1&#039;][&#039;IN1.36&#039;][1]</string>
      </entry>
      - <entry>
      <string>Variable</string>
      <string>IN2PolicyNumber</string>
      </entry>
      </data>
      </com.webreach.mirth.model.Step>
      </steps>
      <template>MSH|^~\&|LASTWORD|01|AllianceMIK|97|||AD T^A04|20061016111646012|P|2.3||||AL| EVN|A04|20061016111646|01| PID|||01234567||SMITH^John^J^SR^Mr||19500110|M||W| 123 MAIN CT^APT2^CINCINNATI^OH^45230||513-555-5555|513-555-5555||||123456789|123456789 NK1|1|UNEMPLOYED||^^^^|||PTEMP|||||||||||||||||||| |||||||| PV1||I||||||^DOCTORLAST^DOCTORFIRST^MIDDLE^SUFFIX^ PREFIX|||||||||||||||||||||||||||||||01||||||| GT1||500|SMITH^John^J^SR^Mr||123 MAIN CT^APT2^CINCINNATI^OH^45230|513-555-5555|513-555-5555||||P|270525552||||UNEMPLOYED|123 Main Street^Suite 2^Cincinnati^OH^45206|| IN1|1|0558|1|BLUE ACCESS*||||123||||||C2XXX3||SMITH^Amy^M^SR^Mrs|02| ||||||||||||||||||YRP123X45678||||||||||||||B|0914 2006| IN1|2|0001|2|ALLIANCE BUSINESS CENT||||456||||||C2XXX3||SMITH^Amy^M^SR^Mrs|02|||| |||||||||||||||9999999||||||||||||||B|09142006|</template>
      </com.webreach.mirth.model.Transformer>


      Example Message:
      MSH|^~\&|MISYS|01|MIK|97|||ADT^A04|200611101431296 07|P|2.3||||AL|
      EVN|A04|20061110143129|01|
      PID|||02176793||DUCK^Daisy^||19410101|F|||123 Main Street^^Maineville^OH^45154||800-555-1212|||||888888888|999999999
      NK1|1|RETIRED||^^^^|||PTEMP||||||||||||||||||||||| |||||
      PV1||I||||||^MOUSE^MICKEY||||||||||||||||||||||||| ||||||01|||||||
      GT1||500|DUCK^Daisy^||123 Main Street^^Maineville^OH^45154|800-555-1212|||||P|999999999||||RETIRED|^^^^||
      IN1|1|0542|1|MEDICARE||||||||||||DUCK^Daisy^|01||| ||||||||||||||||333333333D||||||||||||||B|09132006 |
      IN1|2|0540|2|MEDICAL MUTUAL||||227000006||||||00/I||DUCK^Daisy^|01|||||||||||||||||||555559999999|| ||||||||||||B|09132006|

      Comment


      • #4
        Re: IN1 segment arrays

        Hi Chris,
        I think this message fell down the list with all of the other things going on. If you have time, could you take a look?
        Thanks!
        Andrea

        Comment

        Working...
        X