Previous Topic

Next Topic

Book Contents

Rule with arguments

The following form rule script checks the value of three arguments—ItemName, Min, and Max. ItemName is a specific form control. Min and Max are range limits. This script can be attached to multiple items and tested with different controls and range-checking values passed in as arguments.

val = Patient.GetValueRF(Patient.GetArgument("ItemName"), "", 0,0,0)
If ( val > Patient.GetArgument("Min") AND val < Patient.GetArgument("Max") ) Then
Result.RulePassed=1
Else
Result.RulePassed=0
End If

Send Feedback