Learn R Programming

TestGenerator (version 0.3.1)

patientsCDM: Pushes test population into a blank CDM.

Description

Pushes test population into a blank CDM.

Usage

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

Value

A CDM reference object with a sample population.

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

Examples

Run this code
# \donttest{
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())
# }

Run the code above in your browser using DataLab