In the attached model, the first patient follows the process to the scales and then remain there throughout the remainder of the process and never leaves.The second patient only gets to the Welcomes and remains there.
To help with the debugging process, the activities related to the companion for are as follows:
Two patient labels, “PatientRoom” and “CompanionRoom, ” are used to identify the room where the patient goes for an exam and the room where the companion goes for a separate exam by the doctor.
Custom code is used in line 97 of Activity 100 to identify the value of the patient label “PatientRoom.”
Custom code is also used in activity 120 to identify the value of the patient label “CompanionRoom.”
I have identified the activities wherein the Activity Started Trigger “Start an activity for companions” is executed by adding the number of the Comp Track_1 Activity to the end of the Activity Name, i.e. CompTrack_1 Activity 10 is activated in General track 10_SelectRegistrar—10 activates.