diff --git a/DESCRIPTION b/DESCRIPTION index f44fab0..d3422ce 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: pharmaversesdtm Type: Package Title: SDTM Test Data for the 'Pharmaverse' Family of Packages -Version: 1.0.0 +Version: 1.1.0 Authors@R: c( person("Edoardo", "Mancini", email = "edoardo.mancini@roche.com", role = c("aut", "cre"), comment = c(ORCID = "0009-0006-4899-8641")), person("Gayatri", "G", role = "aut"), @@ -15,8 +15,8 @@ Authors@R: c( Description: A set of Study Data Tabulation Model (SDTM) datasets from the Clinical Data Interchange Standards Consortium (CDISC) pilot project used for testing and developing Analysis Data Model (ADaM) datasets inside the pharmaverse - family of packages. SDTM dataset specifications are described in: CDISC Submission Data Standards Team - (2021) . + family of packages. SDTM dataset specifications are described in the CDISC SDTM implementation guide, + accessible by creating a free account on . Language: en-US License: Apache License (>= 2.0) URL: https://pharmaverse.github.io/pharmaversesdtm/, https://github.com/pharmaverse/pharmaversesdtm/ diff --git a/NEWS.md b/NEWS.md index c9e3225..c6d3a13 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,10 +1,12 @@ -# pharmaversesdtm (development version) +# pharmaversesdtm 1.1.0 -# New features +## New features -- Pediatrics data for anthropometric measures (`dm_peds` and `vs_peds`) was added (#88). +- Pediatrics data for anthropometric measures (`dm_peds` and `vs_peds`) was added. (#88) -- Add `CMENRTPT` to `cm`. (#120) +- `CMENRTPT` variable was added to the `cm` dataset. (#120) + +- `AELOC` variable was added to the `ae_ophtha` dataset. (#110)
Developer Notes diff --git a/data-raw/ae_ophtha.R b/data-raw/ae_ophtha.R index 84e9d4c..9ec4ae2 100644 --- a/data-raw/ae_ophtha.R +++ b/data-raw/ae_ophtha.R @@ -15,7 +15,7 @@ ae_ophtha <- ae ## Create possible AELAT values - as collected on CRF ---- lat <- c("LEFT", "RIGHT", "BOTH") -## Create AELAT variable ---- +## Create AELAT, AELOC variable ---- # Use random assignment of lat values where AESOC is "EYE DISORDERS" # Set seed so that result stays the same for each run set.seed(1) @@ -26,7 +26,11 @@ ae_ophtha$AELAT <- if_else(ae_ophtha$AESOC == "EYE DISORDERS", ) ae_ophtha <- ae_ophtha %>% - add_labels(AELAT = "Laterality") + mutate(AELOC = if_else(AESOC == "EYE DISORDERS", "EYE", NA_character_)) + +ae_ophtha <- ae_ophtha %>% + add_labels(AELAT = "Laterality") %>% + add_labels(AELOC = "Location") # Label dataset ---- attr(ae_ophtha, "label") <- "Adverse Events" diff --git a/data/ae_ophtha.rda b/data/ae_ophtha.rda index fbc4fe7..ee7c478 100644 Binary files a/data/ae_ophtha.rda and b/data/ae_ophtha.rda differ diff --git a/man/ae_ophtha.Rd b/man/ae_ophtha.Rd index 18b4699..c3fa45f 100644 --- a/man/ae_ophtha.Rd +++ b/man/ae_ophtha.Rd @@ -5,7 +5,7 @@ \alias{ae_ophtha} \title{Adverse Events for Ophthalmology} \format{ -An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 1191 rows and 36 columns. +An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 1191 rows and 37 columns. } \source{ Constructed using \code{ae} from the \code{{pharmaversesdtm}} package diff --git a/man/pharmaversesdtm-package.Rd b/man/pharmaversesdtm-package.Rd index fe9752a..bedb19c 100644 --- a/man/pharmaversesdtm-package.Rd +++ b/man/pharmaversesdtm-package.Rd @@ -8,7 +8,7 @@ \description{ \if{html}{\figure{logo.png}{options: style='float: right' alt='logo' width='120'}} -A set of Study Data Tabulation Model (SDTM) datasets from the Clinical Data Interchange Standards Consortium (CDISC) pilot project used for testing and developing Analysis Data Model (ADaM) datasets inside the pharmaverse family of packages. SDTM dataset specifications are described in: CDISC Submission Data Standards Team (2021) \url{https://www.cdisc.org/system/files/members/standard/foundational/SDTMIG\%20v3.4-FINAL_2022-07-21.pdf}. +A set of Study Data Tabulation Model (SDTM) datasets from the Clinical Data Interchange Standards Consortium (CDISC) pilot project used for testing and developing Analysis Data Model (ADaM) datasets inside the pharmaverse family of packages. SDTM dataset specifications are described in the CDISC SDTM implementation guide, accessible by creating a free account on \url{https://www.cdisc.org/}. } \seealso{ Useful links: