A single entry point that harvests evidence from metadata and one or more ADaM datasets and, when 'r4subscore' is available, computes the Submission Confidence Index (SCI) in one call. It is the fastest way to go from a 'pharmaverse' pipeline to a readiness score.

submission_readiness(data, metadata, ctx, config = NULL)

Arguments

data

A named list of ADaM data.frames (names are dataset identifiers, e.g. "ADSL"), or a single data.frame when the metadata covers one dataset.

metadata

A Metacore object or a data.frame accepted by as_variable_metadata().

ctx

An r4subcore::r4sub_run_context providing run and study identifiers.

config

An optional sci_config (see r4subscore::sci_config_default()). When NULL, the r4subscore default is used.

Value

An object of class "submission_readiness": a list with evidence (the combined evidence data.frame), pillar_scores, and sci (an sci_result, or NULL if 'r4subscore' is not installed).

Examples

# Score the CDISC pilot ADSL against the ADaM metadata in r4subdata.
ctx <- suppressMessages(r4subcore::r4sub_run_context("CDISCPILOT01", "DEV"))
res <- suppressMessages(submission_readiness(
  list(ADSL = pharmaverseadam::adsl),
  r4subdata::adam_metadata,
  ctx
))
nrow(res$evidence)
#> [1] 122