web stats
Group Multiple ORU Messages - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 05-09-2010, 12:56 AM
mourisj mourisj is offline
Mirth Guru
Join Date: Feb 2007
Location: Luxembourg
Posts: 407
mourisj is an unknown quantity at this point

I'm glad I could help you.
How did you solve the problem?
I had tried out various things like dropping the MSH in the destination transformer, but could not find a working solution.
The only thing I still thought about was building the message again with manually inserted separators, and output as delimited file, but I had no time to try it.
So, what's the solution you found (maybe it could be useful for me or sb else too someday) ?

JJ Mouris
FFE Luxembourg

Last edited by mourisj; 05-09-2010 at 01:41 AM. Reason: typo
Reply With Quote
Old 05-09-2010, 08:01 AM
jmendezzz jmendezzz is offline
OBX.2 Kenobi
Join Date: Nov 2009
Posts: 85
jmendezzz is on a distinguished road
Talking Group Multiple ORU

Forgive me for not providing the steps earlier...I created one channel that will append all the results to the same file providing that it is the same placer_id #, remove all segments from EXCEPTION of MSH and OBR/OBX. Have logic that if OBR-35 is flag to "F" that it will be the last message for that placer_id #, move file to a different path.

Channel 1: Test_Complete_ORU.xml: does what i explained above.

Channel 2: Test_Transform_COMPLETE_ORU.xml: I created a javascript transform, that will iterate through all the MSH segments and delete every MSH starting with element: 1, since we need to keep MSH[0]. Follow by doing some massage of the message like renumbering all the OBR & OBX segments.

I took two steps. I am sure there's a way that it can be done in one channel as oppose to two but it is working PERFECT. Once again, I thank you for all your all your help Mourisj. I could have not done it without your advise & code snippets.
Attached Files
File Type: xml TEST_COMPLETE_ORU.xml (11.8 KB, 24 views)
File Type: xml TEST_TRANSFORM_COMPLETE_ORU.xml (12.2 KB, 18 views)

Last edited by jmendezzz; 05-09-2010 at 08:03 AM.
Reply With Quote

message queuing, segment

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 04:13 AM.

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