Sample data-entry rules that use methods
Example 1
| Characteristic | Description |
|---|---|
|
Description |
Use a math method to round the result of the existing rule, rulCalcBMI, to two decimal places. |
|
Scope |
Baseline event |
|
Study structure |
|
|
Rule summary |
Note: The solution above is the simplest solution, but not the best, as it does not clear the BMI field if Height or Weight are subsequently cleared, and it will cause an ISE if Height is 0.0. A better solution follows.
|
| Characteristic | Description |
|---|---|
|
Description |
Create a rule named rulTabsDispensed that checks that the sum of tablets dispensed is greater than zero and less than 500. The sum of tablets should use 0 as a replacement value. If false, fire a query. |
|
Scope |
Dispensing Record section |
|
Study structure |
|
|
Rule summary |
|
Parent topic: Sample expressions for data-entry rules