question

Ayman avatar image
0 Likes"
Ayman asked Jeanette F commented

Set percentage of patients in function of label

I have a "Decide" box that is connected to two boxes. If there are 5 different types of patients (label), how can I set a different percentage of patients that goes to each box in function of the label?

Thanks

labeldecidepatient flowdecide activity
· 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 ·

Hi @Ayman, was one of Ayman's or Sebastián Cañas's answers 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered Sebastián Cañas commented

@Ayman ,

It depends if you're setting a label from the beginning or you just want to set the percentage directly in the Decide activity. However, this is easily done using the picklist options of that activity.

1719948442771.png

I would suggest you to walk throught the FlexSim HC tutorial, focusing on this task, where you could learn how to create a conditional flow.

1719948334060.png



1719948334060.png (40.5 KiB)
1719948442771.png (46.3 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.

Ayman avatar image Ayman commented ·

I think I have not explained myself correctly. I have created 5 type of patients according to their severity, each one with its label set.

For each of these patients, I want to set a percentage that goes to activity 1 and another percentage to activity 2.

For example: Patient_type1: (70% go to activity 1 and 30% to activity 2)

Patient_type2: (60% go to activity 1 and 40% to activity 2)

0 Likes 0 ·
Sebastián Cañas avatar image Sebastián Cañas Ayman commented ·

@Ayman ,

If you have two possible destinations for each type of patient, you could use a bernoulli distribution within the Connector by case option of the Decide Activity.

You set something like this:

1720034539885.png

Change the Case Function and the values according to your model

Is that a more accurate answer?

0 Likes 0 ·
1720034539885.png (74.0 KiB)