Network Data Quality


About

The Network Data Quality (NDQ) package contains several data quality modules intended to evaluate the overall condition of the data in a clinical research network. These modules, which cover a broad range of data quality domains from conformance to plausibility, are flexible and can be configured to execute checks specific to desired use cases in both the OMOP and PCORnet common data models (CDMs).

View pkgdown summary here.

Access Package

remotes

Provenance

Developer Affiliation(s)

Description

The package currently (as of 09/2025) contains 10 distinct analysis types that can be configured to run innumerable data quality checks. See the table below for a list of the current offerings.

Analysis Type Description Functions
Data Cycle Changes Computes row & patient counts in the specified tables for both the current data model version and a previous data model version in order to assess changes across data extractions. check_dc
process_dc
Domain Concordance Given the details of a pair of clinical events, this function will determine the count of patients OR visits that meet criteria for the first event, the second event, and both events. check_dcon
process_dcon
Date Plausibility Identifies the proportion of rows in each fact type that have an implausible date, where implausibility is defined as a date that falls before the associated visit start date, after the associated visit end date, or before the patient’s birth date. check_dp
process_dp
Best Mapped Concepts Identifies the existing concepts within the specified field so the user can assess which of these concepts are acceptable (“best”) or should not be used in that field (“not best”). check_bmc
process_bmc
Expected Concepts Present Identifies the count of patients who have at least one occurrence of the concept defined in the associated concept set and the proportion of patients who have the concept based on the user-provided denominator cohort. check_ecp
process_ecp
Clinical Fact Documentation Identifies visits that do and do not link to at least one of each user-specified clinical fact type. Will also compute the counts of patients who have at least one visit that does / does not link to the specified fact type. check_cfd
process_cfd
Missing Field: Visit ID Checks to see if the visit_occurrence_id/encounterid in a given fact table also exists in the visit_occurrence/encounter table and identify cases where the ID is missing entirely (NULL). check_mf_visitid
process_mf_visitid
Unmapped Concepts Evaluates the count and proportion of unmapped concepts associated with the fact type of interest. Can also be executed longitudinally by year. check_uc
process_uc
Valueset Conformance Intakes a limited valueset that is expected to make up the entire contents of a field (minus the specified null_values) and identifies if any non-permitted values exist in the field (and how often). check_vs
process_vs
Vocabulary Conformance Use a provided vocabulary definition table to identify the vocabulary of each concept and determine how many rows comply with the standard vocabularies expected for that field. check_vc
process_vc
Facts Over Time Computes the number of rows, patients, and (optionally) visits associated with the fact of interest within a specified time period. check_fot
process_fot

Clinical Subject Headings

Related Code

Related Concept Sets

COVID-19, Lab Results
Created:2022-03-30Affiliation:PEDSnet Data Coordinating Center
A concept set indicating that a patient received a laboratory test for COVID-19.

Related Studies

Related Phenotypes

Related Resources

Related Data Quality Check

Date Plausibility
Created:2025-10-23Affiliation:PEDSnet Data Coordinating Center
A network data quality check that compute the proportion of facts that have an implausible date value. Implausibility in this case is defined as events that fall before the visit start date, after the visit end date, before the patient's birth date, or after the patient's death date (optionally with an added buffer window - PEDSnet defaults to death date + 30 days). Results of this check for the current data cycle can be explored on the PEDSnet Data Quality Dashboard.
Domain Concordance
Created:2024Affiliation:PEDSnet Data Coordinating Center
A network data quality check which computes the overlap of patients across more than one domain or clinical characteristic. The combined count in the output is the number of patients meeting both cohort definitions when they occur within a specified time period of each other (i.e. events must occur within 30 days of one another).

Results of this check for the current data cycle can be explored on the PEDSnet Data Quality Dashboard. Data quality results for previous data cycles have been archived in the Domain Concordance Network Results collection.
Expected Concepts Present
Created:2024Affiliation:PEDSnet Data Coordinating Center
A network data quality check which computes the proportion of patients with evidence of a specified concept. The proportion is computed using the number of patients in the cohort with the concept of interest as the numerator, and all patients meeting the specified cohort definition as the denominator.

Results of this check for the current data cycle can be explored on the PEDSnet Data Quality Dashboard. Data quality results for previous data cycles have been archived in the Expected Concepts Present Network Results collection.
Missing Field: Visit ID
Created:2024Affiliation:PEDSnet Data Coordinating Center
A network data quality check which computes the proportion of records in each of the domains that do not have an associated `visit_occurrence_id`, either because the `visit_occurrence_id` is missing or because it does not have an associated record in the `visit_occurrence` table.

Results of this check for the current data cycle can be explored on the PEDSnet Data Quality Dashboard. Data quality results for previous data cycles have been archived in the Facts with Associated Visit ID Network Results collection.
Facts Over Time
Created:2024Affiliation:PEDSnet Data Coordinating Center
A network data quality check which computes different clinical facts over a range of time, as defined by the user. The check can examine facts by month or by year, and row, patient, and visit counts are able to be computed.

Results of this check for the current data cycle can be explored on the PEDSnet Data Quality Dashboard. Data quality results for previous data cycles have been archived in the Facts Over Time Network Results collection.

Creative Commons license

Except where otherwised noted, this item's license is described as a Mozilla Public License Version 2.0.

This license applies to the metadata and documentation of this digital package. The source code and software components may be governed by different licensing terms. Please refer to the GitHub repository link for specific software licensing information.

Cite this Code

Razzaghi, H., Dickinson, K., Wieand, K., & Bailey, C. (2025, August). Network Data Quality. [Code]. PEDSpace Knowledge Bank. https://hdl.handle.net/20.500.14642/1195