question

Nicholas B avatar image
0 Likes"
Nicholas B asked Nicholas B commented

Patient Stuck in Queue

I have a model that based on patient information they will be directed to the next area. I am having issues where if the specific room is not available when the patient enters that they sit in the queue and never leave. I have diagnosed it that the current activity is never re-evaluated. Any idea on a fix?

queuepatient track
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 Nicholas B commented

Is the logic for "directed to the next area" found in the Patient Destination field or the Next Activity field? The Next Activity field is only evaluated once at the end of the current activity, but the Patient Destination field can be evaluated every time a location downstream from the patient's current location becomes available (so long as a 0 is returned for a previous evaluation when no locations were found available). You may need to attach your model for us to answer your question with satisfaction.

· 8
5 |100000

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

Nicholas B avatar image Nicholas B commented ·

I am directing to next direction by Patient Destination. I converted some code to Based on Destination Status and I still have patients stuck. This is an Transport>Process is there a way to check if the resources are available similar to Based on Destination Status?

0 Likes 0 ·
Cliff King avatar image Cliff King ♦ Nicholas B commented ·

Either send me your model, or explain to me the decision logic you are trying to implement in the Patient Destination field, and I'll better be able to help you. There is a command getavailablelocation() that may come in handy for you as well...

0 Likes 0 ·
Nicholas B avatar image Nicholas B Cliff King ♦ commented ·

So I was able to resolve the problem by adding under Advanced Functions an Activity Start Condition. From the provided code I was able to tweak the code to check for 1 specific location and 2 resources. So I am checking for Destination Status where I also tweaked the code to allow for me to check for multiple decisions to allow to check before setting the destination. Finally my Nurses and Techs are going to pickup my patient and take them to Surgery.

0 Likes 0 ·
Show more comments

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.