definecore

Generate submission-ready CDISC Define-XML 2.0 / 2.1 documents from metacore objects.

Installation

# Once on CRAN
install.packages("definecore")

# Development version
# remotes::install_github("shekharchalwadigrepo-hub/definecore")

Usage

library(definecore)
library(metacore)

# Load example metacore object
load(metacore_example("pilot_ADaM.rda"))  # loads object named 'metacore'

# Or from define.xml
# meta <- define_to_metacore("path/to/define.xml")

# Generate Define-XML 2.1
write_define_xml(
  metacore,
  file = "define.xml",
  define_version = "2.1",
  study_name = "CDISCPILOT01",
  study_description = "CDISC Pilot Study",
  standard_name = "ADaM-IG",
  standard_version = "1.1"
)

Features

Limitations (v0.1.0)

This is an initial release focused on core metadata mapping. Full production use for regulatory submissions may require:

Contributions welcome to expand coverage.

License

MIT