getStudiesSDESIGN {sendigR} | R Documentation |
Extract a list of SEND studies with a specified study design - or just add actual study design for each study.
Description
Returns a data table with the list of study ids from TS where the value of
TSVAL for the TSPARMCD 'SDESIGN' is equal to a given study design.
If the studyDesignFilter
is empty (null, na or empty string) - all
rows for the TSPARMCD 'SDESIGN' are returned.
Usage
getStudiesSDESIGN(
dbToken,
studyList = NULL,
studyDesignFilter = NULL,
exclusively = TRUE,
inclUncertain = FALSE,
noFilterReportUncertain = TRUE
)
Arguments
dbToken |
Mandatory. |
studyList |
Optional, data.table. |
studyDesignFilter |
Mandatory, character. The study design to use as criterion for filtering of the study id values. It can be a single string, a vector or a list of multiple strings. |
exclusively |
Mandatory, boolean.
|
inclUncertain |
Mandatory, boolean. |
noFilterReportUncertain |
Mandatory, boolean |
Details
Extracts the set of studies from TS where the value of TSVAL for the TSPARMCD
'SDESIGN' is equal to a given study design.
The comparison of study design values are done case insensitive.
If a data table with a list of studies is specified in studyList
, only
the subset of studies included in that set is processed.
If input parameter inclUncertain=TRUE
, uncertain animals are included
in the output set. These uncertain situations are identified and reported (in
column UNCERTAIN_MSG):
without any row for TSPARMCD='SDESIGN' or
TSVAL doesn't contain a value included in the CDISC CT list 'DESIGN' for TSPARMCD='SDESIGN' (case insensitive comparison)
The same checks are performed and reported in column NOT_VALID_MSG if
studyDesignFilter
is empty and noFilterReportUncertain=TRUE
.
Value
The function returns a data.table with columns:
STUDYID (character)
Additional columns contained in the
studyList
table (if such an input table is given)SDESIGN (character)
If multiple TSPARMCD 'SDESIGN' values are extratced for a studies, all the values are merged into a comma separated string.UNCERTAIN_MSG (character)
Included when parameterinclUncertain=TRUE
.
Contains indication of whether STSTDTC is missing of has wrong format.
Is NA for rows where SDESIGN is valid.
A non-empty UNCERTAIN_MSG value generated by this function is merged with non-empty UNCERTAIN_MSG values which may exist in the optional input set of studies specified instudyList
- separated by '|'.NOT_VALID_MSG (character)
Included when parameternoFilterReportUncertain=TRUE
.
In case the SDESIGN cannot be confidently decided, the column contains an indication of the reason.
Is NA for rows where SDESIGN can be confidently decided.
A non-empty NOT_VALID_MSG value generated by this function is merged with non-empty NOT_VALID_MSG values which may exist in the input set of studies specified instudyList
- separated by '|'.
Examples
## Not run:
GetStudyListSDESIGN(myDbToken, 'PARALLEL')
## End(Not run)