question

Atipol Kanchanapiboon avatar image
0 Likes"
Atipol Kanchanapiboon asked Atipol Kanchanapiboon commented

ER Patients stuck in the model waiting to be transport

4-2-2010-tue-1240-v20-mission-fed-w-opdx-qs-db-and.fsm

We are working on building the ER model and have the issue when running the model. Patient ID# 21 (Walk In patient track) stuck at 9:45:90 on day 1 waiting for the Rad Tech to transport to the XRay suite. The Rad Tech was able to get the wheel chair and go to patient exam room and the XRay suite is vacant. Can you please help us debug this model?

FlexSim HC 5.3.4
emergency room
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

·
Cliff King avatar image
0 Likes"
Cliff King answered Atipol Kanchanapiboon commented

When I first opened the model the System Console was reporting a couple syntax errors in the Next Activity for activity 200 in the WalkIn and Ambulance tracks, so I fixed those. You were using getlabelnum instead of gettablenum.

Then when I ran the model I didn't see exactly what you saw, but I did see several patients getting stuck in the model. When I quickly looked over your Predecessors and Next Activities of the activities in your track, they didn't seem logical to me. I don't have a lot of time tonight, so I'll look again in the morning, but you should go back and review the activity ID's specified in your Predecessors and Next Activity fields, because I don't think they are what you want. The one predecessor I really question is the long one defined for activity 200. I don't think you need a long one for it. The way you have defined your activities as a long list of yes/no decision points in a chain, I would think you only need to say 190 once you get everything else correct.

I personally like to click the Table icon on the Track Activity window to view the track in table form when reviewing my predecessors. Unfortunately your Next Activity's are all displayed as simply "Based on Percentages" so the table view doesn't work well for them. I do have a suggestion for you though. Most of your Next Activities are based on just two choices, so if you don't use a pick list option, and instead write something like bernoulli(gettablenum(ProcedurePercentages, PP_R_ADMITS, getlabel(patient,"ESI")), 220, 230) then you will be able to see the expression in the activity table view. The table view will show one-liner expressions you type in yourself!

I'll help you out more tomorrow if you don't fix the problem first yourself!

· 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.

Atipol Kanchanapiboon avatar image Atipol Kanchanapiboon commented ·

Hi Cliff,

Somehow after I corrected the gettablenum as you mentioned it the beginning, the patient is no longer stuck in the process of getting an XRay.

Thanks for looking into this. We are finalizing the model and will reach out to you for further questions.

Thanks,

Atipol04-04-18-mission-fed-w-opdx-qs-db-and-output.fsm

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.