Creating a dynamic form calculation
To make a dynamic form display in a trial, create a calculation rule script that tests the value of the item on which the form appearance is based. The script uses the ShowDynamicForm method on the Patient or Result object.
ShowDynamicForm has the following parameters:
- RefName of the visit in which to schedule the appearance of the form
- RefName of the form to schedule
- Visit Index. This is a number that specifies an index into a repeating visit. Values are:
- 0—Indicates that the visit is not repeating or, if the visit is repeating, references the current instance of the visit.
- Any number greater than 0—Explicitly indexes the specified occurrence of the visit.