Ankur A3 avatar image
Ankur A3 asked Jeanette F commented

How to provide random person Male/Female reference?

Hi Team,

I am going though code which is given to generate male/female patient random basis in arrivals process flow under healthcare module. I would like to understand the numbers which are taken with respect to male (8) and female (9). Where can I find these numbers with respect to male/female?



How can I use it to generate male/female provider instead of patient?

Thank you!

FlexSim 21.0.10
1657291591439.png (36.1 KiB)
1657291742561.png (19.1 KiB)
· 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 @Ankur A3, was Matthew Gillespie's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 ·

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

The numbers 8 and 9 correspond to the rank of the Man and Woman flowitem in the FlowItem Bin:


The Man flowitem is already set to the Male Person/Staff shape and the Woman to Female Person/Staff shape. So you're already creating the same shape as the Staff objects in the model. The only difference then is the clothes they're wearing. The default Random Appearance activity that sets the patients' skin and clothes purposely doesn't use the staff clothes. For example, when setting the shirt it chooses between shirts 1-7 for men and 1-5 for women:


However, the staff shirts are shirts 8 and 9 for men and 6 and 7 for women.

1657293567038.png (4.7 KiB)
1657294005515.png (20.8 KiB)
5 |100000

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