question

Tee Hiett avatar image
1 Like"
Tee Hiett asked Tee Hiett answered

Need help using label values in a statistical Collector

In the attached model of Corona's vaccination process, each patient must be observed for 15 minutes before leaving after the vaccination. To achieve this a patient enters the auditorium from the rear and goes to the leftmost available seat in the first row, the next patient goes to the next available seat, etc. The same process is followed for subsequent rows. When the first arrival on row one has been there for 15 minutes, he or she will depart through the exit on the upper left. When all the patients in a row have left, the next patient entering will go to the first available seat on that row and the process will continue for that row with subsequent patients feeling that row

With help from @Matthew Gillespie, I have developed the process whereby each patient has a label with the name "Used" which is set to 1 (Activity "Mark Seats Used") when acquired by a patient. When all the patient have left on a row, the value of "Used" will be set to 0 (custom code in Activity "Clear Row").

I can build a census chart of the patients in the auditorium but I would like to build a census chart of the seats which are unavailable (have the label "Used" with the value of one).

I have searched the help documentation and the answers.FlexSim site for any idea of how to do this but have not found any ideas

Any suggestions would be appreciated.

TeeCovid19 vaccinations auditorium_5.fsm

FlexSim 20.1.3
flexsim 20.1.3labelshealthcarecharts
5 |100000

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

Tee Hiett avatar image
1 Like"
Tee Hiett answered

Thanks, @jason.lightfoot for the solution in your model:

covid19-vaccinations-auditorium-5_jl2.fsm

and for clearing the problem with the website.

Your use of a list was right on time. I was trying, with no success, to use that approach. Your model not only solved my problem but will help learn about using Lists.

I will close this question and post additional questions that arise as I study the actives in your solution and learn more about using lists.

Tee

5 |100000

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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Tee Hiett converted comment to answer

The easiest way is to add a zone to the process flow that is global across the instances and then pin the zone statistics to a dashboard. Model attached.

covid19-vaccinations-auditorium-5_jl.fsm


· 7
5 |100000

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

Tee Hiett avatar image Tee Hiett commented ·

Nice try @jason.lightfoot.

Although a seat is released just before the Exit Zone activity, the label "Used" is not even check for reset until the custom code in the activity Clear Row. Even then the label will not be changed until the census on the role is equal to zero.

Note in the dashboard how the chart Seats with Used = 1 mirrors the chart census. Around the time of 7:21 AM the line should not gradually decrease but to stay constant until all of the 6 patients on the role have exited and then the line should decrease by 6.

Thanks for trying and I welcome any suggestions.

Tee

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Tee Hiett commented ·

Ah okay - like this:


I pushed and pulled from a list and plotted the content of the list. Jordan or Matt might have another method. I set the label on the token called Seats during your "Clear Row?" code activity.

covid19-vaccinations-auditorium-5_jl2.fsm



0 Likes 0 ·
Tee Hiett avatar image Tee Hiett Jason Lightfoot ♦♦ commented ·


@jason.lightfoot I get this error message when I try to download your solution

0 Likes 0 ·
Show more comments
Tee Hiett avatar image Tee Hiett commented ·

@jason.lightfoot I am unable to download your solution #2 in your response below this response.. I get the error message that the Server understood the request but refused to authorize it. HTTP Status 403

0 Likes 0 ·