question

Abel van der Windt avatar image
0 Likes"
Abel van der Windt asked Matthew Gillespie commented

How to change state of patient when performing animation?

I am busy with building a simulation model of a hospital. When I added a state pie for the patients I noticed that if a patient is performing an animation, for example taking place on a seat in the waiting room, this counts as idle time.

Can I change the state of a patient during an animation somewhere?

FlexSim 19.1.1
animationpeople modulestate
· 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.

1 Answer

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

You can customize the Enter and Exit instructions of Location objects. You could add an enter instruction that sets the patients state using code like this:

  1. loc.stats.state("HC States").as(TrackedVariable).value = "InTransit";
· 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.