question

Jaidit J avatar image
0 Likes"
Jaidit J asked Matthew Gillespie commented

Put Patient Gowns on patients after changing

How can I change my patients' appearance into a gown after they come out of the dressing room? Thank you so much!

FlexSim 21.2.4
change visualpatient gown
5 |100000

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

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

If you add a Change Visual activity one of the options is Change Person Visuals. You would then choose Shirt for the category and the index is 10 for the male shape and 8 for the female shape. To make it work for either shape I would add a label that says if the patient is a male or female shape using a code statement like this:

shape(patient).value.includes("Male") ? "M" : "F"

And then in the index you could put a statement like this:

patient.Gender == "M" ? 10 : 8

So it gets the right index for the right patients.

Here's a model example:

ChangeIntoGowns.fsm


changeintogowns.fsm (63.6 KiB)
· 5
5 |100000

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

Jaidit J avatar image Jaidit J commented ·
Hi Matthew, thanks so much! this is helpful. But, what would happen if I only want female patients to get the Mammo? How do I tell Flexsim I only want females going to the Mammo area?
0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Jaidit J commented ·
@Jaidit J You would use a Decide activity to determine if they should go to Mammo. You could use the first code snippet above to determine if a given patient is female. If you need a more in depth answer, please ask this as a separate question.
0 Likes 0 ·
AFRANCO avatar image AFRANCO Matthew Gillespie ♦♦ commented ·

Hello, please help me with this. Is it possible to obtain or save in a variable the set of clothes of the patients so that once the care is finished, they can get dressed again?

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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