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

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

maria_c2
Not applicable
48 Views
2 Replies
Message 1 of 3

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

maria_c2
Not applicable

[ FlexSim HC 5.1.0 ]

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.

0 Likes
Accepted solutions (1)
49 Views
2 Replies
Replies (2)
Message 2 of 3

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

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.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 3

cliff_king
Not applicable

@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