question

Roxanne Vo avatar image
0 Likes"
Roxanne Vo asked Jason Lightfoot commented

Using ports by case with female and male flow objects

Hi!

I have used "current.setVariable("itemclass", duniform(8,9));" to create males and females from one source. I also used set label by percentage at the source for three different percentages/values.


Later in the process, (in my model at the urine process) I tried to use port by case with the values I assigned at the source, but it does not seem to split accordingly.

I would really appreciate help.

I attached my model.


Milestone 3 Finaal (1).fsm

FlexSim 21.0.10
decision pointset labelmale and femalelabelbypercentagportbycase
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

Jacob W2 avatar image
0 Likes"
Jacob W2 answered Jason Lightfoot commented

@Roxanne Vo,

You can add a trigger on the nurses station that changes the label value on the patients after the visit them. All you need to do after that is add logic that routes the patient to PHC depending on that label. I have created a little model that shows how that works. When the items are created they are randomly given a "Type" label of 1, 2, or 3. After they go through the final processor they are given a "Type" value of 4. They then return to the original queue and are sent through the Check In processors which use a conditional send to port action which routes them to the sink. I have included my model so that you can see the way that I set up my logic.

Updating labels-JW.fsm


· 5
5 |100000

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