Using the Patient.OutputDebug method
The InForm Architect application enables you to specify trace values in a rule script by using the OutputDebug method of the Patient object. When you use this method, the rule debugger reports the value of test variables that you define.
The OutputDebug method has the following arguments:
- Print string—String that identifies the value you want to trace.
- Variable—Name of the variable for which you want the rule debugger to display the value.
To use the method, insert it in your rule script at the point where you want the rule debugger to display the specified variable value.
The following example shows a portion of the frame size script illustrated in RefName checker, with trace variables inserted. The resulting output shows the values of each variable.
if (Patient.GetValueRF("0.Visit1.DEM.DEM.0.GENDER.GENDERRADIO","",0,0,0) = 1) Then
Patient.OutputDebug "TestHeight", HTCM
Patient.OutputDebug "TestCirc", WCCM
Patient.OutputDebug "TestRadius", Radius
if Radius > 10.4 Then framesize = "Small Frame"
if (Radius >= 9.6 and Radius <= 10.4) Then framesize = "Medium Frame"
if (Radius < 9.6 ) Then framesize = "Large Frame"