Skip to content

Commit bd4d98d

Browse files
Merge pull request #499 from OHDSI/develop
Develop
2 parents e18c308 + 7845a00 commit bd4d98d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+245
-104
lines changed

.github/workflows/R_CMD_check_Hades.yml

+4
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,25 @@ jobs:
2929
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
3030
RSPM: ${{ matrix.config.rspm }}
3131
CDM5_ORACLE_CDM_SCHEMA: ${{ secrets.CDM5_ORACLE_CDM_SCHEMA }}
32+
CDM5_ORACLE_CDM54_SCHEMA: ${{ secrets.CDM5_ORACLE_CDM54_SCHEMA }}
3233
CDM5_ORACLE_OHDSI_SCHEMA: ${{ secrets.CDM5_ORACLE_OHDSI_SCHEMA }}
3334
CDM5_ORACLE_PASSWORD: ${{ secrets.CDM5_ORACLE_PASSWORD }}
3435
CDM5_ORACLE_SERVER: ${{ secrets.CDM5_ORACLE_SERVER }}
3536
CDM5_ORACLE_USER: ${{ secrets.CDM5_ORACLE_USER }}
3637
CDM5_POSTGRESQL_CDM_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_CDM_SCHEMA }}
38+
CDM5_POSTGRESQL_CDM54_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_CDM54_SCHEMA }}
3739
CDM5_POSTGRESQL_OHDSI_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_OHDSI_SCHEMA }}
3840
CDM5_POSTGRESQL_PASSWORD: ${{ secrets.CDM5_POSTGRESQL_PASSWORD }}
3941
CDM5_POSTGRESQL_SERVER: ${{ secrets.CDM5_POSTGRESQL_SERVER }}
4042
CDM5_POSTGRESQL_USER: ${{ secrets.CDM5_POSTGRESQL_USER }}
4143
CDM5_SQL_SERVER_CDM_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_CDM_SCHEMA }}
44+
CDM5_SQL_SERVER_CDM54_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_CDM54_SCHEMA }}
4245
CDM5_SQL_SERVER_OHDSI_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_OHDSI_SCHEMA }}
4346
CDM5_SQL_SERVER_PASSWORD: ${{ secrets.CDM5_SQL_SERVER_PASSWORD }}
4447
CDM5_SQL_SERVER_SERVER: ${{ secrets.CDM5_SQL_SERVER_SERVER }}
4548
CDM5_SQL_SERVER_USER: ${{ secrets.CDM5_SQL_SERVER_USER }}
4649
CDM5_REDSHIFT_CDM_SCHEMA: ${{ secrets.CDM5_REDSHIFT_CDM_SCHEMA }}
50+
CDM5_REDSHIFT_CDM54_SCHEMA: ${{ secrets.CDM5_REDSHIFT_CDM54_SCHEMA }}
4751
CDM5_REDSHIFT_OHDSI_SCHEMA: ${{ secrets.CDM5_REDSHIFT_OHDSI_SCHEMA }}
4852
CDM5_REDSHIFT_PASSWORD: ${{ secrets.CDM5_REDSHIFT_PASSWORD }}
4953
CDM5_REDSHIFT_SERVER: ${{ secrets.CDM5_REDSHIFT_SERVER }}

.github/workflows/R_CMD_check_main_weekly.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ jobs:
2121
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
2222
RSPM: ${{ matrix.config.rspm }}
2323
CDM5_ORACLE_CDM_SCHEMA: ${{ secrets.CDM5_ORACLE_CDM_SCHEMA }}
24+
CDM5_ORACLE_CDM54_SCHEMA: ${{ secrets.CDM5_ORACLE_CDM54_SCHEMA }}
2425
CDM5_ORACLE_OHDSI_SCHEMA: ${{ secrets.CDM5_ORACLE_OHDSI_SCHEMA }}
2526
CDM5_ORACLE_PASSWORD: ${{ secrets.CDM5_ORACLE_PASSWORD }}
2627
CDM5_ORACLE_SERVER: ${{ secrets.CDM5_ORACLE_SERVER }}
2728
CDM5_ORACLE_USER: ${{ secrets.CDM5_ORACLE_USER }}
2829
CDM5_POSTGRESQL_CDM_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_CDM_SCHEMA }}
30+
CDM5_POSTGRESQL_CDM54_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_CDM54_SCHEMA }}
2931
CDM5_POSTGRESQL_OHDSI_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_OHDSI_SCHEMA }}
3032
CDM5_POSTGRESQL_PASSWORD: ${{ secrets.CDM5_POSTGRESQL_PASSWORD }}
3133
CDM5_POSTGRESQL_SERVER: ${{ secrets.CDM5_POSTGRESQL_SERVER }}
3234
CDM5_POSTGRESQL_USER: ${{ secrets.CDM5_POSTGRESQL_USER }}
3335
CDM5_SQL_SERVER_CDM_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_CDM_SCHEMA }}
36+
CDM5_SQL_SERVER_CDM54_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_CDM54_SCHEMA }}
3437
CDM5_SQL_SERVER_OHDSI_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_OHDSI_SCHEMA }}
3538
CDM5_SQL_SERVER_PASSWORD: ${{ secrets.CDM5_SQL_SERVER_PASSWORD }}
3639
CDM5_SQL_SERVER_SERVER: ${{ secrets.CDM5_SQL_SERVER_SERVER }}
3740
CDM5_SQL_SERVER_USER: ${{ secrets.CDM5_SQL_SERVER_USER }}
3841
CDM5_REDSHIFT_CDM_SCHEMA: ${{ secrets.CDM5_REDSHIFT_CDM_SCHEMA }}
42+
CDM5_REDSHIFT_CDM54_SCHEMA: ${{ secrets.CDM5_REDSHIFT_CDM54_SCHEMA }}
3943
CDM5_REDSHIFT_OHDSI_SCHEMA: ${{ secrets.CDM5_REDSHIFT_OHDSI_SCHEMA }}
4044
CDM5_REDSHIFT_PASSWORD: ${{ secrets.CDM5_REDSHIFT_PASSWORD }}
4145
CDM5_REDSHIFT_SERVER: ${{ secrets.CDM5_REDSHIFT_SERVER }}

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: DataQualityDashboard
22
Type: Package
33
Title: Execute and View Data Quality Checks on OMOP CDM Database
4-
Version: 2.4.0
5-
Date: 2023-07-26
4+
Version: 2.4.1
5+
Date: 2023-10-18
66
Authors@R: c(
77
person("Katy", "Sadowski", email = "[email protected]", role = c("aut", "cre")),
88
person("Clair", "Blacketer", role = c("aut")),

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ importFrom(jsonlite,fromJSON)
1818
importFrom(jsonlite,parse_json)
1919
importFrom(jsonlite,toJSON)
2020
importFrom(magrittr,"%>%")
21+
importFrom(readr,local_edition)
2122
importFrom(readr,read_csv)
2223
importFrom(rlang,.data)
2324
importFrom(stats,na.omit)

NEWS.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
DataQualityDashboard 2.4.1
2+
==========================
3+
This release includes:
4+
5+
- Minor documentation updates
6+
- A patch for an issue in one of DQD's transitive dependencies, `vroom`
7+
- Test suite upgrades to run remote DB tests against OMOP v5.4, and to add Redshift to remote DB tests
8+
19
DataQualityDashboard 2.4.0
210
==========================
311
This release includes:

R/convertResultsCase.R

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#' @importFrom SqlRender snakeCaseToCamelCase camelCaseToSnakeCase
3131
#' @importFrom dplyr rename_with
3232
#' @importFrom tools file_path_sans_ext
33+
#' @importFrom readr local_edition
3334
#'
3435
#' @export
3536

@@ -47,6 +48,9 @@ convertJsonResultsFileCase <- function(
4748
stop("You must specify an output folder if writing to file.")
4849
}
4950

51+
# temporary patch to work around vroom 1.6.4 bug
52+
readr::local_edition(1)
53+
5054
results <- jsonlite::fromJSON(jsonFilePath)
5155

5256
if ("numViolatedRows" %in% names(results$CheckResults) && targetCase == "camel") {

R/executeDqChecks.R

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#' @title Execute DQ checks
1818
#'
19-
#' @description This function will connect to the database, generate the sql scripts, and run the data quality checks against the database.
19+
#' @description This function will connect to the database, generate the sql scripts, and run the data quality checks against the database. By default, results will be written to a json file as well as a database table.
2020
#'
2121
#' @param connectionDetails A connectionDetails object for connecting to the CDM database
2222
#' @param cdmDatabaseSchema The fully qualified database name of the CDM schema
@@ -54,7 +54,7 @@
5454
#' @importFrom utils packageVersion write.table
5555
#' @importFrom rlang .data
5656
#' @importFrom tidyselect all_of
57-
#' @importFrom readr read_csv
57+
#' @importFrom readr read_csv local_edition
5858
#' @importFrom dplyr mutate case_when
5959
#'
6060
#' @export
@@ -119,6 +119,9 @@ executeDqChecks <- function(connectionDetails,
119119
}
120120
}
121121

122+
# temporary patch to work around vroom 1.6.4 bug
123+
readr::local_edition(1)
124+
122125
# capture metadata -----------------------------------------------------------------------
123126
if (!sqlOnly) {
124127
connection <- DatabaseConnector::connect(connectionDetails = connectionDetails)

R/listChecks.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
#' @param fieldCheckThresholdLoc The location of the threshold file for evaluating the field checks. If not specified the default thresholds will be applied.
2525
#' @param conceptCheckThresholdLoc The location of the threshold file for evaluating the concept checks. If not specified the default thresholds will be applied.
2626
#'
27-
#' @importFrom readr read_csv
27+
#' @importFrom readr read_csv local_edition
2828
#'
2929
#' @export
3030
listDqChecks <- function(cdmVersion = "5.3", tableCheckThresholdLoc = "default", fieldCheckThresholdLoc = "default", conceptCheckThresholdLoc = "default") {
31+
# temporary patch to work around vroom 1.6.4 bug
32+
readr::local_edition(1)
33+
3134
dqChecks <- {}
3235
dqChecks$checkDescriptions <-
3336
read_csv(system.file(

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ System Requirements
7373
===================
7474
Requires R (version 3.2.2 or higher). Requires [DatabaseConnector](https://github.com/OHDSI/DatabaseConnector) (version 2.0.2 or higher).
7575

76+
A variety of database platforms are supported, as documented [here](https://ohdsi.github.io/Hades/supportedPlatforms.html).
77+
78+
Note that while data quality check threshold files are provided for OMOP CDM versions 5.2, 5.3, and 5.4, the package is currently only tested against versions 5.3 and 5.4.
79+
7680
Installation
7781
=============
7882
1. See the instructions [here](https://ohdsi.github.io/Hades/rSetup.html) for configuring your R environment, including RTools and Java.

docs/404.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/AddNewCheck.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/CheckStatusDefinitions.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/CheckTypeDescriptions.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/DataQualityDashboard.html

+12-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/DqdForCohorts.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/SqlOnly.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Thresholds.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)