question

Kaitlin M avatar image
0 Likes"
Kaitlin M asked Zahra Z commented

Changing priority to access location group based on census

Hi there, I am modeling an ED. Patients arrive by ambulance and on foot and compete for the same resource: beds. I would like to model a conditional priority - if there are more than a certain number of ambulances waiting to offload their patient, then give the ambulance patients a higher priority to access the beds. Otherwise just service FIFO. How can I achieve this?

FlexSim 21.1.0
healthcareflexsim 21.1.0ambulanceemergency room
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Kaitlin M, was James Rodgers's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
James Rodgers1 avatar image
0 Likes"
James Rodgers1 answered Zahra Z commented

The attached model is from the training course. The acute patients are sent to the "Ambulance" location. In the Acute patient flow, the activity representing the exam beds has custom code for the priority field. When an acute patient tries to get an exam bed, the code looks at whether the number of patients at the ambulance is greater than 2. If it is, it returns a priority of 300, if not it returns 150 (the same priority level for non-acute patients).

The only issue is that the acute patients will not go FIFO since it would be the third to arrive that would get the higher priority.


Dynamic Priority.fsm


dynamic-priority.fsm (429.4 KiB)
· 3
5 |100000

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

Zahra Z avatar image Zahra Z commented ·

@James Rodgers1

Thank you for attaching the example model. I had a question, How do you link the Source in the arrivals to the patient flow "source"? I do not see the connection in the model that shows the acute patients coming from the ambulance entrance are linked to the second patient arrival source. In my model, I want to make this arrival a bit more complex and dependent on the ESI level (ESI 1 or 2).

0 Likes 0 ·
James Rodgers1 avatar image James Rodgers1 commented ·

In the "Arrivals" tab, the "Create Patient" activity has a field where you identify the target Person Flow:

2021-08-11-12-03-49.png

0 Likes 0 ·
Zahra Z avatar image Zahra Z James Rodgers1 commented ·
Thanks! That makes sense.
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.