Skip to content

Commit

Permalink
Revise to use numeric for nco cohorts (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena authored Jun 6, 2024
1 parent cdc6e24 commit 11c1b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions R/CohortDefinitionSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,7 @@ checkSettingsColumns <- function(columnNames, settingsFileName = NULL) {
for (i in 1:nrow(specifications)) {
colName <- specifications$columnName[i]
dataType <- specifications$dataType[i]
if (dataType == "integer64") {
df <- df %>% dplyr::mutate(!!colName := do.call(what = bit64::as.integer64, args = list()))
} else {
df <- df %>% dplyr::mutate(!!colName := do.call(what = dataType, args = list()))
}
df <- df %>% dplyr::mutate(!!colName := do.call(what = dataType, args = list()))
}
invisible(df)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
column_name,description,data_type
cohortId,The identifier for the cohort in the negative control outcome cohort set.,integer64
cohortId,The identifier for the cohort in the negative control outcome cohort set.,numeric
cohortName,The name of the cohort in the negative control outcome cohort set.,character
outcomeConceptId,The concept_id used to construct the negative control cohort. This concept_id must be in the condition domain,integer64
outcomeConceptId,The concept_id used to construct the negative control cohort. This concept_id must be in the condition domain,numeric

0 comments on commit 11c1b42

Please sign in to comment.