web stats
Mirth Community - View Single Post - filters before transformers? or, deleting segments?
View Single Post
  #2  
Old 11-16-2011, 05:32 AM
Bostad Bostad is offline
Level 85 Channel Wizard
 
Join Date: Mar 2009
Location: Stratford Ontario
Posts: 712
Bostad is an unknown quantity at this point
Default

Is there a reason you can't transform the filter at source?

If you can't, you could try setting a channelMap variable for the message based on whatever rules and filter based on that...something like this:

In the source transformer (I'm using MSH.10...use whatever's appropriate)

Code:
channelMap.put(msg['MSH']['MSH.10']['MSH.10.1'].toString(),'True');
In your destination filter (where you want to filter this message):
Code:
if (${msg['MSH']['MSH.10']['MSH.10.1'].toString() == 'True') {

return false;

} else {
return true;
}
__________________
I can be reached through gmail and Google Talk using davidrothbauer at gmail dot com
http://www.linkedin.com/pub/david-rothbauer/5/923/518
codeismydrug.wordpress.com
hl7coders.wordpress.com

Test all my code suggestions prior to implementation
Reply With Quote