How do I release patients in batches of 10 from a waiting area to a waiting room area (having 2 waiting rooms, each with a capacity of 10) only when one of the waiting rooms is empty?
How do I release patients in batches of 10 from a waiting area to a waiting room area (having 2 waiting rooms, each with a capacity of 10) only when one of the waiting rooms is empty?
@Visakh Sakulan We were able to work out a solution for your model as you described. Overall the concepts of this are fairly simple, but the execution can be more difficult.
The idea is to have the travel activities from the Waiting Area to the Waiting Rooms only occur once two conditions are true: that 10 patients are in the Waiting Area, and that a Waiting Room is empty. Since I set up two Waiting Rooms, there are two travel activities that will be started once those conditions are met (they have no Predecessors).
Here are the steps to setting this up:
if(getcensus(WaitingArea1, 0, CENSUS_OCCUPY) == 10) { if(getcensus(WaitingRoom1) == 0) { for(int j = 1; j <= 10; j++) { treenode curPt = rank(WaitingArea1, j); startactivity(curPt, torownum(curPt, 20), 0.01); } } else if(getcensus(WaitingRoom2) == 0) { for(int j = 1; j <= 10; j++) { treenode curPt = rank(WaitingArea1, j); startactivity(curPt, torownum(curPt, 30), 0.01); } } }
if(content(WaitingArea1) == 10)
Hi @Visakh Sakulan,
FlexSim HC doesn't have a built-in method of sending groups of patients at a time, but there is a roundabout way to accomplish this without the need for using code.
Sample model attached below.
Thankyou @Adrian Haws
The model is working fine, but I want the patients to move only if the waiting room is empty(Here once the Waiting area reaches 10 and if there is only one seat is available in the waiting room then 1 patient will move there, which it should not do). In my model the patients should move in batches of 10 and only if 10 seats are available in the waiting room.
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved