-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
80 lines (59 loc) · 2.67 KB
/
README.Rmd
File metadata and controls
80 lines (59 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# DES Patient Pathway
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
This patient pathway model is designed to simulate a typical acute hospital outpatient, admission, treatment, and followup pathways. It uses Discrete Event Simulation (DES) methodology, and is implemented using the open-source {simmer} R package.
It is designed to be used by hospital management and clinicians to investigate service configuration options. It models a single pathway, and is configurable so that users can experiment with "what if" questions.
It presents results graphically wherever possible (some of this is still in development).
## Model configuration options
The model uses a blend of hard-coded assumtions, and a set of configurable options. Over time (or by request), options that are currently hard-coded may be made user-configurable.
#### Examples of configurable items (some are under development):
* Number of weeks to forecast ahead (default is 2 years)
* Patient referral (arrival) rate
* Conversion rate (from OP appointment to admission / treatment waiting list)
* Outpatient appointment followup rate (what proportion of OP appts are new vs. followups)
* Existing service waiting list (backlog size)
* Outpatient clinics:
- Number of clinics (schedule)
- OP clinic appointment length
* Pre-operative ward:
- Number of beds
- Patient average length-of-stay
* Post-operative ward:
- Number of beds
- Patient average length-of-stay
* Operating theatre
- Operating hours (schedule)
- Average procedure length
#### Examples of currently hard-coded items:
* Distributions (variation) of length-of-stay, and theatre procedure length
* OP clinics and Operating theatres are currently assumed to be the same every day (ie. 7 day service). The ability to define weekly capacities is planned in due course.
* Appointment non-attendance (DNA - did not attend) is not currently modelled. Attendance is assumed to be 100%
## Installation
You can install DESPatientPathway like so:
``` r
# install.packages("remotes")
remotes::install_github("ThomUK/DESPatientPathway", build_vignettes = TRUE)
```
## Run the app locally
To run the app on your local machine, use the below:
```{r eval=FALSE}
library("DESPatientPathway")
run_app()
```
or simply:
```{r eval=FALSE}
DESPatientPathway::run_app()
```