question

Kelsey Anderson avatar image
0 Likes"
Kelsey Anderson asked Matthew Gillespie answered

Next Activity Based on Condition Logic

Hello,

Here is the model in case it helps:

psychcancercentermodel-060316.fsm

I am trying to use next activity based one a condition. For my routine patient track, the patient makes the choice of leaving or waiting for another visit during the next visit activity. They should leave the model if the number of visits completed (which I am using acuity currently) equals the SetVisits, which the patient is assigned as they enter the model. I used the condition of :

getlabelvalue(patient, "SetVisits")==getlabelvalue(patient, "Acuity")

This logic does not appear to be working. Any thoughts?

FlexSim HC 5.0.12
flexsim hchcpatient tracknext activity
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
1 Like"
Matthew Gillespie answered

I see two issues here, both with the Activity Started Trigger on activity 10:

  1. You are setting the "Visits" label and not the "SetVisits" label which you are using in your condition.
  2. You are setting this label on a start trigger for activity 10. Patients in your model loop through the activities and do activity 10 multiple times. This means that the label is being set to a different value after each visit. I would move this trigger to the On Creation trigger of the Arrivals object or make a new first activity that doesn't get repeated.

You also have a Next Activity condition on activity 23 that sends people to the exit if their acuity is 20 or above. This doesn't work though because the waiting area and the exit aren't connected in the flowchart.


starttrigger.png (8.4 KiB)
5 |100000

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