question

Maria C2 avatar image
0 Likes"
Maria C2 asked Jeff Nordgren edited

How can the companion see the same staff member as the patient?

The same MD needs to see both the patient and the companion seperately, but I am not sure how to specify in the companion's track that they have to see the same MD seen by the patient.

FlexSim HC 5.1.0
companions
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 Jeff Nordgren edited

At some point after the patient knows which MD they are seeing you could set a label (either on the patient or the companion) that points at that MD. Then in the companion track you could just use the getlabel command to get a reference to the MD pointed to by that label.

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

Cliff King avatar image Cliff King commented ·

@Maria C2, Using a label is probably the way to go, but you also might get away with using the following expression in the Staff Requirement field of the companion's track (the expression assumes it's requirement 1 on activity ID 55 of the main patient's track that you want to know the staff member of):

getrequiredresource(getcompanionparent(patient),torownum(getcompanionparent(patient),55),STAFF,1)<br>
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.