question

Ashlee W avatar image
0 Likes"
Ashlee W asked Felix Möhlmann answered

Stat collector patient's current location when another is requested

Hi There,

I am looking to collect the current location of a patient when they make a request for another location. Ex. If they are in location 1 and request location 2 I want a column in the stat collector that indicates that they are in location 1 when they made the request for location 2.

How can I do this?

Thanks!

FlexSim 22.1.2
locationstats collectorprevious item
· 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 ·
Hello @Ashlee W,

Can you upload a sample model in the Next Cloud Folder? Please comment back if you do this so I receive a notification.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You could listen to the OnEntry event of the 'Acquire Location' activities. This will give you access to the instance (patient), activity and token as event parameters. The current location can be read from a label on the patient. Either an entry in 'Locations', if it was not released yet, or a custom label, that you specify in the 'Release Location' activity.

1659508974896.png1659508989570.png

The requested location could be determined by looking at the name of the resource the activity is acquiring from.

1659509004756.png

1659509074151.png


1659508974896.png (39.9 KiB)
1659508989570.png (22.2 KiB)
1659509004756.png (23.6 KiB)
1659509074151.png (78.7 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.