web stats
Mirth Community - View Single Post - Recovering messages not filtered
View Single Post
  #3  
Old 05-17-2018, 06:17 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 277
AlexNeiva is on a distinguished road
Default

Hello,

or on your Channel Filter you can mention that if it is filtered then write in a file on a specific directory.
Just select JavaScript type and you can put something like this example:

Code:
if (msg['MSH']['MSH.9']['MSH.9.1'].toString() != "ADT") 
{
    FileUtil.write('D:\\Test\\message_' + msg['MSH']['MSH.10']['MSH.10.1'].toString() + '.hl7', false, connectorMessage.getRawData());
    return false;
}
else
    return true;
__________________
Best Regards,
Alex Neiva
Reply With Quote