Previous Topic

Next Topic

Book Contents

Example of dynamic form calculation rule

In this example, the patient’s gender determines whether a pregnancy test form appears in the visit.

MALE=1
FEMALE=2

Gender=Patient.getvalueRF(“0.visit1.DEM.DEM.0.GENDER”, ““, 0, 0, 0)
If Gender=FEMALE Then
Patient.ShowDynamicForm “visit1” , “Preg”, 0
Else
Patient.RemoveNotStartedDynamicForm “visit1”, “Preg”, 0
End If

The rule is attached to the GENDER item on the DEM form as a Special Visit context.

Send Feedback