Sample calculation rules
Example 1
| Characteristic | Description |
|---|---|
|
Description |
Using the CalcAge function, create a rule named rulCalcAge that calculates a subject's age and populates the age field. Use the DOV from the visit containing the DEM form. |
|
Scope |
Baseline study event |
|
Study structure |
|
|
Rule summary |
|
Example 2
| Characteristic | Description |
|---|---|
|
Description |
Create a rule named rulBMIRangeCheck that checks that the BMI is between 18.5 and 30. Specify an action to issue a query if the BMI is out of range. |
|
Scope |
Baseline event |
|
Study structure |
|
|
Rule summary |
|
Parent topic: Sample expressions for data-entry rules