Test argument and variable values
When you run the following script against a context with Min and Max arguments defined as 10 and 60, respectively, and enter a respiration rate of 5, the debugger displays the defined argument values and the entered test value. As the rule would fail with this test value, the output reports the rule failure.
val = Patient.GetValueRF(Patient.GetCurPath(), "", 0,0,0)
If ( val > Patient.GetArgument("Min") AND
val < Patient.GetArgument("Max") ) Then
Result.RulePassed=1
Else
Result.RulePassed=0
End If