question

Tee Hiett avatar image
1 Like"
Tee Hiett asked Tee Hiett commented

What is the command to get a Location name?

In Modeling an MRI out-patient clinic and a patient goes to one of 5 MRIs, I would like to record the name of that location on a patient label for use later. What is the command to get that location name?

Thanks,

Tee

FlexSim HC 5.1.0
healthcarelocation nameout-patient
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 Tee Hiett commented
getname(patientlocation)

That will get you the name of the patient's location in an Activity Finished/Started trigger.

However, if you are storing off the location to use again later (like in a Patient Destination field) I would store a pointer to the object on the label and not just the name. A reference to the object is much more useful:

setlabel(patient, "prevLocation", patientlocation);

Then if you want to send the patient back to that same location later you would put this in the Patient Destination field:

getlabel(patient, "prevLocation")
· 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.

Tee Hiett avatar image Tee Hiett commented ·

Thanks, Matthew. Do you have more information on using pointers versus using names?

0 Likes 0 ·

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.