Previous Topic

Next Topic

Book Contents

Form rules

A typical form rule script:

  1. 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.
  2. Gets the value of any arguments it needs by using the GetArgument method, if the rule is designed generically with parameters to accept arguments.
  3. 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.
  4. Based on the result of the edit check, indicates whether the rule passes or fails by setting the RulePassed property of the Result object.
Send Feedback