I encountered an odd problem, would compare the consent date and diagnosed date, it is a simple rule that the consent date has to be after the diagnosed date, my rule looks like:
<?xml version="1.0" encoding="UTF-8"?>
<Message>Diagnosed date has to be before consent date.</Message>
<RuleDef OID="REG_PBCD_DATE" Name="DETECT_REG_PBCD_DATE">
<Expression>I_DTREG_PBC_DIAGNOSED_DATE gte I_DTREG_CONSENT_DATE</Expression>
It runs fine in the test, but when I did real data entry, the rule simply does not enforce at all. No Discrepancy note appeared as required, no warning message.