question

Santi avatar image
0 Likes"
Santi asked Santi commented

Patient pile up at reception

There's a pile-up of patients at the reception area by end of day in my simulation.

GROUP POD - Scenario 00_12 JK.fsm

I can't figure out why this is happening.

1706556843324.jpeg


I have a statistics collector called Care Vs Time.
When I analyze its output, I see the overlapping MD Exam and Charting actions for the same doctor (see between 11:00 am and 12:00 noon):

Morning:

1706556928218.png

Afternoon:

1706556949984.png

81 patients were scheduled to arrive in one day.
According to the data output, 81 patients are examined.
Therefore there shouldn't be a pile-up of patients by the end of day.
Would anyone be able to take a look at my model and see what might be wrong, please?

FlexSim 23.2.3
process flowpatient overflow
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

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Santi commented

Hello @Santi

You have patients acquire the MD and then assign them exam beds that are not available. So, there is a buildup that cannot move. Why do you select Exam tables with the custom code first?

1706558529391.png

1706559278285.png


1706558529391.png (236.8 KiB)
1706559278285.png (18.2 KiB)
· 4
5 |100000

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

Santi avatar image Santi commented ·

Hi Jeanette,

I didn't do that part of the Process Flow. But I'll try to get an answer for you.

I think that the data I showed from the Care Vs Time statistics collector only goes up to 12:00. The rest must be data left over in the Excel spreadsheet from the previous time it was exported to Excel. That explains the overlapping activities.


Here are some additional observations that may be of use:

There are idle MDs and MAs, while patients are waiting for them:

  • At 10:37:30 MA1_6 finishes setting up Exam Table 2. From this point forward, MA1_6 stands idle at Exam Table 2 for the rest of the day.
  • At 10:54 am MA1_5 stands idle at Desk 1 for the rest of the day.
  • At 10:54 am MD1_2 is idle at his desk, while MA1_2 stands idle next to him, both idle for the rest of the day.

By 11:05 am, 1 MD and 4 MAs are permanently idle, while several patients are waiting for these idle staff members.

By 12:00 noon, all MDs and MAs are idle for the rest of the day.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Santi commented ·

There's a possible deadlock build into the main Patient Flow. The MA is released during the examination but must later be reacquired before the exam table is released. The waiting patients first acquire the MA and then the bed, so the tokens waiting at the start and after the exam are blocking each other from progressing since they each have acquired something the others need.

1706600411896.png


In this case this can be prevented by having the waiting patients first acquire the exam table and then the MA.

0 Likes 0 ·
1706600411896.png (138.8 KiB)
Santi avatar image Santi commented ·

Hi Jeanette and Felix,

We want a medical assistant and an exam room to be assigned to a doctor.
This way, the doctor can only use pre-determined exam rooms, and can only be assisted by pre-determined medical assistants. There are 4 doctors, 6 medical assistants, and 10 exam rooms (exam tables). Therefore while the first 4 medical assistants are assigned each to a doctor, the remaining 2 medical assistants are shared amongst each pair of doctors. A similar logic applies to which exam rooms (exam tables) each doctor and medical assistant can work in.


I've attached a PDF that describes the logic of the assignment of medical assistants and exam rooms. BA FlexSim organizational structure (Jan 17, 2024).pdf

This might not directly answer your question, Jeanette.
But it explains the original intent behind using custom code to select exam tables.
Would you have achieved the same objective with a different approach?

0 Likes 0 ·
Santi avatar image Santi commented ·

Hi again. After extensively analyzing the model in great detail, I've found some specific issues with the process flow.
I'll accept this post as the answer for this topic. And I'll create new posts for each specific issue that I'm not able to solve on my own.

Thanks again @Jeanette F and @Felix Möhlmann for your insights. This is much appreciated.

Santi

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.