SuccessfulDC: SuccessfulDC: Find those who are discharged to community

Description Usage Arguments Value Examples

Description

Queries a standardized MDS cohort dataset to identify those who were discharged to community

Usage

1
SuccessfulDC(x, '2018-01-01', '2018-10-01')

Arguments

x

A dataframe class object, must contain "bene_id_18900", "dmdate", "dmatype", "M3A2100"

.preindex

Date class object of length 1, start window to identify

.postindex

Date class object of length 1, stop window to identify

Value

an object of class data.frame, limited to those without discharge to community in window

Examples

1
2
3
4
5
require(mdsR)
mds_dta <- mdsR::mds_cohort
start <- lubridate::ymd('2017-01-01')
stop <- lubridate::ymd('2018-01-01')
mds_dta2 <- SuccessfulDC(mds_dta, start, stop)

kmcconeghy/mdsr documentation built on May 3, 2019, 1:47 p.m.