question

Santi avatar image
0 Likes"
Santi asked Santi commented

Identify MD name in Statistics Collector

I need to collect data on the start and end time, for every time a doctor examines a patient.
With the Statistics Collector, I can get the patient flow, but I need the doctor's name instead.
The tutorials I've seen on the Statistics Collector are focused on factory simulations.
Could someone please help me with understanding how to accomplish this in a healthcare simulation?

FlexSim 23.2.0
healthcarestatistic collectordoctor
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Santi, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Santi avatar image Santi Jeanette F ♦♦ commented ·
Hi Jeanette,


My apologies for not replying sooner.

We have a medical emergency in the family.

My daughter is in the ICU, her condition is extremely complicated.

I will make sure to review the post once I have a chance.

Kind regards,

Santi

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Santi commented ·
Hello @Santi,

I am so sorry to hear that. I hope she recovers quickly.

0 Likes 0 ·
Show more comments

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Santi commented

The person will have a resource allocated to them and stored as a label. You should be able to access that generally with something like:

token.Patient.doctor

In the statistics collector that information is found on the data map so you'll likely need something like this in the column value:

data.token.Patient.doctor

If you have a model to upload we can provide a more targeted reply with attribute/label names that match your model.

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

Santi avatar image Santi commented ·

Thanks Jason,

Here's my model (attached) Model 007.fsm

I managed to get the MD name by using instance.Staff

Please see the CareVsTime statistics collector. Then in the Columns tab, see the Staff column.

1694270280370.png

Is this an acceptable way to get the MD's name?
It seems to work when I validate the data using Power BI.

0 Likes 0 ·
1694270280370.png (28.6 KiB)
model-007.fsm (2.9 MiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Santi commented ·

Yes in the patient flow that works.

Note that you have exceptions in the sytem console - these should be fixed.

LINK PARITY ERROR(insertInto_bareBones)
time: 2795.727601 exception: Exception caught in Executive::processeventinlist().

This seems to relate to an event in the 'Charting' activity for which there is no token present (perhaps it was moved/destroyed?)

1694431274178.png

0 Likes 0 ·
1694431274178.png (5.1 KiB)
Santi avatar image Santi Jason Lightfoot ♦♦ commented ·

Thanks Jason.

I posted a separate question regarding the charting event.
https://answers.flexsim.com/questions/150199/add-a-task-to-md-without-holding-up-patient.html
Could you please help me solve that issue?
I attached the same model in that question.

0 Likes 0 ·