question

Dash Ballarta avatar image
1 Like"
Dash Ballarta asked Matthew Gillespie commented

First available location not reevaluated

HI, just wondering if you could help me troubleshoot my clinic model.

I have three PCIs and they are supposed to go to a waiting area. They leave upon first availabilty of either exam tables or radiology tables.

Two of my PCIs are getting stuck in the waiting area and do no proceed further, although their activity should re-evaluate the availabiilty of tables.

Additionally, my wait times in my dashboard generate an error when i run them - however, this may be related to the above.

fsm is at the following link:

https://utexas.box.com/s/w04d80s2zr7j5pgejouxknekuzkax0gx

Thanks,

Dash

FlexSim HC 5.1.0
healthcaredecisiongridlockfirst available locationreevaluate availability
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 Matthew Gillespie commented

Dash,

There are a few issues here. I've attached a simplified version of your model to help point them out. When you run the model you'll see that the first set of three patients go through their activities correctly. However, when the next set of three arrive, two of them get stuck in the waiting room. This is because the decide activity starts the ToWaitingRoom activity on the patients if neither area is available at that time. The patients are then stuck forever trying to go to the waiting room because they're already there. Running the model some more shows the other issue. When the group of 5 shows up, 2 of them go to a bed and 2 of them go to a CT. However, they're gridlocked once they finish their processing time. The bed patients are waiting for the CT patients to leave and the CT patients are waiting for the bed patients to leave.

I've attached a modified version of that model that doesn't have these issues. In activity 20, I use the Based on Destination Status pickoption to send the patients to the first available location. The processing time uses the Based on patient's location pickoption so you can have different processing times based on the area. I added a Activity Finished trigger that sets the "nextArea" label on the patient to be the other area (whichever one the patient still needs to go to). Activity 40 then tells the patient to go to the area recorded on that "nextArea" label. Activity 30 is a decide that checks to see if the next area is available and starts activity 40 if it is, otherwise it starts activity 31 that sends the patient to the waiting room and then activity 40 will start.


· 5
5 |100000

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