question

Yulia K avatar image
0 Likes"
Yulia K asked Yulia K answered

Discharge of patients

Hello!

In my model, I simulate the work of a department where patients are admitted daily. I ran into the following problem. I do not understand how to get a different number of patients to leave the department. For example, on the first day 6 patients are admitted, 4 are discharged. On the second day, 4 are admitted, 1 are discharged, and so on. I would be grateful for your help.

FlexSim 21.0.1
healthcarepatient flow
· 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.

Eric M avatar image Eric M commented ·

Hi @Yulia K,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Yulia K avatar image Yulia K commented ·

therapy department.fsmdischarge.jpg

Hi @Eric M,


I am attaching a snippet of the model. There is also a table of admission and discharge from the department. I understand how to program the admission of a specific number of patients per day. But I don't know if it is possible to force patients to leave the department in accordance with the discharge table from the department. Thanks in advance.



0 Likes 0 ·
discharge.jpg (11.1 KiB)
Eric M avatar image
0 Likes"
Eric M answered

Thanks for the added explanation and for the sample model. I found a solution for this by adding a global list called "Patients". The idea behind this is that all the patients will be pushed onto the list, and the discharge schedule will create tokens that pull patients from the list according to the desired discharges per day. When a patient is pulled from the list, their token in process flow is preempted and moved to the section that removes the patient from the model.

The time that the discharge token is created can be changed based on how long you want the process time of the patient to be. The pull from list activity is also set to pull a random patient off the list, so you could adjust that if you wanted as well. One final note, you may want to increase the Process time in the Patient Flow to something very large for recording the patient's state. I imagine you wouldn't want the Process activity to finish and have the patient's state be considered Idle until they were released from the model. Let me know if you have any questions.

therapy-department_1.fsm


5 |100000

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

Yulia K avatar image
0 Likes"
Yulia K answered

@Eric M Thank you so much! This is exactly what I wanted. No questions at this time. Thanks again.

5 |100000

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