View source: R/trace_evidence.R
| trace_model_to_evidence | R Documentation |
Emits evidence rows compatible with r4subcore::validate_evidence() for
each ADaM variable's trace level, plus diagnostic rows for orphans,
ambiguities, and conflicts.
trace_model_to_evidence(
trace_model,
ctx,
source_name = "r4subtrace",
source_version = NULL
)
trace_model |
A |
ctx |
An |
source_name |
Character; the name of the evidence source. |
source_version |
Character or |
A data.frame of evidence rows passing r4subcore::validate_evidence().
library(r4subcore)
ctx <- r4sub_run_context(study_id = "TEST001", environment = "DEV")
adam_meta <- data.frame(
dataset = "ADSL", variable = c("STUDYID", "AGE"),
label = c("Study ID", "Age")
)
sdtm_meta <- data.frame(
dataset = "DM", variable = c("STUDYID", "AGE"),
label = c("Study ID", "Age")
)
map <- data.frame(
adam_dataset = "ADSL", adam_var = c("STUDYID", "AGE"),
sdtm_domain = "DM", sdtm_var = c("STUDYID", "AGE")
)
tm <- build_trace_model(adam_meta, sdtm_meta, mapping = map)
ev <- trace_model_to_evidence(tm, ctx = ctx)
r4subcore::validate_evidence(ev)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.