question

FlexSim245 avatar image
0 Likes"
FlexSim245 asked Matthew Gillespie commented

use 3 patients flows in one day

Hi all,

In my model, healthcare model, i have three different patient flows and I wanted to alternate between them throughout the day. my model is for 24 hours (patient flow 1 to be used from 7 am to 10 am and patient flow 2 to be used from 10 pm to 4 pm, patients flow 3 from 4 pm to 12 am and then back to patient flow 2 from 12 am to 7am).

I thought about the source with the arrivals used, there is an option of offset/variability that has an option to use the parameters but I am not sure if there is a way to add a code for a new column and define a specific patient flow in each hour? thank you!

FlexSim 21.2.2
parameterspatient flowoperational hours
· 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.

Nathan B14 avatar image Nathan B14 commented ·

Hi @FlexSim245 was Jeanette's answer helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question

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

Why are you asking the exact same question you already asked and had answered?

https://answers.flexsim.com/questions/110077/use-multiple-patient-flows-throughout-the-day.html

0 Likes 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F edited

Hello @FlexSim245,

You can add a label on the arrivals tableto be used to decide in what process flow the patient will be created.
1635368309956.png

1635368395887.png



1635368309956.png (9.7 KiB)
1635368395887.png (23.9 KiB)
· 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.

FlexSim245 avatar image FlexSim245 commented ·

@Jeanette F Thank you for the response! I tried to apply what was mentioned from your side, but I am confused since in my model I have the parameter as shown:

1635865816965.png

if we want to use the first patient flow, then the parameter is 1 , if 2 its 2 and so on. Also for the process flow I am confused what are the details of the decide activity, how to call the label name in this decide ? and the create patients also? I am not sure if we should add another 2 parameters (each one for a specific patient flow) . Could you please assist me in answering these questions also if its possible to send me the model?

0 Likes 0 ·
1635865816965.png (3.3 KiB)
Jeanette F avatar image Jeanette F ♦♦ FlexSim245 commented ·

Hello @FlexSim245 ,

I apologize for not attaching my model. That would make replicating what I did a lot easier. In the Arrivals portion of the process flow, the source activity creates all the patients for the day at the assigned time. This then means you can assign the labels to correspond with the time of day they are created. The label will be used to decide what process flow the patients will use. In my example above, I used a decide activity to sort through the labels and then send the token to create the patient in the corresponding process flow. In the model I am attaching, the create patient activity has the logic to decide what process flow the patient is created in. This is very similar to Matthew Gillespie's answer to you.

1635978199037.png

One problem I could see with this method is if you use variability in the source. In that case a patient who was assigned to come before 10 could potentially arrive after 10. If that patient should use the patient flow for the time they actually arrived then the label for process flow should be assigned after. I created a custom code to assign the label depending on the time of day.

1635980982034.png

You can also assign the patient flow to be used by assigning a parameter in the table. You will have to change the parameter for the patients to be created in a different process flow.

parameter.png

Notice I changed the Case function to look at the parameter

1635980093086.png

Here is the model for you to examine. Please note that you should only have one source enabled at a time to clearly see the method work well. Also, please note that I set simulation stop times at 10 am and 4 pm so that you notice the exact time that the process flow should switch. When the simulation stops at these times just press run again.

HC- Change Patient Process Flows.fsm

0 Likes 0 ·