question

martin.j avatar image
0 Likes"
martin.j asked Adrian Haws edited

How can I make a graph of patients that pass a specific activity

I am trying to make a dashboard readout that shows the number of patients in an activity over time. The patient track has a decision point that assigns the patients to different types of treatment, potentially in the same location though. Now I want to show how many patients are assigned to each treatment activity.

I have tried using a global variable and just increment it at the end of the activity, but I cant find a chart option that allows me to show global or even tracked variables in Flexsim Healthcare.

I also tried with the data collector, and an ActivityFinished trigger, but it never seem to activate.

healthcarechartsdata collector
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
1 Like"
Matthew Gillespie answered Sam Stubbs commented

This example model uses a Data Collector that records whenever certain activities finish to keep track of how many patients are trying to complete their registration activity.


· 4
5 |100000

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

martin.j avatar image martin.j commented ·

Hello Matthew,

As mentioned above my problem occurs because the events of my collectors never activate. I have attempted to make an exact duplicate of your model from scratch, but for some reason my DataCollector never collects anything.

please see attached model. hcmodel-duplicate.fsm

0 Likes 0 ·
martin.j avatar image martin.j commented ·

Bump! Maybe I should have stated my previous post more clearly as a question. Does anyone have an inkling why my Data Collectors don't collect anything?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ martin.j commented ·

When I run your model the data collectors work fine, but the patients never make it past the first activity because your predecessors are wrong. Currently you have each activity using itself as its predecessor. If you want the activities to be carried out sequentially you need to set the predecessor of the activity to be the activity id of the preceding activity. So, for example, the predecessor of activity 10 should be 1 and not 10.

0 Likes 0 ·
martin.j avatar image martin.j commented ·

I see, so its only on my machine that the events don't work. The plot Thickens...

0 Likes 0 ·