web stats
Deleting obx line in specific circumstances - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2011, 02:35 AM
hm2075 hm2075 is offline
Mirth Newb
 
Join Date: Jul 2010
Posts: 17
hm2075 is on a distinguished road
Default Deleting obx line in specific circumstances

Hi,


I have OBX's as follows

OBX|1|ST|A|1|
OBX|2|ST|A|2|
OBX|3|ST|A|3|
OBX|4|ST|A|4|
OBX|5|ST|A|5|
OBX|6|ST|B|1|
OBX|7|ST|C|1|
OBX|8|ST|C|2|



What I want to do is scan the list of obx 3.1 and if there is any value that is not repeated then I want to delete it. In this example obx 3.1 for "B" only appears once hence I want to delete it.


Alternatively this could also be achieved by look at the pattern in obx 4.1... it should never repeat.

help
Reply With Quote
  #2  
Old 11-02-2011, 08:28 AM
designflaw designflaw is offline
Mirth Newb
 
Join Date: Aug 2007
Posts: 18
designflaw
Default

I would try to do this in Javascript. Loop through OBX segments, find out the ones you don't want, take them out and re-sequence your OBX segments.
Reply With Quote
Reply

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 -7. The time now is 06:35 PM.


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