Item completion check

Check that an item has been completed.

Rule description: evaluate that Reason for Withdrawal is not null when the Date of Discontinuation is provided.

Rule expression

if(dt !== null && reason === null)
{
   return false;               //System sends query when return false condition is met
}
else
{
   return true;
}

Query Message: Date of Discontinuation is provided but Reason for Withdrawal is missing. Please verify.

Definitions

dt

Corresponds to the Date of Discontinuation from the rule description.

reason

Corresponds to the Reason for Withdrawal from the rule description.

Return value

Boolean

Returns either true or false. System raises query when return false condition is met.

Verification steps

  1. Using a subject for testing, go to the given visit and form containing the iems to check, in this example the Date of discontinuation <dt> and Reason for withdrawal <reason>.
  2. Update the form items dt and reason as in the following table and verify the result is as listed:
    Step dt reason Result
    Add date in dt only.

    Value

    Null

    Query
    Add reason.

    Value

    Value

    No query
    Clear reason only.

    Value

    Null

    Query
    Add new reason.

    Value

    Value

    No query
    Clear dt only.

    Null

    Value

    No query
    Clear reason.

    Null

    Null

    No query

Note:

Repeat the above steps if the form is present in multiple visits.

Other examples

Example 4-2 Collected Date and Time is provided and Clinical Significance = null so a query is issued

if(VSDTTIM !== null)
{
    if(VSCLSIG !== null)
    {
        return true;
    }
    else
    {
        return false;
    }
}
else
{
    return true;
}

Query message: Collected Date and Time is provided but Clinical Significance is missing. Please verify.