# question

0 Likes"

## Patient with appointments at different stations

Hi,

May i know how i can go about building a model with the following logic?

Customers arrive based on appointment time at different stations. For example:

• Customer 1 has an appointment at station A, B,C at 9AM, 930AM, 1030AM.
• Customer 2 has an appointment at station B,C at 930AM, 1030AM.
• However, customer 1 might be late for appointment at station B due to processing time or because customer 1 was late for Station A. As such, when customer 2 arrives at station B at 930AM, customer 2 will either be served immediately or wait for customer 1 to be served first.

Ultimately, I want to be able to key into 1 or several global tables the number of appointments in each station and let flexsim run the simulation to get the waiting time for each customer. The difficulty i am experiencing now is linking the same customer to their respective arrival source. Thank you!

FlexSim 20.1.3
· 2

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

·

Could you clarify if the patient has the appointment at station A, B and C at 9 am, 9.30 am and 10.30 am respectively?

David

0 Likes 0 ·
David Chan ·

Hi David, yes, patient 1 has appointment at station A, B and C at 9am, 930am and 1030am respectively. However, patient 1 could be late to station B and C due to delays in station A etc

0 Likes 0 ·

0 Likes"

@Lenny C In order to do so, my suggestion is to use a Split activity in your patient flow. After splitting, one token is used to control the time (or the movement of the patient) based on the appointment time and another token is for the patient. Use Synchronize activity to sync the tokens from two flow.

Please see the enclosed model for detail.

David

Patient with appointments at different station.fsm

· 3

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

·

@Lenny C, if you don't hear back from David with a version of his model for FlexSim 20.1, keep in mind that our Express version (no license) can open and view any model. The latest version is available for anyone to download from a FlexSim Account, and it can be installed alongside your 20.1 version.

You should be able to use Express 21.1 to open David's model and see what he has done. You can then follow his example in your own model (assuming he didn't use newer features that are unavailable in 20.1).

1 Like 1 ·
·

Hi David, i am currently using Flexsim version 20.1.3 and hence is unable to open your file. Could you attach the 20.1.3 version? Thank you!

0 Likes 0 ·
Lenny C ·

@Lenny C Please try this. Instead of using Synchronization, I use Join for this case.

David

Patient with appointments at different station 2020.fsm

0 Likes 0 ·