I am trying to set up a rule that will set up the date ranges for a date entry on my CRF and I was advised to use a rule. I have written the rule but when I try to submit it, I get the following error message: OCRERR_0005 : Syntax Error in Expression.
Can someone tell me what is wrong with my expression? Thanks a lot.
Here is my syntax:
<!--date of visit check in baseline CRF-->
<Run AdministrativeDataEntry="true" InitialDataEntry="true" DoubleDataEntry="true" Batch="true" ImportDataEntry="true"/>
<Message>Date of Visit should be between 17th April 2013 and 1st January 2015.</Message>
<RuleDef OID="I_ROTAV_VIS_7602" Name="Check if date of visit is correct">
<Description>Date of Visit should be between 17th April 2013 and 1st January 2015</Description>
<Expression>2013-04-17 lte I_ROTAV_VIS_7602 AND I_ROTAV_VIS_7602 lte 2015-01-01</Expression>