question

Pert P avatar image
0 Likes"
Pert P asked Matthew Gillespie commented

Determine patients incoming and go to others location with probability

have a question about a hospital simulation model. I determined the number of patients coming in at each time point using the Poinson distribution. And what I'm stuck on is I would like to define that for each period of time patients come in, coming in every hour, each hour has a different proportion of the number of people coming in. For example, 7:00-8: 00 patients arrived with a poisson(34) distribution. Of these, 26% of the patients arrived at OPD_MED , 25% of the patients arrived at OPD_PED , and 34% of the patients arrived at OPD_PED . Of the number of patients that come in must go to OPD_SURGERY and 15% of the number of patients that come in must go to the ER. If only 1 patient comes into the system in that hour, choose the location that will go with the % value. I write it in process flow, but I don't know how to direct decision.

Demo HC.fsm

screenshot-2566-03-27-at-111559-pm.png

I have also attached the model file. Including a picture showing the distribution of the patient's entry

in each time period and the probability that patients are divided into different locations.


As for the question I would like to answer is

1. The patient distribution schedule has been distributed for each period. in each period I want to assign a location to go after entering the system for that group of patients. with the percentage as shown in the figure


2. How do I have to write in the process flow in order to execute the above conditions?

FlexSim 22.2.4
process flowhealthcarepatient arrivalspatientflow
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

Here is an example of one way you could do this. demo-hc_1.fsm

I added a new Label column to the Source activity in the Arrivals flow and made it an Array label. In that array I put the 4 percentages:

1679938735166.png

Then in the Decide activity in the Patient Flow I chose By Percentage in the Send Token To field and added 4 sections. Each references one of the percentages on the Percents array label.

1679938860288.png


1679938735166.png (53.3 KiB)
1679938860288.png (25.4 KiB)
demo-hc-1.fsm (122.8 KiB)
· 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.

Pert P avatar image Pert P commented ·

How to create dashboard to count patient incoming to system?


0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Pert P commented ·
Please start a new post to ask this new question.
0 Likes 0 ·
Pert P avatar image Pert P commented ·

Last question, In each time not allow all patients to come into system all together. such as If 00:00-01:00 need to have patient 100 patients come into system but not allow come into system at the same time. random come come into system may be 2 people come at the same or 3 people come at the same time like this and at the duration need to get patient complete 100


0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Pert P commented ·

Change the Arrival Spacing at the bottom of the DateTime Source properties to be Randomly Spaced

1680016566118.png

0 Likes 0 ·
1680016566118.png (16.3 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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