check_mh_missing_month {sdtmchecks}R Documentation

Check for MH dates with year and day known but month unknown

Description

This check looks for partial missing dates in medical history start and end dates. That is, with only the month missing while the year and day are known

Usage

check_mh_missing_month(MH, preproc = identity, ...)

Arguments

MH

Medical History SDTM dataset with variables USUBJID, MHTERM and MHSTDTC

preproc

An optional company specific preprocessing script

...

Other arguments passed to methods

Value

Boolean value for whether the check passed or failed, with 'msg' attribute if the check failed

Author(s)

Chandra Mannem

Examples


MH <- data.frame(USUBJID = LETTERS[1:5],
                 MHTERM = LETTERS[5:1],
                 MHSTDTC = c("2014", NA, "2014-01", "", "2014---02"),
                 stringsAsFactors = FALSE)

check_mh_missing_month(MH)

MH$MHSPID= "FORMNAME-R:2/L:2XXXX"

check_mh_missing_month(MH,preproc=roche_derive_rave_row)


[Package sdtmchecks version 1.0.0 Index]