question

Jim Montgomery avatar image
1 Like"
Jim Montgomery asked Serena Capelli commented

In HC2020 how do I make all patients arrive wearing a hospital gown?

The patients' visuals are generated randomly in HC2020. I can change the shirt color for all patients, but I can not place each patient in a hospital gown. I can place staff members in hospital gowns, I can also place individual patients in hospital gowns while the model is running. However, I can't figure out how to place all patients in gowns. Please help. Thanks.
Other (please specify)
Other
patient visuals
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

·
Cliff King avatar image
2 Likes"
Cliff King answered Serena Capelli commented

Use the Change Visuals activity or edit the activity named "Random Appearance" in the Arrivals process flow like I did in the attached example. To learn what rank a particular piece of clothing is, take a look at the drop-down list for a staff member in your model and count down from the top. Keep in mind that the index is often different for males and females like it is for the patient gown. The patient gown is in the Shirt category and is the 10th index for a male and the 8th for a female, so you need to use an expression like I have shown here. Take a look at the attached model for more info.


All_Patients_In_Gowns.fsm




· 3
5 |100000

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

Jim Montgomery avatar image Jim Montgomery commented ·
Thanks, Cliff!! The model works fine now.
0 Likes 0 ·
Serena Capelli avatar image Serena Capelli commented ·

I have a problem which is very similar to the one of Jim Montgomery. I'm trying to make clerk to give to the patients entering the hospital a mask and a pair of gloves. As you suggested, I used the Change Visuals activity; since for the mask the index is different for males and females, I used the same expression suggested by you, Cliff King. I don't understand why it does not work and the message "Undefined variable male being used." appears. I hope you can help me; I attach my model (Put masks on.fsm). Thank you in advance.

0 Likes 0 ·
snapshot.png (19.9 KiB)
put-masks-on.fsm (64.7 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Serena Capelli commented ·

The male variable is an extra variable defined inside the code of the Random Appearance activity.

You can update your activity with that code snippet instead of the word male:

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

put-masks-on2.fsm

1 Like 1 ·

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.