web stats
Mirth Community - View Single Post - Recovering messages not filtered
View Single Post
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


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:

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;
    return true;
Best Regards,
Alex Neiva
Reply With Quote