question

Ashlee W avatar image
0 Likes"
Ashlee W asked Ashlee W commented

Multiple Patients in a Bed

Hi There,

I am working on a model that has a multi location which is fed by multiple queues which differ by patient priority. I just finally got the priority to work but now I am seeing multiple patients grab a single bed even after it is in use. Has anyone ever seen this before? What can I do to fix this?

OrthoSurgery_InpatientBeds_wHistos_RecalcWait.fsm

1654869755490.png

FlexSim 22.1.1
resourcemultilocationavailability
5 |100000

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

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Ashlee W commented

I'm not sure why this is the case, but it seems to be the use of patient.BedPriority for the location resource's priority. If you type in a value like you did for the nurses, you get 1 patient per bed again. As far as I knew that's supposed to be OK to do though so we will need to look into that..

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

Ashlee W avatar image Ashlee W commented ·

Okay sounds great. Can you please let me know via here when you figure it out?

0 Likes 0 ·
Regan Blackett avatar image Regan Blackett ♦ Ashlee W commented ·

It appears to be the zero values for the BedPriority labels. Which is weird because in the documentation and in training 0 is included in the tier 1 level of priorities.


To resolve you will need to make sure your BedPriority calculation doesn't hit zero, like using a Math.max() expression to either return your BedPriority value or 1.


0 Likes 0 ·
Ashlee W avatar image Ashlee W Regan Blackett ♦ commented ·

It seems to still be outputting a priority of 0 even with the max function. Any ideas there?

OrthoSurgery_InpatientBeds_wHistos_RecalcWait.fsm


0 Likes 0 ·
Show more comments
Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

Hello @Ashlee W,

I am not sure why this happened in the first place but it stopped occurring when I reconnected the acquire activity to the resource. Are you able to recreate this issue?

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

Jeanette F avatar image Jeanette F ♦♦ commented ·
Nevermind. When I reset the model it started having the same problem again.
0 Likes 0 ·