question

Bryn F avatar image
0 Likes"
Bryn F asked Bryn F commented

"Start an Activity for Multiple Patients"

Where can I find the "Start an Activity for Multiple Patients" option for the Activity Finished Trigger in the example attached? I'm wanting to replicate this process for a patient to meet back up with their companion but I cannot seem to find how to start an activity for multiple patients.

companion-waiting-in-waiting-room.fsm

FlexSim HC 5.1.0
companions
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Bryn F commented

That was an old option that we've replace with the other two options you see in the Activity Finished Trigger list: Start Patient Activity and Start Activity on Companion(s). Either one of those will work for you. The Start Activity on Companion(s) option will use the getcompanion() command for you, but you can use the Start Patient Activity command for companions if you put the getcompanion command in the patient field.

· 3
5 |100000

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

Bryn F avatar image Bryn F commented ·

Thanks Matthew. I've tried starting the activity on the Companion after the 170_PACU Phase 1 has finished to start the companion walking to the meeting point (20_Reunite in PACU 2). Once the companion gets to the meeting point, I tried to trigger the patient to meet them at that point (171_Meet in PACU 2). Once they hit this point in the simulation, the companion status shows WaitingforRoom and they never move. The meeting point shows as vacant. I can't figure out why they get stuck.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

There were three things I noticed:

1. The meetinPACU area is not connected to anything in the flowchart, so no one can ever go there.

2. The MeetingPoint object has a maximum Occupancy of 1. You should increase this since you know for sure you want at least 2 people there at a time (the patient and the companion) but you also might want multiple patients to be able to meet their companions there. In the example model the occupancy is set to 15.

3. The Activity Finished Trigger on activity 20 of the Guardian Track is starting activity 171 on patient. This means the companion is trying to start activity 171 on itself (since in the Guardian Track the patient is a companion). You'll want to either set the patient field to say getcompanion(patient, 1) or use the Start an activity on Companion(s) pickoption.

0 Likes 0 ·
Bryn F avatar image Bryn F Matthew Gillespie ♦♦ commented ·

Thanks! I always forget to connect the flow chart when I add an area in later :( This fixed it!

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.