Skip to content

Commit

Permalink
#86 rs_imwg: update comments and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bundfussr committed May 24, 2024
1 parent 8780ccc commit 1c967af
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
16 changes: 16 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@
#' @author Rohan Thampi
"rs_onco_irecist"

#' Disease Response Dataset (IMWG)
#'
#' A SDTM RS dataset using IMWG criteria. The dataset contains just a few patients.
#' It is intended for vignettes and examples of ADaM dataset creation.
#'
#' @author Vinh Nguyen
"rs_onco_imwg"

#' Supplemental Disease Response Dataset (IMWG)
#'
#' A SDTM supplemental RS dataset using IMWG criteria. It is intended to be used
#' together with `rs_onco_imwg`.
#'
#' @author Vinh Nguyen
"supprs_onco_imwg"

#' Supplemental Adverse Events Dataset
#'
#' A SDTM SUPPAE dataset from the CDISC pilot project
Expand Down
17 changes: 11 additions & 6 deletions data-raw/rs_supprs_onco_imwg.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Packages: ---------------------------------------------------------------
library(dplyr)
# Datasets: rs_onco_imwg, supprs_onco_imwg
# Description: RS Oncology and SUPPRS dataset using IMWG criteria

# Tribble data: -----------------------------------------------------------
# Load libraries -----
library(dplyr)

# Create rs_onco_imwg ----
rs_onco_imwg <- tibble::tribble(
~USUBJID, ~RSSEQ, ~RSLNKGRP, ~RSTESTCD, ~RSTEST, ~RSORRES, ~RSSTRESC, ~RSSTAT, ~RSREASND, ~RSEVAL, ~VISITNUM, ~VISIT, ~RSDTC, ~RSDY,
~USUBJID, ~RSSEQ, ~RSLNKGRP, ~RSTESTCD, ~RSTEST, ~RSORRES, ~RSSTRESC, ~RSSTAT, ~RSREASND, ~RSEVAL, ~VISITNUM, ~VISIT, ~RSDTC, ~RSDY,
"01-701-1015", 7L, "A2", "OVRLRESP", "Overall Response", "PD", "PD", NA, NA, "INVESTIGATOR", 7, "WEEK 6", "2014-02-12", 42L,
"01-701-1028", 7L, "A2", "OVRLRESP", "Overall Response", "sCR", "sCR", NA, NA, "INVESTIGATOR", 7, "WEEK 6", "2013-08", NA,
"01-701-1028", 16L, "A3", "OVRLRESP", "Overall Response", "sCR", "sCR", NA, NA, "INVESTIGATOR", 9, "WEEK 12", "2013-10-09", 84L,
Expand Down Expand Up @@ -83,12 +85,13 @@ rs_onco_imwg <- tibble::tribble(
RSDY
)

attr(rs_onco_imwg, "label") <- "Disease Response (IMWG)"

usethis::use_data(rs_onco_imwg, overwrite = TRUE)


# Create supprs_onco_imwg ----
supprs_onco_imwg <- tibble::tribble(
~USUBJID, ~IDVARVAL, ~QNAM, ~QLABEL, ~QVAL,
~USUBJID, ~IDVARVAL, ~QNAM, ~QLABEL, ~QVAL,
"01-701-1015", 7L, "PDOFL", "Progressive Disease: Other", "Y",
"01-701-1015", 7L, "DTHPDFL", "Death Due to Progressive Disease", "Y",
"01-701-1097", 7L, "PDOFL", "Progressive Disease: Other", "Y",
Expand Down Expand Up @@ -120,4 +123,6 @@ supprs_onco_imwg <- tibble::tribble(
STUDYID, RDOMAIN, USUBJID, IDVAR, IDVARVAL, QNAM, QLABEL, QVAL, QORIG
)

attr(supprs_onco_imwg, "label") <- "Supplemental Qualifiers for RS_ONCO_IMWG"

usethis::use_data(supprs_onco_imwg, overwrite = TRUE)
Binary file modified data/rs_onco_imwg.rda
Binary file not shown.
Binary file modified data/supprs_onco_imwg.rda
Binary file not shown.

0 comments on commit 1c967af

Please sign in to comment.