Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 131 #145

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ cran-comments.md
^LICENSE\.md$
^CRAN-RELEASE$
^CRAN-SUBMISSION$
^safetyCharts\.Rcheck$
^safetyCharts.*\.tar\.gz$
^safetyCharts.*\.tgz$
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ vignettes/*.pdf

.DS_Store
.Rproj.user
safetyCharts.Rcheck/
safetyCharts*.tar.gz
safetyCharts*.tgz
22 changes: 21 additions & 1 deletion R/meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,24 @@
#'
#' @source Created for this package

"meta_ex"
"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"
5 changes: 5 additions & 0 deletions data-raw/makeMeta.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
11 changes: 11 additions & 0 deletions data-raw/meta_nepExplorer.csv
Original file line number Diff line number Diff line change
@@ -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
Binary file added data/meta_nepExplorer.rda
Binary file not shown.
27 changes: 27 additions & 0 deletions inst/config/nepExplorer.yaml
Original file line number Diff line number Diff line change
@@ -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

31 changes: 31 additions & 0 deletions man/meta_nepExplorer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.