question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Ben Wilson commented

Have the companion to go back to his chair after check-in?

UAB Clinic Master Model CareGivers.fsm

How do I get the companion to go back to his chair in the waiting room after check-in? This occurs in the last activity of the Check-in Activities Set.

Thanks

FlexSim 20.1.3
flexsim 20.1.3healthcarecompanions
· 1
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Tee Hiett, was Jeanette F's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

Hello,

If you examine the "Pat Walks to reg" activity you will see when the simulation runs both the patient and companion walk together to the registration desk. The same line of code used to designate the person for that activity can be used in the other walk activities in your simulation where you want the patient and companion to travel together.


capture.png (13.9 KiB)
· 4
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 ·

@Jeanette F Thanks for the prompt response but I have both Patient and companions going to the registration. My problem is getting the companion back to the reserve chair after registration. You will notice that the last 2 activities in this Activity Set is Patient to Chair and then Companion to Chair. The patient goes back to the "Owned" chair but I haven't figured out how to send the companions back to his "Owned" chair.

0 Likes 0 ·
Tee Hiett avatar image Tee Hiett commented ·

@Jeanette F I think I've figured out a solution but I'm not sure.

uab-clinic-master-model-caregivers_1.fsm

I put the Location for the companion on the patient.Companions[1].Locations


Then I referred to that location for the Companion to return.

So I'm guessing that I'll have to Release the chair and remove that location When I moved the companion again. Right??

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Tee Hiett commented ·

@Tee Hiett

Yes. From running your model, the token that retrieved the chair for the companion needs to also be the one to release it. You could do this by adding a wait for event activity before a release location activity in the Companion to WR container. This would allow you to release the chair when a certain event happens with the patients token. An example would be waiting for the event of the patient releasing their chair.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Yes. From running your model, the token that retrieved the chair for the companion needs to also be the one to release it. You could do this by adding a wait for event activity before a release location activity in the Companion to WR container. This would allow you to release the chair when a certain event happens with the patients token. An example would be waiting for the event of the patient releasing their chair.

0 Likes 0 ·