web stats
Mirth Community - View Single Post - Recovering messages not filtered
View Single Post
  #4  
Old 05-22-2018, 12:00 AM
riven974 riven974 is offline
Mirth Newb
 
Join Date: Mar 2018
Location: Reunion Island
Posts: 25
riven974 is on a distinguished road
Default

Hello Alex
thanks for the reply. Unfortunately, the code I added is not working, nothing appears in the directory. The test is on the presence of the patient name :
if (msg['PID']['PID.5']['PID.5.1'].toString().length > 0)
{
return true;
}
else
{
FileUtil.write('F:\\LOGICIELS\\Mirth\\ERROR\\messa ge_' + msg['MSH']['MSH.10']['MSH.10.1'].toString() + '.hl7', false, connectorMessage.getRawData());
return false;
}
Reply With Quote