plot_ed_4hourperf_timeseries_flow: Emergency department 4 hour performance by flow groups

View source: R/plot_ed_4hourperf_timeseries_flow.R

plot_ed_4hourperf_timeseries_flowR Documentation

Emergency department 4 hour performance by flow groups

Description

plot_ed_4hourperf_timeseries_flow returns daily 4 hour emergency access performance in each of the 4 flow groups in the form of a plot or a dataframe.

Usage

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

Arguments

data

Hospital episode data.

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 in each of the 4 flow groups.

Examples

## Not run: 
TBD

## End(Not run)

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