Hospital Simulation
Problem Brief
ABC NHS Trust provides medical services for around half a million people. The focus here is on inpatient, non- emergency services such as surgery for a given medical specialty.
The Department of Health has defined the Referral to Treatment Time (RTT) as a key performance measure; this is the time from a patient's referral to the start of treatment. Each patient arrives at ABC having already waited (the time since referral) a time called Elasped Time Since Referral (ETSR). Only the ABC system will be the time from arrival at ABC to treatment at ABC, a patient's RTT = ETSR + W.
Patients are classified as either urgent (U) or routine (R). Inter-arrival times are assumed to be independent and exponentially distributed. The rate of arrivals, per day is 3.69 for urgent and 2.19 for routine. Recall that the mean inter-arrival time is the time it takes (on average) for one arrival, and is the inverse of the arrival rate (the number of arrivals per unit time, on average). Service (treatment) times are constant (fixed) and equal to 1/6 days.
ETSR is modelled as follows: for R patients, it has a Normal Distribution with mean 70 days and standard Deviation 15 days (negative samples may be reset to zero; for simplicity this is not required); for U patients it has an Exponential Distribution with mean 50 days. Services is given according to the following priority rule:
- U patients have priority over R ones
- Within each type (U, R) priority is given to those with higher ETSR
This priority rule is complete (ties are virtually impossible): since both ETSR distributions are continuous, the probability that any two patients have the same ETSR is zero. We aim for a basic simulation in which patients are treated as Simul8's generic items (patients' appointments are not modelled). Output of interests are: (1) The fraction of patients whose RTT is no more than 18 weeks, (2) The effect of the priority rule on average waiting times. Specifically for each case, U and R, let x denote the ETSR as follows: x \(\leq\) F-1 (1/3) is small (S); x > F-1 (2/3) is large (L); otherwise it is medium (M). We want to estimate the mean waiting time at ABC (the W above) for each of the six categories formed by the patient types (U, R) and ETSR categories (S, M, L).
These outputs refer to long-run behaviour (steady state), but early parts of a simulation tend to depend heavily on the choice of initial system state (that is, at time zero). Thus: assume the initial system state is "empty"; use a warm-up of 200 days; and exclude the data observed during the warm-up. For consistency, all times should be measured in days.
Solution Report
The inflow and outflow of hospital patients needing routine or urgent care was simulated using Simul8. (250-word limit)
Assignment simulation example over a period of 31 days.
Two trials each consisting of 500 runs were conducted: one at a 95% confidence interval level and the other at 99%. There was a warmup period of 200 days, and each run lasted 2000 days. The trials produced near identical results reflective of steady state behavior. Results in Table 1.
To gain insight into the main points of interests, RTT \(\leq\) 18 weeks and the effects of priority rules on average waiting time, the following visual logic entries were written using labels (arrivalTime, ETSR, W, RTT, Patient)
- Exit on Queues:
- Calculates waiting times
- IF, ELSE IF and ELSE segments ETSR into categories based on thresholds
- Counts the number of patients within groups and sums their waiting times
- Treatment route in after logic:
- RTT is now calculated as all waiting is completed
- Identifies patients within RTT threshold
- End logic:
- Counts total patients within the system
- Calculates:
- Fraction of those whose RTT \(\leq\)18 weeks
- Average waiting time within each category once patient arrives at hospital for appointment
Considering that 'patients seen within 18 weeks' is a KPI, results show there is room for improvement. In the case of priority rules, there was an insignificant difference amongst those categorized as urgent. Conversely, the gap between the shortest Routine average waiting time and the longest Urgent average waiting time is approximately 1.14 hours. Amongst Routine patients Medium waited 42 minutes longer than Large. However, those in Routine-Small have a drastically longer waiting time of a day and a third (over a day longer than any other patient type). This waiting period needs to be improved, both in comparison to the other 5 categories, and because it is longer than a day.
Table 1: Outcome of 2 trial simulations stated in days
| ETSR | Patient Type | Trial 1 at 95% CI (500 runs) | Trial 2 at 95% CI (500 runs) | |||||
|---|---|---|---|---|---|---|---|---|
| Low 95% | Average | High 95% | Low 99% | Average | High 99% | |||
| Average Waiting Time (W) | Small | Routine | 1.31 | 1.33948 | 1.37 | 1.3 | 1.33948 | 1.38 |
| Average Waiting Time (W) | Medium | Routine | 0.31 | 0.30868 | 0.31 | 0.31 | 0.30868 | 0.31 |
| Average Waiting Time (W) | Large | Routine | 0.22 | 0.22089 | 0.22 | 0.22 | 0.22089 | 0.22 |
| Average Waiting Time (W) | Small | Urgent | 0.08 | 0.07857 | 0.08 | 0.08 | 0.07867 | 0.08 |
| Average Waiting Time (W) | Medium | Urgent | 0.08 | 0.07725 | 0.08 | 0.08 | 0.07725 | 0.08 |
| Average Waiting Time (W) | Large | Urgent | 0.08 | 0.07604 | 0.08 | 0.08 | 0.07604 | 0.08 |
| RTT \(\leq\)18 weeks (%) | 0.95 | 0.94689 | 0.95 | 0.95 | 0.94689 | 0.95 | ||