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?
Announcement
Collapse
No announcement yet.
IN1 segment arrays
Collapse
X
-
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('FieldSeparator', msg['MSH']['MSH.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.1']</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('EncodingCharacters' ;, msg['MSH']['MSH.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.2']</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('SendingApplication' ;, msg['MSH']['MSH.3']['HD.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.3']['HD.1']</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('ReceivingApplication� 39;, msg['MSH']['MSH.5']['HD.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.5']['HD.1']</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('MessageType', msg['MSH']['MSH.9']['CM_MSG.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.9']['CM_MSG.1']</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('TriggerEvent', msg['MSH']['MSH.9']['CM_MSG.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.9']['CM_MSG.2']</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('MessageControlID' ;, msg['MSH']['MSH.10'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.10']</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('ProcessingID', msg['MSH']['MSH.11']['PT.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.11']['PT.1']</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('VersionID', msg['MSH']['MSH.12'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.12']</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('ApplicationACKType' ;, msg['MSH']['MSH.16'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['MSH']['MSH.16']</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('EventCodeType', msg['EVN']['EVN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['EVN']['EVN.1']</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('RecordedDate', msg['EVN']['EVN.2']['TS.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['EVN']['EVN.2']['TS.1']</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('EventReasonCode' , msg['EVN']['EVN.3']['TS.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['EVN']['EVN.3']['TS.1']</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('PatientIDExternal' , msg['PID']['PID.18']['CX.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.18']['CX.1']</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('PatientIDInternal' , msg['PID']['PID.3']['CX.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.3']['CX.1']</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('PatientLast', msg['PID']['PID.5']['XPN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['XPN.1']</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('PatientFirst', msg['PID']['PID.5']['XPN.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['XPN.2']</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('PatientMiddle', msg['PID']['PID.5']['XPN.3'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['XPN.3']</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('PatientSuffix', msg['PID']['PID.5']['XPN.4'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['XPN.4']</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('PatientPrefix', msg['PID']['PID.5']['XPN.5'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['XPN.5']</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('PatientBirthdate' ;, msg['PID']['PID.7']['TS.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.7']['TS.1']</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('PatientSex', msg['PID']['PID.8'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.8']</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('PatientRace', msg['PID']['PID.10'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.10']</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('PatientAddress1' , msg['PID']['PID.11']['XAD.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.11']['XAD.1']</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('PatientAddress2' , msg['PID']['PID.11']['XAD.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.11']['XAD.2']</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('PatientCity', msg['PID']['PID.11']['XAD.3'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.11']['XAD.3']</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('PatientState', msg['PID']['PID.11']['XAD.4'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.11']['XAD.4']</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('PatientZip', msg['PID']['PID.11']['XAD.5'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.11']['XAD.5']</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('PatientPhoneHome' ;, msg['PID']['PID.13']['XTN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.13']['XTN.1']</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('PatientPhoneWork' ;, msg['PID']['PID.14']['XTN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.14']['XTN.1']</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('PatientSSN', msg['PID']['PID.19'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PID']['PID.19']</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('PatientClass', msg['PV1']['PV1.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PV1']['PV1.2']</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('ReferringLast', msg['PV1']['PV1.8']['XCN.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PV1']['PV1.8']['XCN.2']</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('ReferringFirst', msg['PV1']['PV1.8']['XCN.3'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PV1']['PV1.8']['XCN.3']</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('ReferringMiddle' , msg['PV1']['PV1.8']['XCN.4'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PV1']['PV1.8']['XCN.4']</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('ReferringSuffix' , msg['PV1']['PV1.8']['XCN.5'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PV1']['PV1.8']['XCN.5']</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('ReferringPrefix' , msg['PV1']['PV1.8']['XCN.6'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['PV1']['PV1.8']['XCN.6']</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('GuarantorID', msg['GT1']['GT1.2']['CX.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.2']['CX.1']</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('GuarantorLast', msg['GT1']['GT1.3']['XPN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.3']['XPN.1']</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('GuarantorFirst', msg['GT1']['GT1.3']['XPN.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.3']['XPN.2']</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('GuarantorMiddle' , msg['GT1']['GT1.3']['XPN.3'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.3']['XPN.3']</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('GuarantorSuffix' , msg['GT1']['GT1.3']['XPN.4'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.3']['XPN.4']</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('GuarantorPrefix' , msg['GT1']['GT1.3']['XPN.5'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.3']['XPN.5']</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('GuarantorAddress1' , msg['GT1']['GT1.5']['XAD.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.5']['XAD.1']</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('GuarantorAddress2' , msg['GT1']['GT1.5']['XAD.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.5']['XAD.2']</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('GuarantorCity', msg['GT1']['GT1.5']['XAD.3'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.5']['XAD.3']</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('GuarantorState', msg['GT1']['GT1.5']['XAD.4'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.5']['XAD.4']</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('GuarantorZip', msg['GT1']['GT1.5']['XAD.5'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.5']['XAD.5']</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('GuarantorPhoneHome' ;, msg['GT1']['GT1.6']['XTN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.6']['XTN.1']</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('GuarantorPhoneWork' ;, msg['GT1']['GT1.7']['XTN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.7']['XTN.1']</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('GuarantorRelationship&# 039;, msg['GT1']['GT1.11'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.11']</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('GuarantorSSN', msg['GT1']['GT1.12'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.12']</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('GuarantorEmployerName&# 039;, msg['GT1']['GT1.16']['XPN.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.16']['XPN.1']</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('GuarantorEmployerAddres s1', msg['GT1']['GT1.17']['XAD.1'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.17']['XAD.1']</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('GuarantorEmployerAddres s2', msg['GT1']['GT1.17']['XAD.2'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.17']['XAD.2']</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('GuarantorEmployerCity&# 039;, msg['GT1']['GT1.17']['XAD.3'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.17']['XAD.3']</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('GuarantorEmployerState& #039;, msg['GT1']['GT1.17']['XAD.4'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.17']['XAD.4']</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('GuarantorEmployerZip� 39;, msg['GT1']['GT1.17']['XAD.5'].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['GT1']['GT1.17']['XAD.5']</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('SetIDIN1', msg['ADT_A01.INSURANCE']['IN1']['IN1.1'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.1'][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('IN1PlanID', msg['ADT_A01.INSURANCE']['IN1']['IN1.2']['CE.1'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.2']['CE.1'][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('IN1CompanyID', msg['ADT_A01.INSURANCE']['IN1']['IN1.3']['CX.1'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.3']['CX.1'][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('IN1CompanyName', msg['ADT_A01.INSURANCE']['IN1']['IN1.4']['XON.1'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.4']['XON.1'][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('IN1GroupNumber', msg['ADT_A01.INSURANCE']['IN1']['IN1.8'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.8'][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('IN1Last', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.1'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.1'][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('IN1First', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.2'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.2'][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('IN1Middle', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.3'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.3'][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('IN1Suffix', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.4'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.4'][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('IN1Prefix', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.5'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.5'][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('IN1Relation', msg['ADT_A01.INSURANCE']['IN1']['IN1.17'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.17'][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('IN1PolicyNumber' , msg['ADT_A01.INSURANCE']['IN1']['IN1.36'][0].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.36'][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('SetIDIN2', msg['ADT_A01.INSURANCE']['IN1']['IN1.1'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.1'][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('IN2PlanID', msg['ADT_A01.INSURANCE']['IN1']['IN1.2']['CE.1'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.2']['CE.1'][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('IN2CompanyID', msg['ADT_A01.INSURANCE']['IN1']['IN1.3']['CX.1'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.3']['CX.1'][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('IN2CompanyName', msg['ADT_A01.INSURANCE']['IN1']['IN1.4']['XON.1'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.4']['XON.1'][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('IN2GroupNumber', msg['ADT_A01.INSURANCE']['IN1']['IN1.8'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.8'][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('IN2Last', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.1'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.1'][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('IN2First', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.2'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.2'][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('IN2Middle', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.3'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.3'][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('IN2Suffix', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.4'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.4'][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('IN2Prefix', msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.5'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.16']['XPN.5'][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('IN2Relation', msg['ADT_A01.INSURANCE']['IN1']['IN1.17'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.17'][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('IN2PolicyNumber' , msg['ADT_A01.INSURANCE']['IN1']['IN1.36'][1].toString());</script>
<type>Mapper</type>
- <data class="map">
- <entry>
<string>Mapping</string>
<string>msg['ADT_A01.INSURANCE']['IN1']['IN1.36'][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
Comment