Skip to content

Commit 7d3b70e

Browse files
author
Cesar Barboza
committed
condition occurrence in load
1 parent 912b13f commit 7d3b70e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

R/cdmConstructor.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ cdmConstructor <- R6::R6Class("cdmConstructor",
4444
currentTables <- names(jsonData)
4545
# Check for the expected columns in the CDM
4646
for (tableName in currentTables) {
47-
if (tableName %in% c("person", "observation_period", "drug_exposure")) {
47+
if (tableName %in% c("person",
48+
"observation_period",
49+
"condition_occurrence",
50+
"drug_exposure")) {
4851
classTable <- class(jsonData[[tableName]])
4952
if (classTable == "data.frame") {
5053
self[[tableName]]$load(jsonData = as.data.frame(jsonData[[tableName]]))

0 commit comments

Comments
 (0)