web stats
How to separate messages coming on a single port? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2011, 07:50 AM
bhsuhansc007 bhsuhansc007 is offline
Mirth Newb
 
Join Date: Jul 2010
Posts: 8
bhsuhansc007 is on a distinguished road
Default How to separate messages coming on a single port?

Hi,

I am trying to achieve this using Mirth:

On a particular port, some process is gonna send different types of HL7 messages- A04, R01, A08. I am planning to receive these messages using Mirth. Once I receive these messages, I will write each one of them to a file. To process each type of file, I will be using my custom Java applications. So App1 will process A04, App2 will process A08 and App3 will process R01. Each of these Apps will be polling a separate directory and will assume that only that type of message will be placed in that directory, which type they are expecting.

Now, my problem is, since I am listening on only one port, is there a way by which I can look into each incoming HL7 message, identify which type it is and write it to a particular directory? I though I could do this using different 'destinations', but that did not work. It is writing each message to each destination.

Is it even possible? I know sending each type on different port is an option, but I want to do this using just one port.

Thanks.
Reply With Quote
  #2  
Old 05-24-2011, 10:00 AM
fransdw fransdw is offline
OBX.1 Kenobi
 
Join Date: Feb 2007
Location: Tallahassee, FL
Posts: 43
fransdw is an unknown quantity at this point
Send a message via Skype™ to fransdw
Default

Repeat the following for each destination (you should one for each type in your scenario):

Take one of your messages and paste into your Destination tab -> select a destination -> Edit Filter (left of screen) -> Message Template (right of screen) -> Inbound Message Template.

Now go to to the Message Tree tab (right of screen) and drag the required field "value" over to the left.

Change the radio buttons next to Condition (middle of screen) to "Equals".

Click the New button below and to the right of the condition and add the value you wish to have go through to this destination like "A04" for the A04 destination.

This should get you there if I understood your request.

Thanks,
Frans
__________________
Frans de Wet
Uber Operations LLC
uberops.com
Phone: (850) 445-7696
Reply With Quote
  #3  
Old 05-25-2011, 06:00 AM
bhsuhansc007 bhsuhansc007 is offline
Mirth Newb
 
Join Date: Jul 2010
Posts: 8
bhsuhansc007 is on a distinguished road
Default

That works perfectly.

Thanks a lot.
Reply With Quote
Reply

Tags
connect, connection

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation