death_invalid: Checking If Death Date Time, Death Indicator, and Death...

Description Usage Arguments Details Value

View source: R/death_invalid.R

Description

This function will generate two data frames: first, a frame to be used later to extract invalid examples from; second, a frame that contains facility-level summaries for counts and percentages of death invalids.

Usage

1

Arguments

data

The raw data from BioSense on which you will do the invalid death checks.

Details

If Discharge_Disposition says the patient died, they should report a Death_Indicator AND Death_Date_Time. If they do not, this function counts that as invalid. If Death_Indicator (YES, yes, or Yes) is returned, then Death_Date_Time should be reported. If they do not, this function counts that as invalid. Death_Indicator should be reported if a Death_Date_Time is reported; if it is not, this function counts that as invalid.

Value

A list of two data frames: examples and summary for these invalid death checks.


princeofbrit/Biosensequlaty_BZ documentation built on Sept. 1, 2020, 6:46 p.m.