Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

problem with routing messages

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

  • problem with routing messages

    Hello all,

    I have a problem in the following Situation:

    I have a channel that gets following message form:

    Code:
    MSH|^~&|i1 IS-OUT|Ein1^260550244|CLOVERLEAF||20060809143552||ADT^A05^ADT_A05|25191|P|2.4|||AL|NE|DEU|||
    EVN|A01|20060809143527||||20060809143527|Ein1
    PID|1||1161195^^^Ein1^PI||Busse^Dieter^^^^^L^A~Busse^^^^^^B^A||19480813|M|||Eilbrachtweg 11^^M?nchengladbach^^41189^DE^H~^^^^^DE^O||02166-576085^PRN^PH^^^^02166-576085~^PRN^FX^^^~^PRN^CP^^^~^NET^X.400^^^|^WPN^PH^^^||M|CAT||||||Lippstadt|||DE||||N|||20060809143544||||
    PV1|1|I|3A^Z305^305A^IN^^N|||^^^^^N|^^^^|1984453^Althoff^Paul^^^Dr.|2881767^Mahnke/Syben/Halfkann^^^^Drs.|B2W|||||||^^^^||5145012^^^Ein1^VN|||||||||||||||||||||||||20060809143533|||||||
    IN1|1|""|403492|||||||||19480813|99991231||||||||||||||||||R2|||||1308480563|||||||||||||1308480563
    Then the channel routes the message to a second channel using the following JS-code:
    Code:
    if (msg['MSH']['MSH.9']['MSH.9.2'].toString() == 'A01' || 'A05' || 'A14') 
    	 router.routeMessage('ITBReceiverADTA01', message);
    The problem is that message is in XML-form after the routing and the second channel accepts only HL7-form. How can I 'transform the message into HL7-form BEFORE the second channel receives it?
    I tried many transformers, converting XML -> HL7 via the Mirth-Build-in-Functions, but nothing helped, the secon channel still gets the message in XML-Form.

    Alternatively: can I route the message via sending, using port + IP + the LLP protocol (or some other protocol) in order to send the message to the secod channel?

    Thanks for any help!

    Regards,

    Svetlomir

    Post edited by: Svetlomir Kasabov, at: 07/11/2008 06:38

  • #2
    Reroblem with routing messages

    It shouldn't matter. I think when you route messages between channels the source connector is skipped and the channel gets the XML directly.

    In other words, the first channel has already translated the message to XML so the second channel already has what it needs to work on it.
    Jon Bartels

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

    Comment


    • #3
      Reroblem with routing messages

      Thanks for your reply

      The problem is that my second channel can't handle the XML.
      The raw message that it gets is:
      Code:
      <HL7Message><MSH><MSH.1>|</MSH.1><MSH.2>^~&</MSH.2><MSH.3><MSH.3.1>i1 IS-OUT</MSH.3.1></MSH.3><MSH.4><MSH.4.1>Ein1</MSH.4.1><MSH.4.2>260550244</MSH.4.2></MSH.4><MSH.5><MSH.5.1>CLOVERLEAF</MSH.5.1></MSH.5><MSH.6/><MSH.7><MSH.7.1>20060809143552</MSH.7.1></MSH.7><MSH.8/><MSH.9><MSH.9.1>ADT</MSH.9.1><MSH.9.2>A05</MSH.9.2><MSH.9.3>ADT_A05</MSH.9.3></MSH.9><MSH.10><MSH.10.1>25191</MSH.10.1></MSH.10><MSH.11><MSH.11.1>P</MSH.11.1></MSH.11><MSH.12><MSH.12.1>2.4</MSH.12.1></MSH.12><MSH.13/><MSH.14/><MSH.15><MSH.15.1>AL</MSH.15.1></MSH.15><MSH.16><MSH.16.1>NE</MSH.16.1></MSH.16><MSH.17><MSH.17.1>DEU</MSH.17.1></MSH.17><MSH.18/><MSH.19/><MSH.20/></MSH><EVN><EVN.1><EVN.1.1>A01</EVN.1.1></EVN.1><EVN.2><EVN.2.1>20060809143527</EVN.2.1></EVN.2><EVN.3/><EVN.4/><EVN.5/><EVN.6><EVN.6.1>20060809143527</EVN.6.1></EVN.6><EVN.7><EVN.7.1>Ein1</EVN.7.1></EVN.7></EVN><PID><PID.1><PID.1.1>1</PID.1.1></PID.1><PID.2/><PID.3><PID.3.1>1161195</PID.3.1><PID.3.2/><PID.3.3/><PID.3.4>Ein1</PID.3.4><PID.3.5>PI</PID.3.5></PID.3><PID.4/><PID.5><PID.5.1>Busse</PID.5.1><PID.5.2>Dieter</PID.5.2><PID.5.3/><PID.5.4/><PID.5.5/><PID.5.6/><PID.5.7>L</PID.5.7><PID.5.8>A~Busse</PID.5.8><PID.5.9/><PID.5.10/><PID.5.11/><PID.5.12/><PID.5.13/><PID.5.14>B</PID.5.14><PID.5.15>A</PID.5.15></PID.5><PID.6/><PID.7><PID.7.1>19480813</PID.7.1></PID.7><PID.8><PID.8.1>M</PID.8.1></PID.8><PID.9/><PID.10/><PID.11><PID.11.1>Eilbrachtweg 11</PID.11.1><PID.11.2/><PID.11.3>M?nchengladbach</PID.11.3><PID.11.4/><PID.11.5>41189</PID.11.5><PID.11.6>DE</PID.11.6><PID.11.7>H~</PID.11.7><PID.11.8/><PID.11.9/><PID.11.10/><PID.11.11/><PID.11.12>DE</PID.11.12><PID.11.13>O</PID.11.13></PID.11><PID.12/><PID.13><PID.13.1>02166-576085</PID.13.1><PID.13.2>PRN</PID.13.2><PID.13.3>PH</PID.13.3><PID.13.4/><PID.13.5/><PID.13.6/><PID.13.7>02166-576085~</PID.13.7><PID.13.8>PRN</PID.13.8><PID.13.9>FX</PID.13.9><PID.13.10/><PID.13.11/><PID.13.12>~</PID.13.12><PID.13.13>PRN</PID.13.13><PID.13.14>CP</PID.13.14><PID.13.15/><PID.13.16/><PID.13.17>~</PID.13.17><PID.13.18>NET</PID.13.18><PID.13.19>X.400</PID.13.19><PID.13.20/><PID.13.21/><PID.13.22/></PID.13><PID.14><PID.14.1/><PID.14.2>WPN</PID.14.2><PID.14.3>PH</PID.14.3><PID.14.4/><PID.14.5/><PID.14.6/></PID.14><PID.15/><PID.16><PID.16.1>M</PID.16.1></PID.16><PID.17><PID.17.1>CAT</PID.17.1></PID.17><PID.18/><PID.19/><PID.20/><PID.21/><PID.22/><PID.23><PID.23.1>Lippstadt</PID.23.1></PID.23><PID.24/><PID.25/><PID.26><PID.26.1>DE</PID.26.1></PID.26><PID.27/><PID.28/><PID.29/><PID.30><PID.30.1>N</PID.30.1></PID.30><PID.31/><PID.32/><PID.33><PID.33.1>20060809143544</PID.33.1></PID.33><PID.34/><PID.35/><PID.36/><PID.37/></PID><PV1><PV1.1><PV1.1.1>1</PV1.1.1></PV1.1><PV1.2><PV1.2.1>I</PV1.2.1></PV1.2><PV1.3><PV1.3.1>3A</PV1.3.1><PV1.3.2>Z305</PV1.3.2><PV1.3.3>305A</PV1.3.3><PV1.3.4>IN</PV1.3.4><PV1.3.5/><PV1.3.6>N</PV1.3.6></PV1.3><PV1.4/><PV1.5/><PV1.6><PV1.6.1/><PV1.6.2/><PV1.6.3/><PV1.6.4/><PV1.6.5/><PV1.6.6>N</PV1.6.6></PV1.6><PV1.7><PV1.7.1/><PV1.7.2/><PV1.7.3/><PV1.7.4/><PV1.7.5/></PV1.7><PV1.8><PV1.8.1>1984453</PV1.8.1><PV1.8.2>Althoff</PV1.8.2><PV1.8.3>Paul</PV1.8.3><PV1.8.4/><PV1.8.5/><PV1.8.6>Dr.</PV1.8.6></PV1.8><PV1.9><PV1.9.1>2881767</PV1.9.1><PV1.9.2>Mahnke/Syben/Halfkann</PV1.9.2><PV1.9.3/><PV1.9.4/><PV1.9.5/><PV1.9.6>Drs.</PV1.9.6></PV1.9><PV1.10><PV1.10.1>B2W</PV1.10.1></PV1.10><PV1.11/><PV1.12/><PV1.13/><PV1.14/><PV1.15/><PV1.16/><PV1.17><PV1.17.1/><PV1.17.2/><PV1.17.3/><PV1.17.4/><PV1.17.5/></PV1.17><PV1.18/><PV1.19><PV1.19.1>5145012</PV1.19.1><PV1.19.2/><PV1.19.3/><PV1.19.4>Ein1</PV1.19.4><PV1.19.5>VN</PV1.19.5></PV1.19><PV1.20/><PV1.21/><PV1.22/><PV1.23/><PV1.24/><PV1.25/><PV1.26/><PV1.27/><PV1.28/><PV1.29/><PV1.30/><PV1.31/><PV1.32/><PV1.33/><PV1.34/><PV1.35/><PV1.36/><PV1.37/><PV1.38/><PV1.39/><PV1.40/><PV1.41/><PV1.42/><PV1.43/><PV1.44><PV1.44.1>20060809143533</PV1.44.1></PV1.44><PV1.45/><PV1.46/><PV1.47/><PV1.48/><PV1.49/><PV1.50/><PV1.51/></PV1><IN1><IN1.1><IN1.1.1>1</IN1.1.1></IN1.1><IN1.2><IN1.2.1>""</IN1.2.1></IN1.2><IN1.3><IN1.3.1>403492</IN1.3.1></IN1.3><IN1.4/><IN1.5/><IN1.6/><IN1.7/><IN1.8/><IN1.9/><IN1.10/><IN1.11/><IN1.12><IN1.12.1>19480813</IN1.12.1></IN1.12><IN1.13><IN1.13.1>99991231</IN1.13.1></IN1.13><IN1.14/><IN1.15/><IN1.16/><IN1.17/><IN1.18/><IN1.19/><IN1.20/><IN1.21/><IN1.22/><IN1.23/><IN1.24/><IN1.25/><IN1.26/><IN1.27/><IN1.28/><IN1.29/><IN1.30/><IN1.31><IN1.31.1>R2</IN1.31.1></IN1.31><IN1.32/><IN1.33/><IN1.34/><IN1.35/><IN1.36><IN1.36.1>1308480563</IN1.36.1></IN1.36><IN1.37/><IN1.38/><IN1.39/><IN1.40/><IN1.41/><IN1.42/><IN1.43/><IN1.44/><IN1.45/><IN1.46/><IN1.47/><IN1.48/><IN1.49><IN1.49.1>1308480563</IN1.49.1></IN1.49></IN1></HL7Message>
      The transformed message is:
      Code:
      <?xml version="1.0" encoding="UTF-8"?><HL7Message><<HL><<HL.1><<HL.1.1></<HL.1.1><<HL.1.2>essage><</<HL.1.2><<HL.1.3>SH><</<HL.1.3><<HL.1.4>SH.1>|</</<HL.1.4><<HL.1.5>SH.1><</<HL.1.5><<HL.1.6>SH.2>^~&</</<HL.1.6><<HL.1.7>SH.2><</<HL.1.7><<HL.1.8>SH.3><</<HL.1.8><<HL.1.9>SH.3.1>i1 IS-OUT</</<HL.1.9><<HL.1.10>SH.3.1></</<HL.1.10><<HL.1.11>SH.3><</<HL.1.11><<HL.1.12>SH.4><</<HL.1.12><<HL.1.13>SH.4.1>Ein1</</<HL.1.13><<HL.1.14>SH.4.1><</<HL.1.14><<HL.1.15>SH.4.2>260550244</</<HL.1.15><<HL.1.16>SH.4.2></</<HL.1.16><<HL.1.17>SH.4><</<HL.1.17><<HL.1.18>SH.5><</<HL.1.18><<HL.1.19>SH.5.1>CLOVERLEAF</</<HL.1.19><<HL.1.20>SH.5.1></</<HL.1.20><<HL.1.21>SH.5><</<HL.1.21><<HL.1.22>SH.6/><</<HL.1.22><<HL.1.23>SH.</<HL.1.23></<HL.1><<HL.2><<HL.2.1>><</<HL.2.1><<HL.2.2>SH.</<HL.2.2></<HL.2><<HL.3><<HL.3.1>.1>20060809143552</</<HL.3.1><<HL.3.2>SH.</<HL.3.2></<HL.3><<HL.4><<HL.4.1>.1></</<HL.4.1><<HL.4.2>SH.</<HL.4.2></<HL.4><<HL.5><<HL.5.1>><</<HL.5.1><<HL.5.2>SH.8/><</<HL.5.2><<HL.5.3>SH.9><</<HL.5.3><<HL.5.4>SH.9.1>ADT</</<HL.5.4><<HL.5.5>SH.9.1><</<HL.5.5><<HL.5.6>SH.9.2>A05</</<HL.5.6><<HL.5.7>SH.9.2><</<HL.5.7><<HL.5.8>SH.9.3>ADT_A05</</<HL.5.8><<HL.5.9>SH.9.3></</<HL.5.9><<HL.5.10>SH.9><</<HL.5.10><<HL.5.11>SH.10><</<HL.5.11><<HL.5.12>SH.10.1>25191</</<HL.5.12><<HL.5.13>SH.10.1></</<HL.5.13><<HL.5.14>SH.10><</<HL.5.14><<HL.5.15>SH.11><</<HL.5.15><<HL.5.16>SH.11.1>P</</<HL.5.16><<HL.5.17>SH.11.1></</<HL.5.17><<HL.5.18>SH.11><</<HL.5.18><<HL.5.19>SH.12><</<HL.5.19><<HL.5.20>SH.12.1>2.4</</<HL.5.20><<HL.5.21>SH.12.1></</<HL.5.21><<HL.5.22>SH.12><</<HL.5.22><<HL.5.23>SH.13/><</<HL.5.23><<HL.5.24>SH.14/><</<HL.5.24><<HL.5.25>SH.15><</<HL.5.25><<HL.5.26>SH.15.1>AL</</<HL.5.26><<HL.5.27>SH.15.1></</<HL.5.27><<HL.5.28>SH.15><</<HL.5.28><<HL.5.29>SH.16><</<HL.5.29><<HL.5.30>SH.16.1>NE</</<HL.5.30><<HL.5.31>SH.16.1></</<HL.5.31><<HL.5.32>SH.16><</<HL.5.32><<HL.5.33>SH.1</<HL.5.33></<HL.5><<HL.6><<HL.6.1>><</<HL.6.1><<HL.6.2>SH.1</<HL.6.2></<HL.6><<HL.7><<HL.7.1>.1>DEU</</<HL.7.1><<HL.7.2>SH.1</<HL.7.2></<HL.7><<HL.8><<HL.8.1>.1></</<HL.8.1><<HL.8.2>SH.1</<HL.8.2></<HL.8><<HL.9><<HL.9.1>><</<HL.9.1><<HL.9.2>SH.18/><</<HL.9.2><<HL.9.3>SH.19/><</<HL.9.3><<HL.9.4>SH.20/></</<HL.9.4><<HL.9.5>SH><EVN><EVN.1><EVN.1.1>A01</EVN.1.1></EVN.1><EVN.2><EVN.2.1>2006080914352</<HL.9.5></<HL.9><<HL.10><<HL.10.1></EVN.2.1></EVN.2><EVN.3/><EVN.4/><EVN.5/><EVN.6><EVN.6.1>2006080914352</<HL.10.1></<HL.10><<HL.11><<HL.11.1></EVN.6.1></EVN.6><EVN.</<HL.11.1></<HL.11><<HL.12><<HL.12.1>><EVN.</<HL.12.1></<HL.12><<HL.13><<HL.13.1>.1>Ein1</EVN.</<HL.13.1></<HL.13><<HL.14><<HL.14.1>.1></EVN.</<HL.14.1></<HL.14><<HL.15><<HL.15.1>></EVN><PID><PID.1><PID.1.1>1</PID.1.1></PID.1><PID.2/><PID.3><PID.3.1>1161195</PID.3.1><PID.3.2/><PID.3.3/><PID.3.4>Ein1</PID.3.4><PID.3.5>PI</PID.3.5></PID.3><PID.4/><PID.5><PID.5.1>Busse</PID.5.1><PID.5.2>Dieter</PID.5.2><PID.5.3/><PID.5.4/><PID.5.5/><PID.5.6/><PID.5.</<HL.15.1></<HL.15><<HL.16><<HL.16.1>>L</PID.5.</<HL.16.1></<HL.16><<HL.17><<HL.17.1>><PID.5.8>A~Busse</PID.5.8><PID.5.9/><PID.5.10/><PID.5.11/><PID.5.12/><PID.5.13/><PID.5.14>B</PID.5.14><PID.5.15>A</PID.5.15></PID.5><PID.6/><PID.</<HL.17.1></<HL.17><<HL.18><<HL.18.1>><PID.</<HL.18.1></<HL.18><<HL.19><<HL.19.1>.1>19480813</PID.</<HL.19.1></<HL.19><<HL.20><<HL.20.1>.1></PID.</<HL.20.1></<HL.20><<HL.21><<HL.21.1>><PID.8><PID.8.1></<HL.21.1><<HL.21.2></PID.8.1></PID.8><PID.9/><PID.10/><PID.11><PID.11.1>Eilbrachtweg 11</PID.11.1><PID.11.2/><PID.11.3></<HL.21.2><<HL.21.3>önchengladbach</PID.11.3><PID.11.4/><PID.11.5>41189</PID.11.5><PID.11.6>DE</PID.11.6><PID.11.</<HL.21.3></<HL.21><<HL.22><<HL.22.1>>H~</PID.11.</<HL.22.1></<HL.22><<HL.23><<HL.23.1>><PID.11.8/><PID.11.9/><PID.11.10/><PID.11.11/><PID.11.12>DE</PID.11.12><PID.11.13>O</PID.11.13></PID.11><PID.12/><PID.13><PID.13.1>02166-5</<HL.23.1></<HL.23><<HL.24><<HL.24.1>6085</PID.13.1><PID.13.2>PRN</PID.13.2><PID.13.3>PH</PID.13.3><PID.13.4/><PID.13.5/><PID.13.6/><PID.13.</<HL.24.1></<HL.24><<HL.25><<HL.25.1>>02166-5</<HL.25.1></<HL.25><<HL.26><<HL.26.1>6085~</PID.13.</<HL.26.1></<HL.26><<HL.27><<HL.27.1>><PID.13.8>PRN</PID.13.8><PID.13.9>FX</PID.13.9><PID.13.10/><PID.13.11/><PID.13.12>~</PID.13.12><PID.13.13>PRN</PID.13.13><PID.13.14>CP</PID.13.14><PID.13.15/><PID.13.16/><PID.13.1</<HL.27.1></<HL.27><<HL.28><<HL.28.1>>~</PID.13.1</<HL.28.1></<HL.28><<HL.29><<HL.29.1>><PID.13.18>NET</PID.13.18><PID.13.19>X.400</PID.13.19><PID.13.20/><PID.13.21/><PID.13.22/></PID.13><PID.14><PID.14.1/><PID.14.2>WPN</PID.14.2><PID.14.3>PH</PID.14.3><PID.14.4/><PID.14.5/><PID.14.6/></PID.14><PID.15/><PID.16><PID.16.1></<HL.29.1><<HL.29.2></PID.16.1></PID.16><PID.1</<HL.29.2></<HL.29><<HL.30><<HL.30.1>><PID.1</<HL.30.1></<HL.30><<HL.31><<HL.31.1>.1>CAT</PID.1</<HL.31.1></<HL.31><<HL.32><<HL.32.1>.1></PID.1</<HL.32.1></<HL.32><<HL.33><<HL.33.1>><PID.18/><PID.19/><PID.20/><PID.21/><PID.22/><PID.23><PID.23.1>Lippstadt</PID.23.1></PID.23><PID.24/><PID.25/><PID.26><PID.26.1>DE</PID.26.1></PID.26><PID.2</<HL.33.1></<HL.33><<HL.34><<HL.34.1>/><PID.28/><PID.29/><PID.30><PID.30.1>N</PID.30.1></PID.30><PID.31/><PID.32/><PID.33><PID.33.1>20060809143544</PID.33.1></PID.33><PID.34/><PID.35/><PID.36/><PID.3</<HL.34.1></<HL.34><<HL.35><<HL.35.1>/></PID><PV1><PV1.1><PV1.1.1>1</PV1.1.1></PV1.1><PV1.2><PV1.2.1>I</PV1.2.1></PV1.2><PV1.3><PV1.3.1>3A</PV1.3.1><PV1.3.2>Z305</PV1.3.2><PV1.3.3>305A</PV1.3.3><PV1.3.4>IN</PV1.3.4><PV1.3.5/><PV1.3.6>N</PV1.3.6></PV1.3><PV1.4/><PV1.5/><PV1.6><PV1.6.1/><PV1.6.2/><PV1.6.3/><PV1.6.4/><PV1.6.5/><PV1.6.6>N</PV1.6.6></PV1.6><PV1.</<HL.35.1></<HL.35><<HL.36><<HL.36.1>><PV1.</<HL.36.1></<HL.36><<HL.37><<HL.37.1>.1/><PV1.</<HL.37.1></<HL.37><<HL.38><<HL.38.1>.2/><PV1.</<HL.38.1></<HL.38><<HL.39><<HL.39.1>.3/><PV1.</<HL.39.1></<HL.39><<HL.40><<HL.40.1>.4/><PV1.</<HL.40.1></<HL.40><<HL.41><<HL.41.1>.5/></PV1.</<HL.41.1></<HL.41><<HL.42><<HL.42.1>><PV1.8><PV1.8.1>1984453</PV1.8.1><PV1.8.2>Althoff</PV1.8.2><PV1.8.3>Paul</PV1.8.3><PV1.8.4/><PV1.8.5/><PV1.8.6>Dr.</PV1.8.6></PV1.8><PV1.9><PV1.9.1>2881</<HL.42.1></<HL.42><<HL.43><<HL.43.1>6</<HL.43.1></<HL.43><<HL.44><<HL.44.1></PV1.9.1><PV1.9.2></<HL.44.1><<HL.44.2>ahnke/Syben/Halfkann</PV1.9.2><PV1.9.3/><PV1.9.4/><PV1.9.5/><PV1.9.6>Drs.</PV1.9.6></PV1.9><PV1.10><PV1.10.1>B2W</PV1.10.1></PV1.10><PV1.11/><PV1.12/><PV1.13/><PV1.14/><PV1.15/><PV1.16/><PV1.1</<HL.44.2></<HL.44><<HL.45><<HL.45.1>><PV1.1</<HL.45.1></<HL.45><<HL.46><<HL.46.1>.1/><PV1.1</<HL.46.1></<HL.46><<HL.47><<HL.47.1>.2/><PV1.1</<HL.47.1></<HL.47><<HL.48><<HL.48.1>.3/><PV1.1</<HL.48.1></<HL.48><<HL.49><<HL.49.1>.4/><PV1.1</<HL.49.1></<HL.49><<HL.50><<HL.50.1>.5/></PV1.1</<HL.50.1></<HL.50><<HL.51><<HL.51.1>><PV1.18/><PV1.19><PV1.19.1>5145012</PV1.19.1><PV1.19.2/><PV1.19.3/><PV1.19.4>Ein1</PV1.19.4><PV1.19.5>VN</PV1.19.5></PV1.19><PV1.20/><PV1.21/><PV1.22/><PV1.23/><PV1.24/><PV1.25/><PV1.26/><PV1.2</<HL.51.1></<HL.51><<HL.52><<HL.52.1>/><PV1.28/><PV1.29/><PV1.30/><PV1.31/><PV1.32/><PV1.33/><PV1.34/><PV1.35/><PV1.36/><PV1.3</<HL.52.1></<HL.52><<HL.53><<HL.53.1>/><PV1.38/><PV1.39/><PV1.40/><PV1.41/><PV1.42/><PV1.43/><PV1.44><PV1.44.1>20060809143533</PV1.44.1></PV1.44><PV1.45/><PV1.46/><PV1.4</<HL.53.1></<HL.53><<HL.54><<HL.54.1>/><PV1.48/><PV1.49/><PV1.50/><PV1.51/></PV1><IN1><IN1.1><IN1.1.1>1</IN1.1.1></IN1.1><IN1.2><IN1.2.1>""</IN1.2.1></IN1.2><IN1.3><IN1.3.1>403492</IN1.3.1></IN1.3><IN1.4/><IN1.5/><IN1.6/><IN1.</<HL.54.1></<HL.54><<HL.55><<HL.55.1>/><IN1.8/><IN1.9/><IN1.10/><IN1.11/><IN1.12><IN1.12.1>19480813</IN1.12.1></IN1.12><IN1.13><IN1.13.1>99991231</IN1.13.1></IN1.13><IN1.14/><IN1.15/><IN1.16/><IN1.1</<HL.55.1></<HL.55><<HL.56><<HL.56.1>/><IN1.18/><IN1.19/><IN1.20/><IN1.21/><IN1.22/><IN1.23/><IN1.24/><IN1.25/><IN1.26/><IN1.2</<HL.56.1></<HL.56><<HL.57><<HL.57.1>/><IN1.28/><IN1.29/><IN1.30/><IN1.31><IN1.31.1>R2</IN1.31.1></IN1.31><IN1.32/><IN1.33/><IN1.34/><IN1.35/><IN1.36><IN1.36.1>1308480563</IN1.36.1></IN1.36><IN1.3</<HL.57.1></<HL.57><<HL.58><<HL.58.1>/><IN1.38/><IN1.39/><IN1.40/><IN1.41/><IN1.42/><IN1.43/><IN1.44/><IN1.45/><IN1.46/><IN1.4</<HL.58.1></<HL.58><<HL.59><<HL.59.1>/><IN1.48/><IN1.49><IN1.49.1>1308480563</IN1.49.1></IN1.49></IN1></HL</<HL.59.1></<HL.59><<HL.60><<HL.60.1></<HL.60.1><<HL.60.2>essage></<HL.60.2></<HL.60></<HL></HL7Message>
      I get the following error:

      ERROR-300: Transformer error
      ERROR MESSAGE: Error evaluating transformer
      com.webreach.mirth.server.MirthJavascriptTransform erException:
      CHANNEL: ITBReceiverADTA01
      CONNECTOR: sourceConnector
      SCRIPT SOURCE:
      LINE NUMBER: 1
      DETAILS: TypeError: error: Unexpected character encountered (lex state 9): '<'
      at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.evaluateScript(JavaScriptTransform er.java:439)
      at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.transform(JavaScriptTransformer.ja va:346)
      at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8)
      at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197)
      at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)
      Post edited by: Svetlomir Kasabov, at: 07/11/2008 08:11

      Post edited by: Svetlomir Kasabov, at: 07/11/2008 08:12

      Comment


      • #4
        Reroblem with routing messages

        I agree with jbartels that the messages are sent over channels in XML, and the HL7 or XML input format in only important if it's the first channel in the chain, but you can always use the hl7toxml functions.

        There are some functions that you can see at the post/preprocessor steps like:

        Code:
        SerializerFactory.getHL7Serializer(useStrictParser, useStrictValidation, handleRepetitions).fromXML(message);
        So, you can convert it and send a HL7 piped version to the routerMessage

        Hope that helps!

        Comment


        • #5
          Reroblem with routing messages

          Thanks for you help!
          I found out what the problem was: On the Summary-Tab of the channel have I defined: Incoming data: HL7, that's why the channel expected HL7-Messages (that's why the error came). But now I changed it to "XML" and it worked.

          Regards,


          Svetlomir

          Comment

          Working...
          X