plot_readmissions_timeseries: Readmission frequency over period of time

View source: R/plot_readmissions_timeseries.R

plot_readmissions_timeseriesR Documentation

Readmission frequency over period of time

Description

plot_readmissions_timeseries shows readmission percentage over period of time. Indicates violation of Schewart rules as well.

Usage

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

Arguments

data

Hospital episode data.

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.

readmissionBy

Integer indicating readmission timeframe.

returnPlot

Plots the graph if set to TRUE, returns a dataframe otherwise.

hospitalName

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

Value

A lineplot (default) or a dataframe showing the proportion of readmissions over provided period of time.

Examples

## Not run: 
TBD

## End(Not run)

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