web stats
How to remove OBX segments from a message - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2012, 09:24 AM
jshoebrook jshoebrook is offline
What's HL7?
 
Join Date: Aug 2012
Posts: 4
jshoebrook is on a distinguished road
Default How to remove OBX segments from a message

Sorry, I'm a newbie regarding how to create filters in Mirth. We receive ADT messages from a vendor that sometimes contain hundreds of OBX segments. Our system doesn't need the OBX segments, so I'd like to remove those from the message when the message is saved to the destination file. How can I do this and what is the syntax (not familiar with the filtering syntax). Any help would be greatly appreciated. Thanks.
Reply With Quote
  #2  
Old 09-08-2012, 09:36 PM
dhoang13 dhoang13 is offline
What's HL7?
 
Join Date: Feb 2011
Posts: 2
dhoang13 is on a distinguished road
Default

You can simply do a javascript transformation on the destination.

delete msg['OBX'];
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 -8. The time now is 05:09 PM.


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