patientsCDM: Pushes test population into a blank CDM.

View source: R/patients.R

patientsCDMR Documentation

Pushes test population into a blank CDM.

Description

Pushes test population into a blank CDM.

Usage

patientsCDM(
  pathJson = NULL,
  testName = NULL,
  cdmVersion = "5.3",
  cdmName = NULL
)

Arguments

pathJson

Directory where the sample populations in json are located. If NULL, gets the default inst/testCases directory.

testName

Name of the sample population JSON file. If NULL it will push the first sample population in the testCases directory.

cdmVersion

cdm version, default "5.3".

cdmName

Name of the cdm, default NULL.

Value

A CDM reference object with a sample population.

Examples


filePath <- system.file("extdata", "testPatientsRSV.xlsx", package = "TestGenerator")
TestGenerator::readPatients(filePath = filePath, outputPath = tempdir())
cdm <- TestGenerator::patientsCDM(pathJson = tempdir(), testName = "test")
duckdb::duckdb_shutdown(duckdb::duckdb())


TestGenerator documentation built on June 8, 2025, 12:47 p.m.