question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Adrian Haws commented

How do I get companions to go with the patient throughout the entire process?

memory-disorder-vv-th-11-02-2016.fsm

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.

healthcarecompanions
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Cliff King avatar image
1 Like"
Cliff King answered Adrian Haws commented

I think the problem has to do with the fact that you are recording the companion's intended destination on the "CompanionRoom" label of the patient, but then later referencing the "CompanionRoom" label of the companion to define the destination.

Tips:

  1. The expression getcompanion(patient,3) will get a reference to the 3rd companion of "patient" assuming "patient" has at least three companions.
  2. You can also use the getcompanion() command to get a reference to the main patient associated with one of the companions by simply using "1" for the 2nd parameter. So, if you were to write getlablevalue(getcompanion(patient,1), "CompanionRoom") in the Patient Destination field on an activity of the companion track, it would use t he value of the "CompanionRoom" label on the patient rather than the companion itself.
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Tee Hiett avatar image Tee Hiett commented ·

The companions got stuck at the "welcome spot" because the capacity at the scales was 1 and the companion is treated somewhat as a patient. In the final model, developed primarily by Cliff, you will notice that there is a "Scale_CompSpot" beside the scales where the companion goes as the patient is weighed. I am posting this for anyone who is "following" this post and would like to see companions move all the way through the process.

A special thanks to Cliff for his help in this process. Teememory-disorder-vv-th-11-05-2016-ck-5.fsm

1 Like 1 ·
Tee Hiett avatar image Tee Hiett commented ·

I am unable to get the model to work with the companions using the instructions above. Now, it seems all of the companions get stuck at the "welcome spot."

The model with the modified instructions is attached.

memory-disorder-vv-th-11-03-2016.fsm

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.