question

Leah R avatar image
0 Likes"
Leah R asked Leah R commented

How can I add a label to the PersonMilestones Table ?

Hi everyone !

I'm trying to analyze my PersonMilestones Table. I want to compare the Flexsim Model values with values that I have calculated in an Excel file. The common key should be a PatientID label.

I have tried to put it in "Name" in the source arrival or in a added label column (in case the former one did not work) :


However, that IDPatient does not appear in my PersonMilestones Table /


Thus, I have tried to add a column for a PatientID label but it does not work...

How can I add a label (here PatientID) to the PersonMilestones Table ? If it is not possible, then how can I access both the milestones values and the patient label at the same time ?


Thanks in advance,

Leah


FlexSim 21.0.0
milestonepersonmilestones
1619797614206.png (40.1 KiB)
1619797748638.png (5.4 KiB)
1619797811556.png (2.3 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.

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

Hi @Leah R,

there are two small errors in the screenshot of your attempt to add a column to the statistics collector. Instead of "current.PatientID" the Event value should read "data.person.PatientID" and, as your ID consists of text, the "Storage Type" should be set to "string".

I'm assuming you created that Statistics Collector by clicking on "Copy Internal Statistics Collector" on the PersonMilestones table, correct? This creates an entirely new collector with its own table which you can see by clicking on "View Table" in the "General" tab.

Sadly, the actual milestones are not properly linked to this copy of the internal collector, so the milestone columns don't show up in the table. This can however be manually fixed.

Open the table view of the PersonMilestones, right click and choose "Explore -> As Tree".

This opens the treenode of the internal collector. Expand the "stored" node and within it the "milestoneActivities" node. (There will probably be more entries than in the following example)

Now do the same with your copy of the milestone collector: Open the table view in the "General" tab by clicking on "View table" and open the tree as before.

Again expand the same nodes. You will notice that there are no subnodes to the "milestoneActivities" node.

Add one by selecting the node and pressing "Enter".

Now copy the first subnode from the internal collector and paste it into this new node (Select the original node and either use ctrl-c/ctrl-v or right click and choose "Edit" -> "Copy/Paste"). Repeat this until all subnodes are copied.

The copied milestone collector should now create the same table as the internal one with the added PatientID column.

I hope this works for you, too.

Kind regards

Felix


treeexample.png (9.3 KiB)
emptynode.png (4.2 KiB)
newnode.png (4.3 KiB)
opentreeview.png (15.7 KiB)
generaltab.png (13.3 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.

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Leah R commented
One way is you could add the IDPatient label to the PeopleSettings object, on the Labels tab.

Then, that label will appear in the PersonLabels table.

At that point, you can use a calculated table to add the IDPatient column to the PersonMilestones table. You can do that by "joining" the PersonMilestones table with the PersonLabels table on the PID column.

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

Leah R avatar image Leah R commented ·

In that case, if I have n patients, will I have to add n rows to the PeopleSettings ?

I can see that it is already appearing in the PersonLabels without doing that.

Thank you very much !

0 Likes 0 ·