question

Francesca P4 avatar image
0 Likes"
Francesca P4 asked Eric M commented

Patient Stay

Hi everyone!
I am modelling a hospital Operation Block in which patients arrive and are subject to 3 different kind of surgeries from 7.30 AM to 21:00 PM, then the OB closes. Typically, after 21:00 no one should be in the operating block. Actually I am not able to discard all the patients from 21:00 and this affects all the statistics that I am carrying out. Is there a way to prevent my model from making patients stay in the OB after 21:00? Thanks in advance for your help!

FlexSim 21.1.0
staytimepatient stay
· 2
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

Serge A avatar image
0 Likes"
Serge A answered

This is an example of how you can postpone surgeries until the next day if they cannot be completed before 21:00:

  1. calculate surgery duration before doing it
  2. when the surgery room becomes available (its resource is finally acquired), check that the surgery can be completed in time
  3. if not, release the surgery room immediately, and wait until the next morning

1626430599700.pngTo represent a specific date and time ("today 21:00", or "tomorrow, 07:30"), you can use DateTime class and Model.dateTime attribute. See the model attached: SecondDaySurgery_example.fsm

If you look at the distribution of the Staytime of the patients, you can see that it is bimodal, and some patients stay 12 hours or more (overnight):

1626431036400.png


5 |100000

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