question

jgbb avatar image
0 Likes"
jgbb asked Felix Möhlmann commented

Patient arrival patterns

In the Source Arrivals, what expression do I need to put in the Quantity column to simulate our emergency department's typical arrival patterns. For example, I know that in our ED on average 2.2 patients arrive between 07:00-08:00. Patients are whole people so I really just need the simulation to select 2 or 3 patients to arrive randomly spaced during that hour.

FlexSim 22.2.0
patient arrivals
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

You could use a base of 2 and add 1 in 20 percent of the cases.

  1. 2 + bernoulli(20, 1, 0, getstream(activity))

With larger numbers you might want a bigger variance though, so using a distribution with the correct mean value and rounding the value might be better.

· 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.

jgbb avatar image jgbb commented ·
Hi, I have a follow up question to this. I know the ED arrival patterns as stated above, but now I need to add that 30% of the patients arrive via EMS and not walk in. In my simulation I have two arrival sources so how would I adjust the expression for the EMS entrance to only be 30% while the other 70% come through the walk in entrance?
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann jgbb commented ·

Just use a single source and split the tokens 70/30 in a Decide activity.

1736753171343.png

0 Likes 0 ·
1736753171343.png (23.7 KiB)