los: Length of Stay

Description Usage Arguments Format Value Note Examples

Description

los_clinic is for determining clinical, or actual, length of stay for psychiatric hospitalizations. paid_los is for determining the number of paid days a consumer had during a psychiatric hospitalization.

Usage

1
2
3
los

los_clinic(start, expiration, discharge)

Arguments

start

'Date' vector or a character vector that can be coerced to 'Date' class. The start date of the psychiatric hospital admission. Cannot be missing.

expiration

'Date' vector or a character vector that can be coerced to 'Date' class. The expiration date of the psychiatric hospital admission. Cannot be missing.

discharge

'Date' vector or a character vector that can be coerced to 'Date' class. The discharge date of the psychiatric hospital admission. If discharge is missing, use expiration date plus one day.

Format

An object of class NULL of length 0.

Value

A character vector.

Note

Consider making a new fiscal_year class and/or fiscal_quarter class. Also consider making some methods (this needs further consideration).

Examples

1
2
3
4
## Not run: 
1+1

## End(Not run)

JamesDalrymple/wccmh documentation built on May 7, 2019, 10:20 a.m.