check_ts_cmdict {sdtmchecks} | R Documentation |
Check for missing WHODrug version in TS
Description
This check looks for missing WHODrug version; if it's present, also checking it's the current version
Usage
check_ts_cmdict(TS)
Arguments
TS |
Trial Summary SDTM dataset with variables TSPARMCD and TSVAL |
Value
boolean value if check failed or passed with 'msg' attribute if the test failed
Author(s)
Antony Howard (HackR 2021 Team Pentraxin1)
Examples
TS1 <- data.frame(
STUDYID = 1,
TSPARMCD = "CMDICT",
TSVAL = "WHODRUG GLOBAL B3 MARCH 1, 2021",
TSVAL2 = ""
)
TS2 <- data.frame(
STUDYID = 2,
TSPARMCD = "CMDICT",
TSVAL = "",
TSVAL1 = "WHODRUG GLOBAL B3 MARCH 1, 2021"
)
TS3 <- data.frame(
STUDYID = 3,
TSPARMCD = "CMDICT",
TSVAL = ""
)
TS4 <-data.frame(
STUDYID = 4,
TSPARMCD = "AEDICT",
TSVAL = ""
)
TS5 <- data.frame(
STUDYID = 5,
TSPARMCD = "CMDICT",
TSVAL = "meddra 24.0",
TSVAL2 = ""
)
TS6 <- data.frame(
STUDYID = 6,
TSPARMCD = "CMDICT",
TSVAL = "WHODRUG vGLOBAL B3 MARCH 1, 2021",
TSVAL2 = ""
)
check_ts_cmdict(TS1)
check_ts_cmdict(TS2)
check_ts_cmdict(TS3)
check_ts_cmdict(TS4)
check_ts_cmdict(TS5)
check_ts_cmdict(TS6)
check_ts_cmdict(rbind(TS1,TS1))
[Package sdtmchecks version 1.0.0 Index]