Skip to content

Commit

Permalink
Merge pull request #429 from OHDSI/develop
Browse files Browse the repository at this point in the history
Fix cdmDatatype SQL bug
  • Loading branch information
katy-sadowski authored Mar 16, 2023
2 parents c468ebc + df260b7 commit 1197d5d
Show file tree
Hide file tree
Showing 40 changed files with 51 additions and 44 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: DataQualityDashboard
Type: Package
Title: Execute and View Data Quality Checks on OMOP CDM Database
Version: 2.1.1
Date: 2023-02-27
Version: 2.1.2
Date: 2023-03-10
Authors@R: c(
person("Katy", "Sadowski", email = "[email protected]", role = c("aut", "cre")),
person("Clair", "Blacketer", role = c("aut")),
Expand All @@ -12,7 +12,7 @@ Authors@R: c(
person("Frank", "DeFalco", role = c("aut")),
person("Pavel", "Grafkin", role = c("aut"))
)
Maintainer: Katy Sadowski <katy.sadowski@gmail.com>
Maintainer: Katy Sadowski <sadowski@ohdsi.org>
Description: An R package for assessing data quality in standardized OMOP Common Data Model data sources.
License: Apache License (>= 2)
VignetteBuilder: knitr
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
DataQualityDashboard 2.1.2
==========================

1. Fixing bug in cdmDatatype check SQL that was causing NULL values to fail the check.

DataQualityDashboard 2.1.1
==========================

Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/AddNewCheck.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/CheckStatusDefinitions.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/CheckTypeDescriptions.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/DataQualityDashboard.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/DqdForCohorts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/Thresholds.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ articles:
DataQualityDashboard: DataQualityDashboard.html
DqdForCohorts: DqdForCohorts.html
Thresholds: Thresholds.html
last_built: 2023-02-27T22:52Z
last_built: 2023-03-10T19:00Z

2 changes: 1 addition & 1 deletion docs/pull_request_template.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-evaluateThresholds.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-getCheckId.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-processCheck.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-recordResult.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-runCheck.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-summarizeResults.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-writeResultsToCsv.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-writeResultsToJson.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-writeResultsToTable.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/executeDqChecks.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/listDqChecks.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/reEvaluateThresholds.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/viewDqDashboard.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/writeJsonResultsToCsv.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/writeJsonResultsToTable.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified extras/DataQualityDashboard.pdf
Binary file not shown.
Binary file modified inst/doc/AddNewCheck.pdf
Binary file not shown.
Binary file modified inst/doc/CheckStatusDefinitions.pdf
Binary file not shown.
Binary file modified inst/doc/CheckTypeDescriptions.pdf
Binary file not shown.
Binary file modified inst/doc/DataQualityDashboard.pdf
Binary file not shown.
Binary file modified inst/doc/DqdForCohorts.pdf
Binary file not shown.
Binary file modified inst/doc/Thresholds.pdf
Binary file not shown.
8 changes: 3 additions & 5 deletions inst/sql/sql_server/field_cdm_datatype.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ FROM
cdmTable.*
FROM @cdmDatabaseSchema.@cdmTableName cdmTable
WHERE
ISNUMERIC(cdmTable.@cdmFieldName) = 0
OR (
ISNUMERIC(cdmTable.@cdmFieldName) = 1
AND CHARINDEX('.', CAST(ABS(cdmTable.@cdmFieldName) AS varchar)) != 0
)
(ISNUMERIC(cdmTable.@cdmFieldName) = 0
OR (ISNUMERIC(cdmTable.@cdmFieldName) = 1
AND CHARINDEX('.', CAST(ABS(cdmTable.@cdmFieldName) AS varchar)) != 0))
AND cdmTable.@cdmFieldName IS NOT NULL
/*violatedRowsEnd*/
) violated_rows
Expand Down

0 comments on commit 1197d5d

Please sign in to comment.