Form rules
A typical form rule script:
- Gets the normalized or entered value of all items it needs for performing an edit check by using the GetValueRF or GetEnteredValue method of the Patient object.
- Gets the value of any arguments it needs by using the GetArgument method, if the rule is designed generically with parameters to accept arguments.
- Checks the value against a standard. This standard can be hard coded or can be passed in as arguments, if the rule is designed generically with parameters to accept arguments.
- Based on the result of the edit check, indicates whether the rule passes or fails by setting the RulePassed property of the Result object.