web stats
Mirth Community - View Single Post - Remove 1 OBX line based on beginning text
View Single Post
  #6  
Old 01-08-2015, 11:56 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,360
cory_cole is on a distinguished road
Default

Try this...


var i = 0;
for each (obx in msg..OBX)
{
if (obx['OBX.5']['OBX.5.1'].toString().substring(0,4).toUpperCase() == 'EXAM')
{
delete msg['OBX'][i];
}
i++;
}
Reply With Quote