attachExtensionTable
attachExtensionTable.RdCreates a lazy reference to an extension table in a specified schema
Examples
if (interactive()) {
# Example CDM with a pregnancy extension table
path <- system.file("exampleData", package = "PETConnector")
cdm <- TestGenerator::patientsCDM(
pathJson = path,
testName = "example_patients",
cdmVersion = "5.4"
)
# Attach a pregnancy extension table
cdm <- attachExtensionTable(
cdm = cdm,
table = "pregnancy",
tableSchema = "main"
)
}