readPatients {TestGenerator}R Documentation

Converts a sample of patients in XLSX format into Unit Testing Definition in JSON format.

Description

Converts a sample of patients in XLSX format into Unit Testing Definition in JSON format.

Usage

readPatients(filePath = NULL, testName = "test", outputPath = NULL)

Arguments

filePath

Path to the test patient data in Excel format. The Excel has sheets that represent tables from the OMOP-CDM, e.g. person, drug_exposure, condition_ocurrence, etc.

testName

A name of the test population in character.

outputPath

Path of the output file, if NULL, a folder will be created in the project folder inst/testCases.

Value

A JSON file with sample patients inside the project directory.

Examples

filePath <- system.file("extdata", "testPatientsRSV.xlsx", package = "TestGenerator")
readPatients(filePath = filePath, outputPath = tempdir())


[Package TestGenerator version 0.2.5 Index]