Previous Topic

Next Topic

Book Contents

Example of rule for removing a dynamic visit

In this example a patient is removed from an erroneously scheduled dynamic visit and rescheduled into the appropriate visit for the patient’s gender.

MALE=1
FEMALE=2
MALEVISIT=”Dose100”
FEMALEVISIT=”Dose200”

Gender = Patient.GetValueRF(“0.Visit1.DEM.DEM.0.GENDER”,””,0,0,0)

If Gender = MALE Then
SVisit=”MALEVISIT”
RVisit=”FEMALEVISIT
Else
SVisit=”FEMALEVISIT”
RVisit=”MALEVISIT
End If

Patient.RemoveEmptyDynamicVisit RVisit
Patient.SetDynamicVisitStart SVisit, “”, 720

Send Feedback