web stats
Design Data Flow - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2017, 10:05 AM
bandheli bandheli is offline
Mirth Newb
 
Join Date: Jul 2017
Posts: 9
bandheli is on a distinguished road
Post Design Data Flow

Hi Folks,

I have a below requirements and I am not sure how to achieve them in Mirth.

1. Receive messages from Hospital via TCP/IP ( Achieved by creating TCP listern channle).
2. Wants to extract few values from inbound message like
MSH-7, MSH- 10, PID-18 and PID-3 etc (Done this in source Transformer).
3. Wants to create an XML message with the above extracted values and send it to some other channel(Say Xml_Receiver_Inbound ).
XML message may looks like
<results>
<MSH10>above extracted value should go here</MSH10>
<MSH7>above extracted value should go here</MSH7>
.........
.......
......
....... so on.
</results>
next like RouteMessageTo(channelId or channelName).

4. Now wants to apply filter on message type (MSH-9.1).
if(MSH.9.1==ADT)
{
Route message to Destination1 (within same channel)
}
elseif(MSH.9.1==ORU)
{
Route message to Destination2 (within same channel)
}
else()
{
Route message to Destination3 (within same channel)
}
5. Lets take Destination2; wants to apply filter based on OBR.4.1 (Universal Service Identifier or LOINC code).
Example: Wants to send 56888-1 (OBR.4.1) value to excelsheet (List of LOINC codes)and if value present in excelsheet move message forward else filter.

Can someone help me with above queries??

Thank you in advance!!
Reply With Quote
  #2  
Old 08-07-2017, 10:46 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

What have you been able to do so far? Is there something that is giving you issues?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #3  
Old 08-08-2017, 09:44 AM
bandheli bandheli is offline
Mirth Newb
 
Join Date: Jul 2017
Posts: 9
bandheli is on a distinguished road
Default

Thank you for your response!!

1. Able to extract few values from inbound message and failing to create XML from those values.
2. I am not sure how to read excel sheet data and loop through all the values.
Reply With Quote
  #4  
Old 08-08-2017, 09:48 AM
bandheli bandheli is offline
Mirth Newb
 
Join Date: Jul 2017
Posts: 9
bandheli is on a distinguished road
Default

Thank you for your response!!!

1. Able to extract few values from inbound messages and failing to construct XML from those values.
2. I am not sure how to read/load excel sheet and loop through all the values present in it.
Reply With Quote
  #5  
Old 09-14-2017, 11:49 AM
bandheli bandheli is offline
Mirth Newb
 
Join Date: Jul 2017
Posts: 9
bandheli is on a distinguished road
Default

Can someone help me out with reading csv/excel file in source transformer? Basically I want to apply filter on LOINC values.
Reply With Quote
Reply

Tags
filters on loinc codes

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 12:16 PM.


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