question

David Chan avatar image
0 Likes"
David Chan asked Matthew Gillespie commented

HC: use resource based on the first resource use

Hi

How do I assign second staff group based on the first staff group used in the Processing Activity in HC?

Thanks

David

use-resource-based-on-first-resource-used.fsm

FlexSim HC 5.1.0
resource assignment
· 2
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

You can use the following commands to get a reference to previously used staff:

  1. int activityID = 20;
  2. int activityRow = torownum(patient, activityID);
  3. int reqNum = 1;
  4.  
  5. getrequiredresource(patient, activityRow, STAFF, reqNum)
  6. getrequiredgroup(patient, activityRow, STAFF, reqNum)

The above will get you the first staff member and the first staff group used by activity 20. You can then use the returned value to determine the staff requirement of activity 30.

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.