Skip to content

Commit

Permalink
Merge pull request #553 from OHDSI/katy__sqlonly_bug
Browse files Browse the repository at this point in the history
Fix descendant concept bug in sqlonly
  • Loading branch information
katy-sadowski committed Jun 12, 2024
2 parents 2f86863 + 08bee7f commit 3af4d8f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion R/sqlOnly.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,19 @@
cdmFieldName
)
} else if (checkLevel == "CONCEPT") {
if (is.na(unitConceptId)) {
if (is.na(unitConceptId) &&
grepl(",", conceptId)) {
thresholdFilter <- sprintf(
"conceptChecks$%s[conceptChecks$cdmTableName == '%s' &
conceptChecks$cdmFieldName == '%s' &
conceptChecks$conceptId == '%s']",
thresholdField,
cdmTableName,
cdmFieldName,
conceptId
)
} else if (is.na(unitConceptId) &&
!grepl(",", conceptId)) {
thresholdFilter <- sprintf(
"conceptChecks$%s[conceptChecks$cdmTableName == '%s' &
conceptChecks$cdmFieldName == '%s' &
Expand Down

0 comments on commit 3af4d8f

Please sign in to comment.