The Summary task presents a form which gives a summary of the patient information, including which test or tests are necessary and the appointment times allocated. This information is set up by the Set Appointment Time script task.
Procedure
Select the
Set Appointment Time task.
In the
Script Defined As
field, select
JavaScript.
Enter the following in the
Describe Task Script field:
for (var ix = 0; ix < DeptArr.size(); ix++)
{
var test = DeptArr.get(ix);
if (test.toString() == "BLOODTEST") {
BloodTestAppointment = ApptTimeArr.get(ix);
} else if (test.toString() == "XRAY") {
XRayAppointment = ApptTimeArr.get(ix);
}
}