question

SKH avatar image
0 Likes"
SKH asked Matthew Gillespie commented

Command that returns patient destination?

getname(patientlocation) is to get current patient location. May i know what is the function and variable to get patient destination in flexscipt?

FlexSim HC 5.3.0
patient destination
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
  1. getdestination(patient)

From the documentation for that command:

Parameters

(obj traveler, [num transferactivityID])

Description

Gets the current, most recent, or pending destination of the traveler object. If the traveler is a patient, you should specify the activity ID number of the patient's transfer activity that you'd like to know the associated destination of. If the traveler is a patient and no transfer activity ID is specified, then the command will use the ID of the most recent activity started on the patient. If the traveler is a resource, rather than a patient, then the command assumes that the resource currently has an active task sequence containing a travel task, and it will use the most recent travel task (or if none have occured yet, the next pending travel task) to determine the destination.

Example

getdestination(patient, 100);

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