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
Return value
Verification steps
- 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>. - Update the form items
dtandreasonas in the following table and verify the result is as listed:Step dtreasonResult Add date in dtonly.Value
Null
Query Add reason.Value
Value
No query Clear reasononly.Value
Null
Query Add new reason.Value
Value
No query Clear dtonly.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.
Parent topic: Electronic Data Collection (EDC) examples