Announcement

Collapse
No announcement yet.

please see this

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

  • please see this

    instead of this line shouldnt i be getting the actual data in my <caseid> tag
    <CX.1>&lt;caseid&gt;101&lt;/caseid&gt; &lt;caseid&gt;102&lt;/caseid&gt; &lt;caseid/&gt;</CX.1>

  • #2
    Re: please see this

    this seems an error with your mapping, and with the XML you&#039;re using as input.

    Please, could you post your transformer step, please ?

    Comment


    • #3
      Re: please see this

      yes, sure
      i have this xml file as source , so in the source tab i am editing a transformer, i select the incoming tab ->paste the xml
      outgoing tab -> paste the skeleton of hl7
      add step
      change the type to message builder
      message segment -> select outgoing tag ,open the tree veiw n drag till the tag to be mapped (select the value of the tag but if we are selecting the value from the template will the same value appear in the transformed message please comment on this i.e if patient name in the sample hl7 message is &#039;tom&#039; when my message is generated would the name be &#039;tom&#039; or would it select dynamically from the xml file i.e my incoming data )
      mapping -> select the incoming tab-> choose a tag from xml

      Comment


      • #4
        Re: please see this

        Can you paste your sample XML and your channel.

        Thanks!
        Chris Lang

        Comment


        • #5
          Re: please see this

          hey my xml is as follows but how would i get my channel xml i am unable to locate it

          Comment


          • #6
            Re: please see this

            hi, export your channel first. That way, you can be able to see its xml file. btw, I haven&#039;t received yet the sreen shots we&#039;re waiting for.. huhuhu
            Tonet

            Comment


            • #7
              Re: please see this

              here is my xml chris, plz help me out
              <com.webreach.mirth.model.Channel>
              <id>d3c7a551-fc97-4f0e-81f6-8168d3891d36</id>
              <name>ch1</name>
              <description></description>
              <enabled>true</enabled>
              <version>1.4.0</version>
              <revision>70</revision>
              <sourceConnector>
              <name>sourceConnector</name>
              <properties>
              <property name="fileAge">0</property>
              <property name="autoDelete">1</property>
              <property name="moveToDirectory"></property>
              <property name="pollingFrequency">10000</property>
              <property name="host">D:/deepa/mirth</property>
              <property name="moveToPattern"></property>
              <property name="checkFileAge">0</property>
              <property name="DataType">File Reader</property>
              <property name="processBatchFiles">1</property>
              <property name="charsetEncoding">DEFAULT_ENCODING</property>
              <property name="sortAttribute">date</property>
              <property name="binary">0</property>
              <property name="fileFilter">info.rtf</property>
              </properties>
              <transformer>
              <steps>
              <com.webreach.mirth.model.Step>
              <sequenceNumber>0</sequenceNumber>
              <name>tmp[&apos;PID&apos;][&apos;PID.2&apos;][&apos;CX.1&apos;]</name>
              <script>tmp[&apos;PID&apos;][&apos;PID.2&apos;][&apos;CX.1&apos;] = validate(msg[&apos;Patient&apos;][&apos;caseid&apos;].toString(), &apos;&apos;, new Array());</script>
              <type>Message Builder</type>
              <data class="map">
              <entry>
              <string>Mapping</string>
              <string>msg[&apos;Patient&apos;][&apos;caseid&apos;].toString()</string>
              </entry>
              <entry>
              <string>Variable</string>
              <string>tmp[&apos;PID&apos;][&apos;PID.2&apos;][&apos;CX.1&apos;]</string>
              </entry>
              <entry>
              <string>RegularExpressions</string>
              <list/>
              </entry>
              <entry>
              <string>DefaultValue</string>
              <string></string>
              </entry>
              </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
              <sequenceNumber>1</sequenceNumber>
              <name>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.1&apos;][&apos;FN.1&apos;]</name>
              <script>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.1&apos;][&apos;FN.1&apos;] = validate(msg[&apos;Patient&apos;][&apos;lname&apos;].toString(), &apos;&apos;, new Array());</script>
              <type>Message Builder</type>
              <data class="map">
              <entry>
              <string>Mapping</string>
              <string>msg[&apos;Patient&apos;][&apos;lname&apos;].toString()</string>
              </entry>
              <entry>
              <string>Variable</string>
              <string>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.1&apos;][&apos;FN.1&apos;]</string>
              </entry>
              <entry>
              <string>RegularExpressions</string>
              <list/>
              </entry>
              <entry>
              <string>DefaultValue</string>
              <string></string>
              </entry>
              </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
              <sequenceNumber>2</sequenceNumber>
              <name>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.1&apos;][&apos;FN.1&apos;]</name>
              <script>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.1&apos;][&apos;FN.1&apos;] = validate(msg[&apos;Patient&apos;][&apos;sname&apos;].toString(), &apos;&apos;, new Array());</script>
              <type>Message Builder</type>
              <data class="map">
              <entry>
              <string>Mapping</string>
              <string>msg[&apos;Patient&apos;][&apos;sname&apos;].toString()</string>
              </entry>
              <entry>
              <string>Variable</string>
              <string>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.1&apos;][&apos;FN.1&apos;]</string>
              </entry>
              <entry>
              <string>RegularExpressions</string>
              <list/>
              </entry>
              <entry>
              <string>DefaultValue</string>
              <string></string>
              </entry>
              </data>
              </com.webreach.mirth.model.Step>
              <com.webreach.mirth.model.Step>
              <sequenceNumber>3</sequenceNumber>
              <name>tmp[&apos;PID&apos;][&apos;PID.7&apos;]</name>
              <script>tmp[&apos;PID&apos;][&apos;PID.7&apos;] = validate(msg[&apos;Patient&apos;][&apos;db&apos;].toString(), &apos;&apos;, new Array());</script>
              <type>Message Builder</type>
              <data class="map">
              <entry>
              <string>Mapping</string>
              <string>msg[&apos;Patient&apos;][&apos;db&apos;].toString()</string>
              </entry>
              <entry>
              <string>Variable</string>
              <string>tmp[&apos;PID&apos;][&apos;PID.7&apos;]</string>
              </entry>
              <entry>
              <string>RegularExpressions</string>
              <list/>
              </entry>
              <entry>
              <string>DefaultValue</string>
              <string></string>
              </entry>
              </data>
              </com.webreach.mirth.model.Step>
              </steps>
              <inboundTemplate>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0D;&lt;Root&gt;&#x0D;&lt;Patient&gt ;&#x0D;&lt;caseid&gt;&#x0D;101&#x0D;&lt;/caseid&gt;&#x0D;&lt;lname&gt;&#x0D;deepa&#x0D;&lt;/lname&gt;&#x0D;&lt;sname&gt;&#x0D;ganu&#x0D;&lt;/sname&gt;&#x0D;&lt;db&gt;&#x0D;11-10-1982&#x0D;&lt;/db&gt;&#x0D;&lt;/Patient&gt;&#x0D;&lt;/Root&gt;&#x0D;</inboundTemplate>
              <outboundTemplate>MSH|^~\&amp;|Mirth|1|||200604453 5||ADT^A04|603340|D|2.3.1&#x0D;EVN|A04|20060404090 742&#x0D;PID|1|800888^^^Mirth^PN|999945682^^^AccMg r^MR^1||TEST^PATIENT MF||19570414|M||W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000^^M|31|||E|M||6635130^^^Mirth ^VN^1|000987655|||2|||||NOT A VETERAN|||N&#x0D;PD1||||1335^ALCOTT^KAREN^^^^^^Acc Mgr^^^^CI|||I&#x0D;NK1|1|TEST^MARGARET|W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||Y&#x0D;PV1|1|E|ED^^^1|1||| 1281^MARKHAM^JOSEPH^^^^^^AccMgr^^^^CI|1281^LANG^JO E^^^^^^Mirth^^^^CI||ED||||7|S|||62|6635130^^^AccMg r^VN^1|865^SP KOPP|||||||||||||||||||1||A|||20060404090500&#x0D; PV2||^NO||||||20060404090500|||||||||||||||||||||| ||||||||S&#x0D;DG1|1||^HEADACHE|HEADACHE||A||||||| ||0&#x0D;GT1|1|382582|TEST^PATIENT MF||21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||19570414|M|||000987655|||| ||||11&#x0D;IN1|1|SELF PAY NYS|734|SELF PAY NYS|||||||||||5|TEST^PATIENT MF|1|19570414|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||||||||||||||||||||||11|M|| ||||382582&#x0D;IN1|2|SELF PAY|705|SELFPAY|||||||||||5||1&#x0D;IN2|1||0009876 55&#x0D;</outboundTemplate>
              <inboundProtocol>XML</inboundProtocol>
              <outboundProtocol>HL7V2</outboundProtocol>
              <inboundProperties/>
              <outboundProperties/>
              </transformer>
              <filter>
              <rules/>
              </filter>
              <transportName>File Reader</transportName>
              <mode>SOURCE</mode>
              </sourceConnector>
              <destinationConnectors>
              <com.webreach.mirth.model.Connector>
              <name>Destination 1</name>
              <properties>
              <property name="binary">0</property>
              <property name="charsetEncoding">DEFAULT_ENCODING</property>
              <property name="host">D:/deepa/mirth/log</property>
              <property name="outputPattern">logger.doc</property>
              <property name="DataType">File Writer</property>
              <property name="template">${message.rawData}${message.transf ormedData}${DATE}</property>
              <property name="outputAppend">1</property>
              </properties>
              <transformer>
              <steps/>
              <inboundTemplate>MSH|^~\&amp;|Mirth|1|||2006044535 ||ADT^A04|603340|D|2.3.1&#x0D;EVN|A04|200604040907 42&#x0D;PID|1|800888^^^Mirth^PN|999945682^^^AccMgr ^MR^1||TEST^PATIENT MF||19570414|M||W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000^^M|31|||E|M||6635130^^^Mirth ^VN^1|000987655|||2|||||NOT A VETERAN|||N&#x0D;PD1||||1335^ALCOTT^KAREN^^^^^^Acc Mgr^^^^CI|||I</inboundTemplate>
              <outboundTemplate></outboundTemplate>
              <inboundProtocol>HL7V2</inboundProtocol>
              <outboundProtocol>HL7V2</outboundProtocol>
              <inboundProperties/>
              <outboundProperties/>
              </transformer>
              <filter>
              <rules/>
              </filter>
              <transportName>File Writer</transportName>
              <mode>DESTINATION</mode>
              </com.webreach.mirth.model.Connector>
              </destinationConnectors>
              <properties>
              <property name="synchronous">true</property>
              <property name="encryptData">false</property>
              <property name="dont_store_filtered">false</property>
              <property name="store_messages">true</property>
              <property name="initialState">stopped</property>
              <property name="max_message_age">-1</property>
              <property name="transactional">false</property>
              <property name="error_messages_only">false</property>
              </properties>
              <preprocessingScript>message = message.replace(/[\r\n]/g, &quot;\n&quot;
              var columnnames = new Array(&quot;caseid&quot;,&quot;lname&quot;,&quot;s name&quot;,&quot;bd&quot;
              var nofcolumns = 4;
              var lines = new Array();
              var newmessage = new String();
              newmessage = &quot;&lt;!-- Generated using Mirth PreProc --&gt;\n&quot;;
              newmessage += &quot;&lt;Root&gt;\n&quot;;
              rawData = message;
              lines = rawData.split(&quot;\n&quot;
              for (var i=0;i&lt;lines.length;i++) {
              currline = lines[i];

              newmessage += &quot;&lt;Patient&gt;\n&quot;;
              var data = new Array();
              data = currline.split(&quot;,&quot;
              for (var j = 0; j &lt; nofcolumns; j++){
              newmessage += &quot;&lt;&quot; + columnnames[j] + &quot;&gt;&quot; + data[j] + &quot;&lt;/&quot; + columnnames[j] + &quot;&gt;\n&quot;;
              }
              newmessage += &quot;&lt;/Patient&gt;\n&quot;;
              }
              newmessage += &quot;&lt;/Root&gt;\n&quot;;
              return newmessage;</preprocessingScript>
              </com.webreach.mirth.model.Channel>

              Comment

              Working...
              X