plot_ed_4hourperf_occupancy: Unscheduled emergency department occupancy by weekday and...

View source: R/plot_ed_4hourperf_occupancy.R

plot_ed_4hourperf_occupancyR Documentation

Unscheduled emergency department occupancy by weekday and hour

Description

plot_ed_4hourperf_occupancy visualises the proportion of unscheduled emergency department (ED) attendances with ED length of stay (LoS) >4hrs and wait for treatment >4hrs against ED occupancy on arrival.

Usage

plot_ed_4hourperf_occupancy(
  data,
  startDate,
  endDate,
  returnPlot = TRUE,
  hospitalName = "{hospital_name}"
)

Arguments

data

A dataframe of with start_datetime and end_datetime representing start and end of a patient's time in the emergency department.

startDate

The first date of the period for which the analysis will run.

endDate

The last date of the period for which the analysis will run.

returnPlot

Plots the graph if set to TRUE, returns a dataframe of the plot variables if set to FALSE.

hospitalName

The name of the hospital for which the analysis is being done.

Value

A plot (default) or dataframe showing the proportion of unscheduled ED attendances with ED LoS >4hrs and wait for treatment >4hrs against ED occupancy on arrival.

Examples

## Not run: 
TBD

## End(Not run)

HorridTom/hospitalflow documentation built on June 14, 2022, noon