question

Aaron Stanton avatar image
0 Likes"
Aaron Stanton asked Patrick Cloutier commented

Using labels to assign process times

I am building out an outpatient infusion center and am trying to set the process (infusion) time based on patient arrival so all the long infusions arrive in the first few hours.

Is there a way to create a label or something the process can reference to know how long to infuse the patient based on their creation/arrival time?

I thought I created a label at the beginning but can't find it to reference in the process.


Thanks,

screenshot-2023-03-14-103730.jpgscreenshot-2023-03-14-103619.jpg


McNair 5 Scenario 8.fsm

FlexSim 22.2.3
labels
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

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier answered Patrick Cloutier commented

The label with the indusion time is correctly created in the Arrivals process but it is not yet accessible from the Patient Flow. See picture.

1678813970963.png


But it is written on the patient itself:

1678814248814.png


So you have to also assign label on the token created in the PatientFlow:

1678814634415.png


And now you have the info on the token in the PatientFlow to use as you need:

1678814693964.png



1678813970963.png (187.8 KiB)
1678814248814.png (307.2 KiB)
1678814634415.png (124.7 KiB)
1678814693964.png (158.1 KiB)
· 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·

And if you want to simplify this, remove the space in your field name Infusion Time.

If you do so, you can reference it just with:

patient.InfusionTime

instead of:

patient.labels["Infusion Time"].value
0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier commented ·

Or to simplify even further, you can skip the creation of a label on the Patient Flow token and simply reference the label on the patient whenever you need that info:

patient.InfusionTime
0 Likes 0 ·