plot_ed_4hourperf_timeseries: Emergency department 4 hour performance

View source: R/plot_ed_4hourperf_timeseries.R

plot_ed_4hourperf_timeseriesR Documentation

Emergency department 4 hour performance

Description

plot_ed_4hourperf_timeseries returns daily 4 hour emergency access performance in the form of a plot or a dataframe.

Usage

plot_ed_4hourperf_timeseries(
  data,
  startDate,
  endDate,
  timeUnit = "day",
  returnPlot = TRUE,
  hospitalName = "{hospital_name}"
)

Arguments

data

Hospital episode data with at least the following fields:

  • Attendances - the attendances date and time;

  • Discharges - the discharge date and time;

  • Pseudo id - the patient pseudo id;

startDate

A datetime, as a POSIXct, of the earliest attendance to be included in the analysis.

endDate

A datetime, as a POSIXct, of the latest attendance to be included in the analysis.

timeUnit

The unit of aggregation for 4 hour performance percentages in the same format as lubridate::round_date.

returnPlot

If TRUE returns a chart, otherwise returns a dataframe.

hospitalName

The hospital name for which the analysis is undertaken.

Value

A plot (default) or a dataframe showing 4 hour performance of the emergency department.

Examples

## Not run: 
TBD

## End(Not run)

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