Blood pressure comparison check

Compare systolic and diastolic blood pressure values.

Rule description: Systolic Blood Pressure must be greater than the corresponding Diastolic Blood Pressure.

Rule expression

if (SYS>DIA)
{
return true;
}
else
{
return false;                //System sends query when return false condition is met
}

Query Message: Systolic Blood Pressure is less than or equal to Diastolic Blood Pressures. Please correct or confirm.

Definitions

SYS

Corresponds to Systolic Blood Pressure item from rule description.

DIA

Corresponds to Diastolic Blood Pressure 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 items to check, in this example the systolic blood pressure <SYS> and diastolic blood pressure <DIA>.
  2. Update the form items SYS and DIA as in the following table and verify the result is as listed:
    SYS DIA Result
    120 Null No query
    120 120 Query
    120 119 No query
    120 121 Query
    123 121 No query
    115 121 Query
    Null 121 No query
    125 121 No query

Note:

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