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:

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

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

  1. 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.