From 1c967af46ed8eaf55a49487f84f3ea34e7c33164 Mon Sep 17 00:00:00 2001 From: Stefan Bundfuss Date: Fri, 24 May 2024 09:45:11 +0000 Subject: [PATCH] #86 rs_imwg: update comments and documentation --- R/data.R | 16 ++++++++++++++++ data-raw/rs_supprs_onco_imwg.R | 17 +++++++++++------ data/rs_onco_imwg.rda | Bin 1113 -> 1147 bytes data/supprs_onco_imwg.rda | Bin 611 -> 651 bytes 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/R/data.R b/R/data.R index 73630b1..345c339 100644 --- a/R/data.R +++ b/R/data.R @@ -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 diff --git a/data-raw/rs_supprs_onco_imwg.R b/data-raw/rs_supprs_onco_imwg.R index cd041c0..5edc2d6 100644 --- a/data-raw/rs_supprs_onco_imwg.R +++ b/data-raw/rs_supprs_onco_imwg.R @@ -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, @@ -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", @@ -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) diff --git a/data/rs_onco_imwg.rda b/data/rs_onco_imwg.rda index ef2d6d534da34049e8e96755796ce5f9815e0f73..91af73834bb1a774b819eb6093bb22c4c1ac283a 100644 GIT binary patch literal 1147 zcmV->1cduST4*^jL0KkKS-GqT;s6&o|M>s^>Xcl2f8c)q|KPu;-GM*=05AYR004ji z&;`C|5(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f8c)q|KPu;-GM*=05AYR004ji z&;`CwG!;Mq007F7pa1{>0B8UJ000004FFOjMu0Rl00000XaE2J2QqWHe+l zWB>pRjWRS0A&_%SMn+9CXa++@Lnc4~0LarLK*AXTQA9w15jKF0O*W>7pdiS4njWT^ zJxw(IDWRsGDfheG{<}NYXEDXl8X4S-4uc zV;%p8#N1CWxZH;69_#~zI=z|j!a><0WBwGsE8gnincLWyYSY=l17^67F#ljy6&cQ&bl@=M>$D`cyUPDCMZ`9 zKmZ_k{-}^{fFWTJ06wQ2B($&R0kQ*Jwl1n>R)v{Z%&{d@RWB`?HO4H+6rfVb8c7*c zOxUN@CM=66nKLSs zyb)6kWiYN18?qbj@<|xYwWgU(jT;NMpw!}k)rPVySj54&%4Dpt+GV|#JRDUdp3bzGh?mRR@q9h+ ziUVV_KLYw7F(7%|LZwQos#nBhq^kR0FBclXdNyV9V~=8I<$bSAl1;KnHtQgBI$$%b z2OI`YLVO&q&!2n-upg!ayW4>H;5a!QobpLJw)UFyz;wW8)7(hW16(JytDjg7Oh9bb z1F{3@fXoLC=yMad0fWF)j(%Ma3%0B_DV9oMh7zj`FvALARfbqHs#Rf?Rv0OuAIpah zURVw|4cmC&K4){o(ed3gi+>yk90yAEy{HZemp#h$-H;TzTr37Sy8Lo(sMB`mGzNRL zgH0eX*7mh=`dnOjfayAVFiuDff;wc5xDS(xeBXz?>-C^|n*JI&wBPsc^-w*K7dzxD3E^H1K$!IePq&KI=S` fl23j4zRBSGHIqv0s*t^+fAM!DQ-ui&{Rg%n&P4vL diff --git a/data/supprs_onco_imwg.rda b/data/supprs_onco_imwg.rda index 01f96a06547284c9c280b233c97f1c6642112e4a..1f74c942ff2090df0437ddd3a393ba3185f84278 100644 GIT binary patch literal 651 zcmV;60(AXCT4*^jL0KkKS&$Qepa2B^f5HF$NEARrfABx||KPvp-=IJM00IC3zyiEb z6jdQ4lR**cdTM%4Q1vv>0004@pa-Z2si5E(MiWd!0Dxow!ZgW~2*5)_fMFO-F$@9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