diff --git a/.Rbuildignore b/.Rbuildignore index 365a167..06b42b8 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -8,3 +8,6 @@ cran-comments.md ^LICENSE\.md$ ^CRAN-RELEASE$ ^CRAN-SUBMISSION$ +^safetyCharts\.Rcheck$ +^safetyCharts.*\.tar\.gz$ +^safetyCharts.*\.tgz$ diff --git a/.gitignore b/.gitignore index e3cd3ff..8644b9e 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,6 @@ vignettes/*.pdf .DS_Store .Rproj.user +safetyCharts.Rcheck/ +safetyCharts*.tar.gz +safetyCharts*.tgz diff --git a/R/meta.R b/R/meta.R index 7177449..5279f37 100644 --- a/R/meta.R +++ b/R/meta.R @@ -179,4 +179,24 @@ #' #' @source Created for this package -"meta_ex" \ No newline at end of file +"meta_ex" + +#' Metadata data frame containing information about the data mapping used to configure safetyGraphics for the nepExplorer Chart. One record per unique data mapping +#' +#' @format A data frame with X rows and 10 columns +#' \describe{ +#' \item{domain}{Data domain} +#' \item{text_key}{Text key indicating the setting name. \code{'--'} delimiter indicates a field level data mapping} +#' \item{col_key}{Key for the column mapping} +#' \item{field_key}{Key for the field mapping (if any)} +#' \item{type}{type of mapping - "field" or "column"} +#' \item{label}{Label} +#' \item{description}{Description} +#' \item{multiple}{Mapping supports multiple columns/fields } +#' \item{standard_adam}{Default values for the ADaM data standard} +#' \item{standard_sdtm}{Default values for the SDTM data standard} +#' } +#' +#' @source Created for this package + +"meta_nepExplorer" \ No newline at end of file diff --git a/data-raw/makeMeta.R b/data-raw/makeMeta.R index fdb2c16..14a67dc 100644 --- a/data-raw/makeMeta.R +++ b/data-raw/makeMeta.R @@ -42,3 +42,8 @@ usethis::use_data(meta_ex, overwrite = TRUE) #hepExplorer meta_hepExplorer<-read_csv("data-raw/meta_hepExplorer.csv")[] usethis::use_data(meta_hepExplorer, overwrite = TRUE) + +#Chart-level metadata +#nepExplorer +meta_nepExplorer<-read_csv("data-raw/meta_nepExplorer.csv")[] +usethis::use_data(meta_nepExplorer, overwrite = TRUE) diff --git a/data-raw/meta_nepExplorer.csv b/data-raw/meta_nepExplorer.csv new file mode 100644 index 0000000..1a77439 --- /dev/null +++ b/data-raw/meta_nepExplorer.csv @@ -0,0 +1,11 @@ +text_key,domain,col_key,field_key,type,label,description,multiple,standard_adam,standard_sdtm +measure_values--CREAT,labs,measure_col,CREAT,field,Creatinine value,Value used for Creatinine in the specified measure column,FALSE,Creatinine (umol/L),Creatinine +measure_values--ALB,labs,measure_col,ALB,field,Albumin value,Value used for Albumin in the specified measure column,FALSE,Albumin (g/L),Albumin +measure_values--BUN,labs,measure_col,BUN,field,Creatinine value,Value used for Blood Urea Nitrogen in the specified measure column,FALSE,Blood Urea Nitrogen (mmol/L),Blood Urea Nitrogen +measure_values--CA,labs,measure_col,CA,field,Calcium value,Value used for Calcium in the specified measure column,FALSE,Calcium (mmol/L),Calcium +measure_values--CL,labs,measure_col,CL,field,Chloride value,Value used for Chloride in the specified measure column,FALSE,Chloride (mmol/L),Chloride +measure_values--PHOS,labs,measure_col,PHOS,field,Phosphate value,Value used for Phosphate in the specified measure column,FALSE,Phosphate (mmol/L),Phosphate +measure_values--K,labs,measure_col,K,field,Potassium value,Value used for Potassium in the specified measure column,FALSE,Potassium (mmol/L),Potassium +measure_values--SODIUM,labs,measure_col,SODIUM,field,Sodium value,Value used for Sodium in the specified measure column,FALSE,Sodium (mmol/L),Sodium +measure_values--DIABP,vitals,measure_col,DIABP,field,Diastolic Blood Pressure value,Value used for Diastolic Blood Pressure in the specified measure column,FALSE,Diastolic Blood Pressure (mmHg),Diastolic Blood Pressure +measure_values--SYSBP,vitals,measure_col,SYSBP,field,Systolic Blood Pressure value,Value used for Systolic Blood Pressure in the specified measure column,FALSE,Systolic Blood Pressure (mmHg),Systolic Blood Pressure diff --git a/data/meta_nepExplorer.rda b/data/meta_nepExplorer.rda new file mode 100644 index 0000000..865d977 Binary files /dev/null and b/data/meta_nepExplorer.rda differ diff --git a/inst/config/nepExplorer.yaml b/inst/config/nepExplorer.yaml new file mode 100644 index 0000000..ac9bd07 --- /dev/null +++ b/inst/config/nepExplorer.yaml @@ -0,0 +1,27 @@ +env: safetyGraphics +label: Nephrotoxicity Explorer +type: htmlwidget +package: safetyCharts +domain: + - labs +dataSpec: + labs: + - id_col + - visit_col + - visitn_col + - studyday_col + - measure_col + - value_col +export: true +workflow: + widget: nepExplorer + ui: nepexplorer_ui + server: nepexplorer_server +links: + Clinical Users Guide (pdf): + Homepage: https://github.com/SafetyGraphics/nep-explorer + Wiki: https://github.com/SafetyGraphics/nep-explorer/wiki + Issues: https://github.com/SafetyGraphics/nep-explorer/issues + Demo: https://safetygraphics.github.io/nep-explorer/test-page/ + safetyCharts: https://github.com/SafetyGraphics/safetycharts + diff --git a/man/meta_nepExplorer.Rd b/man/meta_nepExplorer.Rd new file mode 100644 index 0000000..d5033c7 --- /dev/null +++ b/man/meta_nepExplorer.Rd @@ -0,0 +1,31 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/meta.R +\docType{data} +\name{meta_nepExplorer} +\alias{meta_nepExplorer} +\title{Metadata data frame containing information about the data mapping used to configure safetyGraphics for the nepExplorer Chart. One record per unique data mapping} +\format{ +A data frame with X rows and 10 columns +\describe{ +\item{domain}{Data domain} +\item{text_key}{Text key indicating the setting name. \code{'--'} delimiter indicates a field level data mapping} +\item{col_key}{Key for the column mapping} +\item{field_key}{Key for the field mapping (if any)} +\item{type}{type of mapping - "field" or "column"} +\item{label}{Label} +\item{description}{Description} +\item{multiple}{Mapping supports multiple columns/fields } +\item{standard_adam}{Default values for the ADaM data standard} +\item{standard_sdtm}{Default values for the SDTM data standard} +} +} +\source{ +Created for this package +} +\usage{ +meta_nepExplorer +} +\description{ +Metadata data frame containing information about the data mapping used to configure safetyGraphics for the nepExplorer Chart. One record per unique data mapping +} +\keyword{datasets}