extract_admits: Extract admits by nursing unit

Description Usage Arguments Value Examples

View source: R/extract_admits.R

Description

Extract admits by nursing unit

Usage

1
2
3
4
extract_admits(startdate_id, enddate_id, site = "LGH Lions Gate",
  n_units = c("LGH 2E", "LGH 3E", "LGH 3W", "LGH 4E", "LGH 4W", "LGH 5E",
  "LGH 6E", "LGH 6W", "LGH 7E", "LGH 7W", "LGH 7W", "LGH EIP", "LGH ICU"),
  denodo_vw = vw_admission_discharge)

Arguments

startdate_id

e.g. "20190101"

enddate_id

e.g. "20190101"

site

e.g. "Lions Gate Hospital"

n_units

e.g. "LGH 4E". Corresponds to denodo field nursing_unit_short_desc_at_admit

denodo_vw

e.g. vw_adtc. denodo_view is the name of the table saved as a connection via dbplyr

Value

a dataframe with dates and admission counts, by nursing unit

Examples

1
2
setup_denodo()
extract_admits("20190101", "20190107")

nayefahmad/denodoExtractor documentation built on Nov. 14, 2019, 4:33 p.m.