question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Jordan Johnson commented

Problem getting data out of a model

los.jpgdev-model-10-16-2019-1.fsm

I have the attached model running by using the tutorials and getting help through Answers but I cannot get the charts working properly. For example, I want a milestone-milestone dot plot with box plots displaying the Average time between milestones by provider as shown in the attached chart.

I have attempted a CalculatedTable1 but it is not working and I do not know how to connect it to the chart getting the provider's name from the patient label.

I appreciate any help

FlexSim 19.2.0
calculated tables
los.jpg (40.3 KiB)
· 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.

Tee Hiett avatar image Tee Hiett commented ·

Any help would be appreciated. BTW, I would also like the same form of chart or the time the patient waits for the exam room by provider.

Thanks,

Tee

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·
0 Likes 0 ·
Tee Hiett avatar image Tee Hiett commented ·

Matthew, Was there supposed to be an answer in your Reply?

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Jordan Johnson commented

Hi Tee,

I modified your model a little. In order to make charts that involve labels on the patients, you need to list that label in the People Settings object in the toolbox. I did that. Then I used a template from the Person Templates section of the dashboard library, and added a partition for the Provider label.

dev-model-modified.fsm


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

Tee Hiett avatar image Tee Hiett commented ·

Thanks for your help. When I open the model you modified and run it. I get the error message:

time: 61.238787 exception: int assertattribute(TreeNode *object,char *name, int datatype) ex: assertvariable time: 61.238787 exception: Exception caught in start() of activity "Acquire Exam Table?" in "PatientTrack". Continuing throw... time: 61.238787 exception: Exception caught in Executive::processeventinlist(). Throwing. time: 61.238787 exception: FlexScript exception: VIEW:/nodefunctions/menucommands/Execute/step

and the program locks up.

Also, can you point me to where this approach is covered in the tutorials or in the help documents?

Thanks,

Tee

@jordan.johnson

0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Tee Hiett commented ·

I made the model in version 19.2.3, so be sure you are on the latest bug fix there. Let me know if it still has a problem.

There isn't much in the tutorials (yet) for making charts this way. But the People Templates documentation has some:

https://docs.flexsim.com/en/19.2/Reference/PeopleObjects/PeopleTemplates/PeopleTemplateConcepts/

And the Calculated Table page has a little more:

https://docs.flexsim.com/en/19.2/Reference/Tools/CalculatedTable/

We are working to improve the tutorials section to include more chart examples like this.

0 Likes 0 ·
Tee Hiett avatar image Tee Hiett Jordan Johnson ♦♦ commented ·

23083-dev-model-modified-2.fsm@jordan.johnson @Matthew Gillespie

I have upgraded to version 19.2.3, converted the attached model to the latest version and I change the input so only MD_1 patients come into the model. (Any suggestions on a better way to achieve this last step?)

Using your changes to the model and reading all I can find in help, I set out to produce box plots displaying the time patients wait for an exam table by provider. As you can see from the JPEG file displaying the personal wait for location history, patient number 72 requested an exam table at "Acquire Exam Table?". That time was recorded. A table was not available so the patient went to be triaged in the triage area instead of being triaged a room but an AcquiredTime was recorded even though that patient is in triage instead of on an exam table. How can I resolve this?

Thanks,

patientwaitforexamtable.jpgTee
0 Likes 0 ·
Show more comments

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.