web stats
Rearrange OBX sections in ORU based on Addendums - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-25-2016, 04:11 PM
Jaypell22 Jaypell22 is offline
OBX.1 Kenobi
 
Join Date: Jul 2011
Location: Upstate NY
Posts: 31
Jaypell22 is on a distinguished road
Question Rearrange OBX sections in ORU based on Addendums

Hi everyone. Any help with this would be appreciated. We are trying to rearrange the OBX section of an HL7 ORU message based on the following:

If no addendum leave original report as is

If 1 addendum move the addendum section to be on top of the original report.

If 2 addendums move addendum 2 on top of addendum 1 which is on top of the original report.

If 3 addendums move addendum 3 on top of addendum 2, on top of 1, on top of original report.....you get the idea.

Basically latest dications/addendums on top.

Here is the message we need to transform. Below that is what we am trying to accomplish. Thanks for taking a peek, I realize this is a bit complicated (or at least seems to be as we try to make it do what we want it to do!)

ORIGINAL REPORT:

OBX|1||||TEST REPORT||||||F|||20160225215226||123456
OBX|2||||||||||F|||20160225215226||123456
OBX|3||||IMPRESSION:||||||F|||20160225215226||1234 56
OBX|4||||Test impression.||||||F|||20160225215226||123456
OBX|5||||||||||F|||20160225215226||123456
OBX|6||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|7||||||||||F|||20160225215226||123456
OBX|8||||Rad Test MD||||||F|||20160225215226||123456
OBX|9||||||||||F|||20160225215226||123456
OBX|10||||||||||F|||20160225215226||123456
OBX|11||||ADDENDUM:||||||F|||20160225215226||12345 6
OBX|12||||||||||F|||20160225215226||123456
OBX|13||||Test Addendum 1 notes||||||F|||20160225215226||123456
OBX|14||||||||||F|||20160225215226||123456
OBX|15||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|16||||||||||F|||20160225215226||123456
OBX|17||||Rad Test MD||||||F|||20160225215226||123456
OBX|18||||||||||F|||20160225215226||123456
OBX|19||||ADDENDUM:||||||F|||20160225215226||12345 6
OBX|20||||||||||F|||20160225215226||123456
OBX|21||||Test Addendum 2 notes||||||F|||20160225215226||123456
OBX|22||||||||||F|||20160225215226||123456
OBX|23||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|24||||||||||F|||20160225215226||123456
OBX|25||||Rad Test MD||||||F|||20160225215226||123456
OBX|26||||||||||F|||20160225215226||123456
OBX|27||||ADDENDUM:||||||F|||20160225215226||12345 6
OBX|28||||||||||F|||20160225215226||123456
OBX|29||||Test Addendum 3 notes||||||F|||20160225215226||123456
OBX|30||||||||||F|||20160225215226||123456
OBX|31||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|32||||||||||F|||20160225215226||123456
OBX|33||||Rad Test MD||||||F|||20160225215226||123456
OBX|34||||||||||F|||20160225215226||123456



GOAL:

OBX|1||||ADDENDUM:||||||F|||20160225215226||123456
OBX|2||||||||||F|||20160225215226||123456
OBX|3||||Test Addendum 1 notes||||||F|||20160225215226||123456
OBX|4||||||||||F|||20160225215226||123456
OBX|5||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|6||||||||||F|||20160225215226||123456
OBX|7||||Rad Test MD||||||F|||20160225215226||123456
OBX|8||||||||||F|||20160225215226||123456
OBX|9||||ADDENDUM:||||||F|||20160225215226||123456
OBX|10||||||||||F|||20160225215226||123456
OBX|11||||Test Addendum 2 notes||||||F|||20160225215226||123456
OBX|12||||||||||F|||20160225215226||123456
OBX|13||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|14||||||||||F|||20160225215226||123456
OBX|15||||Rad Test MD||||||F|||20160225215226||123456
OBX|16||||||||||F|||20160225215226||123456
OBX|17||||ADDENDUM:||||||F|||20160225215226||12345 6
OBX|18||||||||||F|||20160225215226||123456
OBX|19||||Test Addendum 3 notes||||||F|||20160225215226||123456
OBX|20||||||||||F|||20160225215226||123456
OBX|21||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|22||||||||||F|||20160225215226||123456
OBX|23||||Rad Test MD||||||F|||20160225215226||123456
OBX|24||||||||||F|||20160225215226||123456
OBX|25||||TEST REPORT||||||F|||20160225215226||123456
OBX|26||||||||||F|||20160225215226||123456
OBX|27||||IMPRESSION:||||||F|||20160225215226||123 456
OBX|28||||Test impression.||||||F|||20160225215226||123456
OBX|29||||||||||F|||20160225215226||123456
OBX|30||||This report was electronically signed by:||||||F|||20160225215226||123456
OBX|31||||||||||F|||20160225215226||123456
OBX|32||||Rad Test MD||||||F|||20160225215226||123456
OBX|33||||||||||F|||20160225215226||123456
OBX|34||||||||||F|||20160225215226||123456
Reply With Quote
 

Tags
addendum, obx, oru, rearrange, reorder

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 08:55 AM.


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