question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Matthew Gillespie commented

How do I get the value of label on MD

I put the distribution for MDExamTime into a label on each MD. What is the syntax for the command to get this value for the MD Exam activity?

Thanks

FlexSim 19.1.1
labelsversion 19.1.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.

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented
patient.Staff[1].MDExamTime

Assuming that the MD is the last staff you acquired and the name of the label on the staff is "MDExamTime".

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

Thanks, Matthew..

0 Likes 0 ·
Tee Hiett avatar image Tee Hiett commented ·

Just out of curiosity — does this syntax appear anywhere in the users manual? I couldn't find it..

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

The documentation of the People Resource Activities (which further links to the Assign To Field page) describes how when you acquire something it puts it on the label specified in the Assign To field. So whenever you acquire a staff, by default it puts a reference to the acquired staff on the patient's Staff label.

So all that syntax is doing is accessing the patient's Staff label and then acessing the MDExamTime label of the first Staff listed on the Staff label. You can read more about labels and the syntax for accessing label values here:

Key Concepts about Labels

Label Properties

0 Likes 0 ·