patientsCDM {TestGenerator}R 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")

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".

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())


[Package TestGenerator version 0.3.1 Index]