question

Katie M avatar image
0 Likes"
Katie M asked Matthew Gillespie edited

How do I attach a companion to a patient?

cancer-care-sydney-autosave.fsm

I'm simulating a Cancer Care facility, with an emphasis on space/flow. How can I have a patient arrive at the clinic with a companion, and also have those companions follow them wherever they go? I created a trigger but more than 1 companion arrives until the entrance capacity is full.

Thanks,

Katie

FlexSim HC 5.1.0
patient flowcompanionscompanion
· 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.

Isaac Litster avatar image Isaac Litster commented ·

Hi @Katie M

I think there might be an error in the file you uploaded. Could you repost it? Thanks

1 Like 1 ·
Katie M avatar image Katie M Isaac Litster commented ·

cancer-care-sydney.fsm

Sorry about that - does this work?

1 Like 1 ·
Cliff King avatar image Cliff King ♦ Katie M commented ·

Katie,

In the "Create Companions" trigger you are using on the first activity of the "MDC Patient" track, you have specified that the companion should also be created from the same "MDC Patient" track. This in effect will implement an infinite loop of patients creating companions which in turn create companions, which in turn, create companions, and so on. Did you mean to specify the companion as "MDC Patient_2"?

Even if you make this change to your model, I don't think you will get the behavior you expect because the patient and the companion will be following their own track without any synchronization between the two tracks. In the sample model I posted earlier, you will find a great example of how to synchronize the activities of the patient and the companion by using triggers on the patient track that calls a specific activity on the companion track at the appropriate time.

In order to fully implement all the coordination between patient and companion that I designed into the sample model, you will need to upgrade to the latest version of the software (HC 5.3.4). Also be aware that the "Create Companions" pick list option has also been upgraded in the latest version such that it allows you to specify the companion track with a PCI number rather than a track name, giving a little more flexibility to the Create Companion option as well.

Cliff

1 Like 1 ·
Show more comments

1 Answer

·
Cliff King avatar image
0 Likes"
Cliff King answered Cliff King edited

In case it's helpful, I've attached an example model showing one way to model patient companions. In this model, the child is the "patient" and the child's mother is the "companion". Both the child and the mother have a separately defined patient track and a separate PCI number as follows:

  1. Child: PCI = 1, Track = "Child_Patient"
  2. Mother: PCI = 2, Track = "Mother_Comp"

The patient arrival object creates the child (PCI 1), and an Activity Started Trigger on the child track's first activity creates the companion (i.e. mother) using the "Create Companion" pick list option. The "Create Companion" option creates the mother, positions her in the arrival object just behind and to the right of the patient's location, gives the mother an appropriate name and then kicks off the first activity (i.e. the one without a predecessor) on the mother's track.

Subsequent companion (i.e. mother) activities are kicked off at the appropriate time using triggers defined in the patient's (i.e. child's) track. The mother basically follows the child around to all locations except the X-Ray room in this model.

mother-and-child-at-acute-care-clinic-using-new-ge.fsm


5 |100000

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

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.