plot_average_ed_los_hour_of_day: Average length of stay in the emergency department depending...

View source: R/plot_average_ed_los_hour_of_day.R

plot_average_ed_los_hour_of_dayR Documentation

Average length of stay in the emergency department depending on time of the day

Description

plot_average_ed_los_hour_of_day allows to visualize the average length of stay in the emergency department over 24 hour period (0-24h). Patients are grouped into 4 batches with respect to the flow group they belong to.

Usage

plot_average_ed_los_hour_of_day(
  data,
  startDate,
  endDate,
  returnPlot = TRUE,
  hospitalName = "Hospital name"
)

Arguments

data

Hospital episode data.

startDate

Date of earliest discharge to be included in the analysis.

endDate

Date of latest admission to be included in the analysis.

returnPlot

If TRUE returns a plot, otherwise returns a dataframe.

hospitalName

Name of the hospital.

Value

A plot (default) or a dataframe showing the average length of stay in the emergency department of different patient flow groups.

Examples

## Not run: 
TBD

## End(Not run)

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