We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

can one rule target a group of questions?

Can someone tell me how I can make one rule target all the items in a group of questions? I have a CRF with yes/no eligibility questions and I want my rule to fire if the data entry person clicks a no for any of the questions. Here is my rule expression

<RuleImport>

<RuleAssignment>

<Target Context="OC_RULES_V1">SE_ENROLMENT.F_ROTAVIRUSELI_4.IG_ROTAV_INCLUSION.I_ROTAV_IN1T </Target>

<RuleRef OID="I_ROTAV_IN1T ">

<DiscrepancyNoteAction IfExpressionEvaluates="true">

                <Run AdministrativeDataEntry="true" InitialDataEntry="true" DoubleDataEntry="true" ImportDataEntry="false" Batch="true" />

<Message>Inclusion criteria must be yes or 1</Message>

</DiscrepancyNoteAction>

</RuleRef>

</RuleAssignment>


<RuleDef OID="I_ROTAV_IN1T" Name="Check if eligible">

<Description>Check if eligible</Description>

<Expression>I_ROTAV_IN1T and I_ROTAV_IN2T and I_ROTAV_IN3T and I_ROTAV_IN4T and I_ROTAV_IN5T eq 1 </Expression>
</RuleDef>

</RuleImport>

Comments

  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    via Email
    expression needs to be like

    (item01 ne 1) or (item02 ne 1) or (item03 ne 1)

    since it is IfExpressionEvaluates=true

    we can only target one item per rule so if the above was targeting item01
    the discrepancy note would be on item01 no matter which item triggered the
    rule.

    another pattern for eligibility that avoids this problem is:

    is the subject eligible? y/n
    if no, show repeating group with 2 questions: 1. select the eligibility
    criteria the subject did not meet; 2. describe why
  • ifeomaozoifeomaozo Posts: 6
    Thanks Lindsay. That makes a lot of sense. 
This discussion has been closed.