CvdDqChecker: A Software Solution for Explainable and Traceable Assessments of Cardiovascular Disease Data Quality
This repository provides a set of metrics and harmonized methods for assessing the quality of cardiovascular disease (CVD) data. The developed software CvdDqChecker enables explainable and traceable data quality (DQ) assessments. Specifically, the generated reports provide detailed information to explain the detected DQ issues and help users trace them back to their sources and underlying causes. CvdDqChecker also enables the detection and visualization of plausibility issues based on predefined logical and mathematical rules. To improve usability, CvdDqChecker allows users to specify the DQ rules using spreadsheets. The current version was validated using synthetic and real-world data on CVDs. Exemplary DQ reports and visualizations are available in section 4.
To conduct local DQ assessments, please follow the following instructions:
-
Clone repository and checkout master branch
- Run the git command:
git clone --branch master https://github.com/KaisTahar/cvdDqChecker
- Run the git command:
-
Edit the file
config.yamlwith your local configuration parameters (p1...p7)- Define your study name (p1) and organization name (p2)
- Set the data input path (p3). This parameter specifies which data set should be imported. By default, this path is set as follows:
dataPath="./data/medData/syntheticData.csv" - Define the code list of missing data values (p4) else by default this parameter is defined as follows:
missingCode: !expr list (NA, "NULL", "") - Set the path to the spreadsheet file containing the DQ rules (p5). By default, this path is set as follows:
rulePath: "./data/refData/dq_rules.xlsx" - Set the path to the metadata and semantic annotations (p6). By default, this parameter is set as follows:
domainMetadata: "./data/refData/domain_metadata.xlsx" - Specify the path to the resulting visualizations and DQ reports (p7). By default, the export path is set as follows:
exportPath: "./data/export"
-
Once the local configuration parameters are defined, you can run
CvdDqCheckerusing Rstudio or Dockerfile. To avoid local dependency issues, simply execute the commandsudo docker-compose upto get the software up and running -
As a result,
CvdDqCheckergenerates visualizations of detected outliers and contradictions, as well as an Excel file that contains reports on DQ metrics, detected DQ issues, and used DQ rules. The generated visualizations and DQ reports are saved in the folder./data/export
The data quality library (dqLib) was employed as an R package to report on DQ issues and metrics. dqLib provides multiple metrics to assess different DQ aspects. This library was used to select appropriate indicators and generate specific DQ reports. The following generic indicators were employed in this study:
| DQ Indicator | DQ Dimension | |
|---|---|---|
| Abbreviation | Name | |
| dqi_co_icr | Item Completeness Rate | completeness |
| dqi_co_vcr | Value Completeness Rate | |
| dqi_pl_rpr | Range Plausibility Rate | Plausibility |
| dqi_pl_spr | Semantic Plausibility Rate | |
In addition to DQ indicators, the reports include the resulting DQ parameters and provide adequate information to help users address the detected DQ issues. CvdDqChecker enables reporting on the following DQ issues and associated parameters:
| Abbreviation | DQ Parameter | Description |
|---|---|---|
| vo | outlier values | number of detected outlier values |
| vc | contradictory values | number of detected contradictory data values |
| im_misg | missing mandatory data items | number of missing mandatory data items |
| vm_misg | missing mandatory data values | number of missing mandatory data values |
| pat_dq_iss | patient records with DQ issues | number of patient records with DQ issues |
- Exemplary reports on detected outliers and contradictions can be found in the
./data/exportfolder - The
./data/exportfolder also contains exemplary visualizations generated using synthetic data
-
The developed software
CvdDqCheckeris compatible withdqLib 1.32.1. To install all required packages, please use the scriptinstallPackages.Rlocated in the folder./Ror just run the commandsudo docker-compose up. This command will install the necessary packages and run the DQ assessment software. -
To cite
CvdDqChecker, please use the citation fileCITATION.cff