question

Maria C2 avatar image
0 Likes"
Maria C2 asked Matthew Gillespie commented

Scheduling Staff Meeting when patients are gone

I am trying to model a staff meeting with all staff members of a clinic, but this can only happen whenever all the staff members ate available and all patients are gone from the clinic. This meeting happens at noon. I've tried setting up a global process, and i worked and everything with all the staff members meeting. However, a patient is being left to wait during the staff meeting. I tried changing the priority - however, i think the problem is that at the time the patient is trying to request the staff member, the staff member has already been requested by the global process and locked. Do you have any suggestions as to how to fix this issue?

Thanks!

FlexSim HC 5.1.0
priorityglobal processes
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

So if there is a patient in the model then the meeting shouldn't happen at all? To make that happen you could just use the Activity Start Condition to check if there are any patients using this command:

return !getcensus(model());
· 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.

Maria C2 avatar image Maria C2 commented ·

I got it to be that whenever the census = 0, then the activity starts. Now I am not sure how to stop the meeting whenever a patient arrives. How would I interrupt a meeting and have only one type of staff leave the meeting?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Maria C2 commented ·

If the patient's activity has a higher Priority tier than the meeting activity (there is a new tier every 100 so 100 - 199 is a tier above 0 - 99) then the patient will preempt any staff he needs from the lower tier activity.

By default all activities use 150 as the priority so you could just set the staff meeting activity to use a priority in the 0 - 99 range.

0 Likes 0 ·
Maria C2 avatar image Maria C2 commented ·

Say the staff is requested to the meeting at 12:00pm, and he goes into the meeting ( a 60 min process) - then at 12:30 pm, a patient arrives and requests the staff member with higher priority. Will the staff member leave the meeting?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Maria C2 commented ·

Yes, here is an example model that shows that working. You'll notice that RN1 leaves the meeting to attend the patient for 5 minutes.

Something to note though, is that this makes everyone in the staff meeting wait for the RN. The staff meeting ends at time 15.3. If you turn off the patient arrival then the meeting is never interrupted and ends at time 10.1.

0 Likes 0 ·