12 Health Clinic
12.1 Data
| Name | Description | Initial Value |
|---|---|---|
| NextWalkUpIdNum | The Id number that will be assigned to the next walk-up patient | 1 |
| NextApptIdNum | The Id number that will be assigned to the next appointment patient | 1 |
| NextDoctorIdNum | The Id number that will be assigned to the next doctor | 1 |
| \(W\) | The set of all walk-up patients | \(\emptyset\) |
| \(A\) | The set of all appointment patients | \(\emptyset\) |
| \(D\) | The set of all doctors | \(\emptyset\) |
| Name | Source | Model | Type | Input | Output |
|---|---|---|---|---|---|
| InterarrivalTime | Experiment | Poisson Process | Stochastic | Mean | Sample from distribution |
| AppointmentTimes | Experiment | Lookup | Deterministic | Appointment Number | Appointment Time |
| ConsultationDuration | Clinic Data | Triangular Distribution | Stochastic | Min, Mode, Max | Sample from Distribution |
12.2 Components
| Entity | Attributes |
|---|---|
| Walk-up Patient | ID |
| CurrentActivity | |
| CurrentStart | |
| ArrivalTime | |
| WaitTime | |
| Appointment Patient | ID |
| CurrentActivity | |
| CurrentStart | |
| AppointmentNumber | |
| AppointmentTime | |
| WaitTime | |
| Doctor | ID |
| CurrentActivity | |
| CurrentStart | |
| Role | |
| ConsultTime |
| Participant | Name | From Event | To Event |
|---|---|---|---|
| Walk-up Patient | W.1 | Walk-up Arrives | Walk-up Wait for Consultation.Start |
| W.2 | Walk-up Wait for Consultation.End | Consultation.Start | |
| W.3 | Consultation.End | Walk-up Patient Leaves | |
| Appointment Patient | A.1 | Appt. Arrives | Appt. Wait for Consultation.Start |
| A.2 | Appt. Wait for Consultation.End | Consultation.Start | |
| A.3 | Consultation.End | Appt. Patient Leaves | |
| Doctor | D.1 | Doctor Created | Wait for Patient.Start |
| D.2 | Wait for Patient.End | Consultation.Start | |
| D.3 | Consultation.End | Wait for Patient.Start |
| Activity | Participants | Event | Type | State Change |
|---|---|---|---|---|
| Walk-up Wait for Consultation | Walk-up Patient (w) | Start | Scheduled | |
| End | Controlled | |||
| Consultation | Walk-up/Appointment Patient (p), Doctor (d) | Start | Controlled | |
| End | Scheduled | |||
| Appt. Wait for Consultation | Appt. Patient (a) | Start | Scheduled | |
| End | Controlled | |||
| Wait for Patient | Doctor (d) | Start | Scheduled | |
| End | Controlled |
| Event | Participants | Type | State Change |
|---|---|---|---|
| Simulation Start | - | Scheduled | |
| Walk-up Patient Arrives | - | Scheduled | |
| Appt. Patient Arrives | - | Scheduled | |
| Create Doctor | - | Scheduled | |
| Walk-up Patient Leaves | Walk-up Patient (w) | Scheduled | |
| Appt. Patient Leaves | Appointment Patient (a) | Scheduled | |
| Simulation Finish | - | Scheduled |