Description Usage Details Value Author(s) Examples
View source: R/time_series_queries.R
This query gets the data necessary to do a time series analysis on outpatient visits.
1 |
Requires a connection to DSS, uses both db_connect()
and db_disconnect()
The start date is set to 2001-01-01
The end date is set dynamically to the end of the previous month.
It gets data from smsdss.BMH_PLM_PtAcct_V
The data comes back aggregated by day, using the discharge date which is the same as the arrival date. The columns that are returned are:
date_col - date is of date
value - where value count of visits that day
This query excludes unitized and ED visits and those that start with 9
A tibble
Steven P. Sanderson II, MPH
1 2 3 4 | ## Not run:
ts_op_visits_query()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.