Use a condition node with the following code:
try {
qie.parseHL7String(source.getNode('/'));
} catch (e) {
return false;
}
return true;
Your source node would need to be set to text for this to work. If not then it will go to the error queue with a hl7 parse error.