plot_ed_los_distribution_admission: Length of stay in the emergency department for attendances...

View source: R/plot_ed_los_distribution_admission.R

plot_ed_los_distribution_admissionR Documentation

Length of stay in the emergency department for attendances and admissions

Description

plot_ed_los_distribution_admission shows the distribution of length of stay for people in the emergency department, stratified by whether they were admitted to the hospital or discharged.

Usage

plot_ed_los_distribution_admission(
  data,
  startDate,
  endDate,
  returnPlot,
  hospitalName
)

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 distribution of length of stay for patients in the emergency department.

Examples

## Not run: 
TBD

## End(Not run)

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