question

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

Time Table On Resume Backorder Problem

Hi there,

I am looking for some assistance related to a previous question of mine. I am simulating an OR with emergent and non-emergent patient streams. I have created a time table that changes the value of a location label on down and resume which filters the scheduled/non-emergent portions of my patient flow to not allow entry into locations on the weekends.

I can see that the timetable is working to change the label and the model begins at midnight and scheduled patients are correctly not entering the beds. However, when the on resume fires the label changes but the patients are still stuck waiting as backorders. Any idea what I am missing that's causing this?


Previous Question: https://answers.flexsim.com/questions/129553/time-table-for-resource-only-apply-to-subset-of-pa.html?childToView=129879#comment-129879

Model: Inpatient.Capacity.Planning_Ortho_ORsNoStaff.fsm


Thanks,

Ashlee

FlexSim 22.2.1
locationtime tablebackorderfilterhealthcare people
· 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 ·
Hello @Ashlee W, I think this has something to do with labels with multi locations. I am working on this and hopefully will get back to you today.
0 Likes 0 ·

1 Answer

·
Jeanette F avatar image
1 Like"
Jeanette F answered Ashlee W commented

Hello @Ashlee W,

This was not working due to the multilocation. The sublocations do not inherit the labels of the multilocation. To fix this adjust the Locations list. You will want the change SheduledAllowed from a label to an expression with the following code.

if(isclasstype(value, "People::SubLocation"))
   return ownerobject(value).ScheduledAllowed?;

return value.ScheduledAllowed?;

This first checks to see if the location is a sublocation. If it is then it looks at the object that contains the sublocation to find the label ScheduledAllowed. If the object is not a sublocation then it will just look at the object for the label. The question marks at the end check to see if the label exist. This will prevent exceptions being thrown for locations that do not have the ScheduleAllowed on it.

inpatientcapacityplanning-surgery-ortho-scenario2p (1).fsm


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

Ashlee W avatar image Ashlee W commented ·
Thank you so much!
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.