<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Med Inform</journal-id><journal-id journal-id-type="publisher-id">medinform</journal-id><journal-id journal-id-type="index">7</journal-id><journal-title>JMIR Medical Informatics</journal-title><abbrev-journal-title>JMIR Med Inform</abbrev-journal-title><issn pub-type="epub">2291-9694</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v12i1e56734</article-id><article-id pub-id-type="doi">10.2196/56734</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Assessing the Effect of Electronic Health Record Data Quality on Identifying Patients With Type 2 Diabetes: Cross-Sectional Study</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Sood</surname><given-names>Priyanka Dua</given-names></name><degrees>DrPH</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Liu</surname><given-names>Star</given-names></name><degrees>MS</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Lehmann</surname><given-names>Harold</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Kharrazi</surname><given-names>Hadi</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref></contrib></contrib-group><aff id="aff1"><institution>Bloomberg School of Public Health, Johns Hopkins University</institution>, <addr-line>615 N Wolfe St</addr-line><addr-line>Baltimore</addr-line><addr-line>MD</addr-line>, <country>United States</country></aff><aff id="aff2"><institution>School of Medicine, Johns Hopkins University</institution>, <addr-line>Baltimore</addr-line><addr-line>MD</addr-line>, <country>United States</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Lovis</surname><given-names>Christian</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Li</surname><given-names>Hao</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Li</surname><given-names>Sheyu</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Wang</surname><given-names>Yiqing</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Priyanka Dua Sood, DrPH, Bloomberg School of Public Health, Johns Hopkins University, 615 N Wolfe St, Baltimore, MD, 21205, United States, 1 443-287-8264; <email>pdua1@jhmi.edu</email></corresp></author-notes><pub-date pub-type="collection"><year>2024</year></pub-date><pub-date pub-type="epub"><day>27</day><month>8</month><year>2024</year></pub-date><volume>12</volume><elocation-id>e56734</elocation-id><history><date date-type="received"><day>24</day><month>01</month><year>2024</year></date><date date-type="rev-recd"><day>07</day><month>05</month><year>2024</year></date><date date-type="accepted"><day>08</day><month>06</month><year>2024</year></date></history><copyright-statement>&#x00A9; Priyanka Dua Sood, Star Liu, Harold Lehmann, Hadi Kharrazi. Originally published in JMIR Medical Informatics (<ext-link ext-link-type="uri" xlink:href="https://medinform.jmir.org">https://medinform.jmir.org</ext-link>), 27.8.2024. </copyright-statement><copyright-year>2024</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://medinform.jmir.org/">https://medinform.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://medinform.jmir.org/2024/1/e56734"/><abstract><sec><title>Background</title><p>Increasing and substantial reliance on electronic health records (EHRs) and data types (ie, diagnosis, medication, and laboratory data) demands assessment of their data quality as a fundamental approach, especially since there is a need to identify appropriate denominator populations with chronic conditions, such as type 2 diabetes (T2D), using commonly available computable phenotype definitions (ie, phenotypes).</p></sec><sec><title>Objective</title><p>To bridge this gap, our study aims to assess how issues of EHR data quality and variations and robustness (or lack thereof) in phenotypes may have potential impacts in identifying denominator populations.</p></sec><sec sec-type="methods"><title>Methods</title><p>Approximately 208,000 patients with T2D were included in our study, which used retrospective EHR data from the Johns Hopkins Medical Institution (JHMI) during 2017&#x2010;2019. Our assessment included 4 published phenotypes and 1 definition from a panel of experts at Hopkins. We conducted descriptive analyses of demographics (ie, age, sex, race, and ethnicity), use of health care (inpatient and emergency room visits), and the average Charlson Comorbidity Index score of each phenotype. We then used different methods to induce or simulate data quality issues of completeness, accuracy, and timeliness separately across each phenotype. For induced data incompleteness, our model randomly <italic>dropped</italic> diagnosis, medication, and laboratory codes independently at increments of 10%; for induced data inaccuracy, our model randomly <italic>replaced</italic> a diagnosis or medication code with another code of the same data type and induced 2% incremental change from &#x2212;100% to +10% in laboratory result values; and lastly, for timeliness, data were modeled for induced <italic>incremental shift</italic> of date records by 30 days to 365 days.</p></sec><sec sec-type="results"><title>Results</title><p>Less than a quarter (n=47,326, 23%) of the population overlapped across all phenotypes using EHRs. The population identified by each phenotype varied across all combinations of data types. Induced incompleteness identified fewer patients with each increment; for example, at 100% diagnostic incompleteness, the Chronic Conditions Data Warehouse phenotype identified zero patients, as its phenotypic characteristics included only diagnosis codes. Induced inaccuracy and timeliness similarly demonstrated variations in performance of each phenotype, therefore resulting in fewer patients being identified with each incremental change.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>We used EHR data with diagnosis, medication, and laboratory data types from a large tertiary hospital system to understand T2D phenotypic differences and performance. We used induced data quality methods to learn how data quality issues may impact identification of the denominator populations upon which clinical (eg, clinical research and trials, population health evaluations) and financial or operational decisions are made. The novel results from our study may inform future approaches to shaping a common T2D computable phenotype definition that can be applied to clinical informatics, managing chronic conditions, and additional industry-wide efforts in health care.</p></sec></abstract><kwd-group><kwd>electronic health record</kwd><kwd>EHR</kwd><kwd>EHRs</kwd><kwd>record</kwd><kwd>records</kwd><kwd>computable</kwd><kwd>phenotyping</kwd><kwd>phenotype</kwd><kwd>phenotypes</kwd><kwd>computable phenotypes</kwd><kwd>data quality</kwd><kwd>data science</kwd><kwd>chronic</kwd><kwd>identify</kwd><kwd>identification</kwd><kwd>data types&#x2014;diagnosis data, medication data, laboratory data</kwd><kwd>type-2 diabetes</kwd><kwd>diabetes</kwd><kwd>diabetic</kwd><kwd>DM</kwd><kwd>type 2</kwd><kwd>hospital system</kwd><kwd>clinical research and trial</kwd><kwd>diagnosis</kwd><kwd>diagnoses</kwd><kwd>diagnose</kwd><kwd>diagnostic</kwd><kwd>diagnostics</kwd><kwd>phenotypic</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Type 2 diabetes (T2D) is a common chronic disease affecting more than 11% of the US population [<xref ref-type="bibr" rid="ref1">1</xref>]. Given the rapidly increasing burden of T2D on health care services and resources, health systems have devised strategies to address such demands by identifying and managing T2D patients across their populations [<xref ref-type="bibr" rid="ref1">1</xref>]. However, despite clinical guidelines to identify T2D at the point of care, identifying T2D patients in large clinical repositories is still a challenge [<xref ref-type="bibr" rid="ref2">2</xref>]. Ambiguity of algorithms to identify T2D patients in complex data sets and data quality issues in routine clinical data sources such as electronic health records (EHRs) are still hindering the development of generalizable approaches to identify T2D patients across different health systems.</p><p>Over the last two decades, several approaches have been developed for health care professionals to identify patients with T2D in large clinical data repositories. Multiple T2D phenotype definitions (also known as computational algorithms) are available that define characteristics to identify T2D populations. Some examples of T2D definitions include the Surveillance, Prevention, and Management of Diabetes Mellitus (SUPREME-DM) [<xref ref-type="bibr" rid="ref3">3</xref>], the Centers for Medicare and Medicaid Services (CMS) Chronic Conditions Data Warehouse (CCW) [<xref ref-type="bibr" rid="ref4">4</xref>], the Electronic Medical Records and Genomics (eMERGE) Northwestern Group [<xref ref-type="bibr" rid="ref5">5</xref>], and the Durham Diabetes Coalition (DDC) [<xref ref-type="bibr" rid="ref6">6</xref>] phenotypes. Each phenotype definition has its own set of inclusion and exclusion criteria using different data types. Data types may include <italic>International Statistical Classification of Diseases</italic>, <italic>Tenth Edition</italic> (<italic>ICD-10</italic>) diagnosis codes, RxNorm medication codes, and Logical Observation Identifiers Names and Codes (LOINC) laboratory codes, with sequences and frequencies of occurrences of diagnosis, medication and laboratory codes; defined time periods; and care pathways. However, despite these detailed definitions, it is unclear which of the existing T2D phenotypes are prone to inherit data quality issues from clinical data sources such as EHRs. The uncertainty of T2D phenotypes&#x2019; performance for identifying populations with T2D using real-world data has led to the lack of a universally agreed-upon T2D phenotype.</p><p>The concept of data quality in health care varies based on the problems and functional needs of end users. Health care providers, data scientists, or policy makers may differ in their approach to data quality and its significance in practice [<xref ref-type="bibr" rid="ref7">7</xref>]. Typically, health care data such as captured in EHRs are collected for continuity of clinical care, coding, and billing purposes, and not necessarily to answer specific research questions. Thus, the quality of data collected in EHRs may be sufficient for clinical purposes but may not meet the needs of a researcher or population health intervention. For example, a clinician may identify a patient with T2D at the point of care despite having incomplete data; however, a T2D phenotyping algorithm may miss the same patient in a large EHR data warehouse due to the underlying data quality issues; hence, the patient may inadvertently be excluded from a research study or population health intervention.</p><p>Various data quality frameworks have been proposed to measure the quality of health care data. Completeness, accuracy, and timeliness are a few key data quality characteristics that are used across several frameworks [<xref ref-type="bibr" rid="ref7">7</xref>-<xref ref-type="bibr" rid="ref9">9</xref>]. The assessment for completeness defines how complete the data are, what the missing elements are, and how usable the data are in their &#x201C;as is&#x201D; format. Accuracy is the correctness and consistency of the data elements [<xref ref-type="bibr" rid="ref8">8</xref>], and timeliness is how recent or current the data are for research and analysis. The assessment of data quality in health care is crucial with the continuous and prominent use of EHRs; however, despite the increasing use of EHR data to identify patients with T2D, the effect of varying levels of key data quality characteristics (ie, completeness, accuracy, and timeliness) on T2D phenotypes is still unknown.</p><p>The ongoing challenge of understanding the effect of key data quality issues on T2D phenotypes is further exacerbated by the fact that T2D phenotypes use multiple data types, such as diagnosis codes, medications, and laboratory results. Additionally, given the variability of key data quality issues of these data types across EHRs [<xref ref-type="bibr" rid="ref10">10</xref>,<xref ref-type="bibr" rid="ref11">11</xref>], measuring the effect of key existing data quality issues on T2D phenotypes in one EHR may not translate into generalizable findings. For example, one provider&#x2019;s EHR may suffer from incompleteness of diagnosis codes, while another provider&#x2019;s EHR may be affected by inaccurate medication data. Thus, to measure the effect of an EHR&#x2019;s data quality on T2D phenotypes, varying (simulated) levels of key data quality characteristics across all data types (ie, diagnosis, medication, and laboratory) used by T2D phenotypes should be studied. These simulated levels of key data quality issues will in turn help providers to compare their EHR data quality issues with the simulated levels, contrast the potential impact of such data quality issues on identifying T2D patients using various phenotypes, and eventually select the most suitable T2D phenotype for their EHR data.</p><p>Currently, evidence is lacking on the effect of data quality issues (eg, completeness, accuracy, and timeliness) and the identification of T2D populations in large clinical data sources such as EHRs. This gap in evidence is further amplified given the variations in characteristics of published T2D phenotypes and potential discrepancies in underlying data types (ie, diagnosis, medication, and laboratory) in EHRs. To address these gaps, our study aimed to assess the impact of varying (simulated) levels of data quality issues across the different data types used by T2D phenotypes. Our study findings can inform health care providers and other stakeholders to select T2D phenotype algorithms that best match their underlying EHR data quality issues.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Data Source</title><p>Our cross-sectional study used retrospective EHR data from the Johns Hopkins Medical Institute (JHMI) data warehouse over a 3-year period from 2017 to 2019. Clinical data included T2D primary diagnostic data (<italic>ICD-10</italic>), laboratory data (LOINC), and medication data (RxNorm). The demographic data included age, sex, race, ethnicity, and the patients&#x2019; residential state.</p></sec><sec id="s2-2"><title>Study Population</title><p>Our overall study population included approximately 208,000 patients in age groups of 18 to 90 years. This population denominator was identified and extracted in a prior study focusing on T2D patients and funded by the US Food and Drug Administration (5U01FD005942-05). This population denominator, also known as the raw data cut, was identified by the most inclusive query of the JHMI&#x2019;s EHR data warehouse, which also included patients with mentions of diabetes in their clinical notes. Each of the identified T2D phenotypes was applied to the overall study population. At total of approximately 164,000 patients were included in at least one of the T2D phenotypes assessed.</p><p>Considering the size of the EHR data set, and given the impracticality of reviewing the individual records of almost a quarter of a million patients, no gold standard population was identified for this research. Indeed, the aim of this research study was not to assess the accuracy of the common T2D phenotypes; instead, we aimed to measure the performance of T2D phenotypes given the underlying data quality issues in EHR data repositories.</p></sec><sec id="s2-3"><title>T2D Phenotype Definitions</title><p>Our assessment included 4 published T2D phenotype definitions, from the CCW, DDC, SUPREME-DM, and eMERGE, as well as 1 unpublished definition (Johns Hopkins University; JHU). Since not all T2D phenotype definitions were defined with the most current <italic>ICD</italic> codes, we converted the DDC, SUPREME-DM, and eMERGE diagnostic phenotypes from <italic>ICD-9</italic> to <italic>ICD-10</italic> [<xref ref-type="bibr" rid="ref12">12</xref>]. Additionally, not all phenotype definitions using medications had the list of specific RxNorm codes (eg, the DDC and SUPREME-DM phenotypes included only the names of the T2D medication and not the codes). We identified the RxNorm codes for each medication using the National Library of Medicine&#x2019;s RxNav tool [<xref ref-type="bibr" rid="ref13">13</xref>]. For the purposes of this study, we selected only those RxNorm codes that were associated with the primary ingredient or ingredients of the medication name in the T2D phenotype definition.</p><p>Of the 4 published T2D phenotypes, CCW only included diagnosis codes with a reference period of 2 years in the definition. The DDC, SUPREME-DM, and eMERGE phenotypes included a series of detailed care pathways with diagnosis, medication, and laboratory codes and results within specified time periods. However, the unpublished definition from JHU did not have pathways and was the most inclusive definition, as it included all data types (diagnosis, medication, and laboratory) with wide eligibility criteria to identify patients with T2D.</p></sec><sec id="s2-4"><title>Factors Affecting T2D Phenotyping</title><p>The data included demographics, T2D-related data types (ie, diagnosis, medication, and laboratory), and the Charlson Comorbidity Index [<xref ref-type="bibr" rid="ref14">14</xref>]. The demographic data included age, sex (male, female, and other), race (White, Black, Asian, and other), ethnicity (Hispanic/Latino or non-Hispanic/Latino) and patient location (state of Maryland or other locations). The &#x201C;other&#x201D; category for sex, race, and ethnicity was primarily composed of missing data entries. Since the JHMI is in Baltimore, Maryland, the majority (169,215/207,813, 81.4%) of our study population was from Maryland and the remainder (38,598/207,813, 18.6%) was from the surrounding states. The outcome measures included the extent of overlap in identifying patients with T2D and the degree of robustness against data quality issues across phenotypes.</p></sec><sec id="s2-5"><title>Statistical Analysis</title><p>We performed descriptive data analyses across the 5 different phenotypes to identify EHR populations with T2D. We used the <italic>&#x03C7;</italic><sup>2</sup> test for categorical variables and ANOVA for continuous variables. Our analysis included distribution and overlap of the population of interest by diagnosis, medication, and laboratory data types across each of the 5 T2D phenotypes. We introduced methods that simulated or induced data incompleteness, inaccuracy, and lack of timeliness (eg, date shifting) to assess the robustness of each phenotype in capturing the populations of interest. We created unique analytical functions for each data quality issue considering the data types that were applicable across all T2D phenotypes.</p><p>To simulate or induce data incompleteness, our procedure randomly dropped codes at 10% increments, from 0% to 100%, for diagnosis, medication, and laboratory codes within each of the T2D phenotypes. Incompleteness was simulated up to 100% as no thresholds of data missingness were known to affect the performance of T2D phenotypes beforehand. Incompleteness was induced for diagnosis, medication, or laboratory codes independently of the other 2 data types. For each increment of incompleteness, T2D phenotypes were reapplied to identify a new (and logically smaller) cohort of patients.</p><p>To gauge the impact of inconsistency and inaccuracy in our denominator population for each T2D phenotype, the diagnosis and medication codes were replaced at random at increments of 10% (the same as for incompleteness) from 0% to 100% with another code of the same data type, including T2D and non-T2D codes. We included T2D codes to illustrate expected data quality issues that may impact the phenotypes&#x2019; performance. For example, 10% of instances of the <italic>ICD-10</italic> diagnosis code E08 (ie, diabetes mellitus due to underlying condition) were replaced at random with the <italic>ICD-10</italic> code E09 (ie, drug- or chemical-induced diabetes mellitus&#x2014;endocrine, nutritional, or metabolic disease). For laboratory codes, the laboratory values were induced with a 2% incremental change from &#x2212;100% to 10% in laboratory results. For example, our procedure for simulated or induced laboratory values yielded results of 5.6% to 5.8% for hemoglobin A<sub>1c</sub> (LOINC code 55454&#x2010;3). Additionally, we simulated or induced inaccuracy in units of laboratory data results. We did this by intentionally converting reported laboratory units from US standards to UK standards; in particular, blood glucose level units in mg/dl were converted to mmol/L, and hemoglobin A<sub>1c</sub> level from percentage to mmol/mol [<xref ref-type="bibr" rid="ref15">15</xref>].</p><p>For timeliness, we simulated or induced date shifts at increments of 30 to 365 days for all phenotypes. For example, our procedure induced a forward shift on December 1, 2019, by 30 days, shifting the date to December 31, 2019, and so on. Lastly, we also induced compounded data quality issues (incompleteness, inaccuracy, and lack of timeliness) to understand each phenotype&#x2019;s resistance to changes that occurred across diagnosis, medication, and laboratory codes simultaneously. Induced compounded incompleteness would mean dropping diagnosis, medication, and laboratory codes randomly at increments of 10% up to 100%. Induced compounded inaccuracy would mean replacing diagnosis and medication codes randomly at increments of 10% up to 100% (laboratory codes were not replaced; their values were manipulated instead). Induced compounded lack of timeliness would mean inducing date shifts across diagnosis, medication, and laboratory codes at increments of 30 to 365 days.</p><p>SQL queries were written for data extraction. All visualizations and statistical analyses were conducted using R (version 4.2.0; R Foundation for Statistical Computing) [<xref ref-type="bibr" rid="ref16">16</xref>]. The overall findings are showcased as descriptive data tables, Venn diagrams, and line charts depicting the effect of simulated or induced data quality issues on identifying T2D populations using the common T2D phenotype definitions.</p></sec><sec id="s2-6"><title>Ethical Considerations</title><p>This study was reviewed and approved by the IRB committee of the Johns Hopkins School of Public Health (00014440). The deidentified population denominator used in this study is from a prior study funded by the US Food and Drug Administration (5U01FD005942-05).</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Characteristics of the Overall and Phenotype-Identified T2D Populations</title><p>Our overall study population included 207,813 patients with T2D from between 2017 and 2019 in the JHMI EHR data. For the purposes of this analysis, we refer to this population as the raw data cut or the overall study population/denominator. The mean age of the overall study population was 62.4 (SD 15.4) years, with 81.4% (n=169,215) of the population residing in the state of Maryland. Women accounted for 51.3% (n=106,704) of the study population, with 31.8% (n=66,073) Black patients and 89.9% (n=186,785) non-Hispanic/Latino patients. The overall population had a mean number of 0.657 (SD 1.61) inpatient visits and 1.01 (SD 3.61) emergency department visits across the study duration. The mean Charlson Comorbidity Index score was 2.17 (SD 2.25). <xref ref-type="table" rid="table1">Table 1</xref> shows the overall characteristics of the study population.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Characteristics of the overall study population (N=207,813).</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="top" colspan="2">Characteristics</td><td align="left" valign="top">Values</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="3"><bold>Age (years)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Mean (SD)</td><td align="left" valign="top">62.4 (15.4)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Median (range)</td><td align="left" valign="top">64.0 (18.0-90.0)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>Sex, n (%)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Female</td><td align="left" valign="top">106,704 (51.3)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Male</td><td align="left" valign="top">101,079 (48.6)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>Race, n (%)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Asian</td><td align="left" valign="top">11,644 (5.6)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Black</td><td align="left" valign="top">66,073 (31.8)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">White</td><td align="left" valign="top">109,695 (52.8)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Other</td><td align="left" valign="top">20,401 (9.8)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>Ethnicity, n (%)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Hispanic/Latino</td><td align="left" valign="top">10,979 (5.3)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Non-Hispanic/Latino</td><td align="left" valign="top">186,785 (89.9)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Other</td><td align="left" valign="top">10,049 (4.8)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>Charlson Comorbidity Index score</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Mean (SD)</td><td align="left" valign="top">2.17 (2.25)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Median (range)</td><td align="left" valign="top">1.33 (0-20.0)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>State, n (%)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Maryland</td><td align="left" valign="top">169,215 (81.4)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Other</td><td align="left" valign="top">38,598 (18.6)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>Inpatient visits (n)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Mean (SD)</td><td align="left" valign="top">0.657 (1.61)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Median (range)</td><td align="left" valign="top">0 (0-59.0)</td></tr><tr><td align="left" valign="top" colspan="3"><bold>Emergency department visits (n)</bold></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Mean (SD)</td><td align="left" valign="top">1.01 (3.61)</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">Median (range)</td><td align="left" valign="top">0 (0-415)</td></tr></tbody></table></table-wrap><p>T2D phenotypes were applied to the overall study population. The characteristics of the population identified by each phenotype were notably different due to the phenotypes&#x2019; varying constraints on medical events and diagnosis, medication, and laboratory codes. The Venn diagram displayed in <xref ref-type="fig" rid="figure1">Figure 1</xref> shows the overlap of the population with T2D across the phenotypes in comparison to the overall study population (ie, the largest, gray circle denotes the raw data cut). These T2D populations were identified using all EHR data types (diagnosis, medication, and laboratory) as needed by the T2D phenotypes. A total of 78% (n=160,030 patients) of the overall study population was identified by at least 1 phenotype, but only 23% (n=47,326) of the overall study population was identified by all T2D phenotypes. DDC identified 139,832 patients with T2D, of which 11,154 (7.98%) were not identified by the other 4 phenotype definitions. Of the 89,772 patients with T2D identified by SUPREME-DM, there were 5911 (3%) patients with T2D that were also identified by the DDC and JHU phenotypes. Additionally, 23,659 (12%) patients were identified by all phenotypes except eMERGE. Additional details of population overlap counts are available in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>, Table S1.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Venn diagram showing overlap of type 2 diabetes populations identified across all phenotype definitions using electronic health record data. CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus; eMERGE: Electronic Medical Records and Genomics.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig01.png"/></fig><p>The distributions of T2D populations identified across phenotype definitions by diagnosis, medication, and laboratory data types were separately calculated (<xref ref-type="table" rid="table2">Table 2</xref>). The SUPREME-DM phenotype identified the most patients (n=33,268) across all 3 data types, followed by eMERGE with 30,573 patients. Zero patients were observed for some phenotypes when using specific data types. The zero observations were due to the representation of the data types as defined by the criteria of each phenotype definition. For example, the eMERGE phenotype does not have a pathway to identify a patient with T2D based on diagnosis code only, medication code only, or medication and laboratory codes only. Hence, we observed zero patients with diagnosis only, medication only, or medication and laboratory only for eMERGE (<xref ref-type="table" rid="table2">Table 2</xref>). In the case of CCW, since the phenotype does not include medication or laboratory codes in its definition, zero patients were observed when medication or laboratory codes were required for the identification of T2D patients (<xref ref-type="table" rid="table2">Table 2</xref>).</p><p>We measured the effect of simulated or induced data quality issues of completeness, accuracy, and timeliness for diagnosis, medication, and laboratory data across all T2D phenotypes. The following results include the percentage of patients identified by each phenotype while simulating data quality issues using diagnosis codes. Figures S1 to S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> show the same diagnosis results but depict the frequency of patients identified by each phenotype. Figures S4 to S17 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> show results as the percentages and frequencies of patients identified by each phenotype while simulating data quality issues using medication and laboratory data types.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Distribution of type 2 diabetes (T2D) populations identified by T2D phenotype definitions using different combinations of data types.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Data type</td><td align="left" valign="bottom">DDC<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup> (n=139,832), n</td><td align="left" valign="bottom">SUPREME-DM<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup> (n=89,772), n</td><td align="left" valign="bottom">eMERGE<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup> (n=77,977), n</td><td align="left" valign="bottom">JHU<sup><xref ref-type="table-fn" rid="table2fn4">d</xref></sup> (n=139,231), n</td><td align="left" valign="bottom">CCW<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup> (n=79,967), n</td></tr></thead><tbody><tr><td align="left" valign="top">Diagnosis</td><td align="left" valign="top">40,133</td><td align="left" valign="top">15,983</td><td align="left" valign="top">0</td><td align="left" valign="top">75,027</td><td align="left" valign="top">79,967</td></tr><tr><td align="left" valign="top">Medication</td><td align="left" valign="top">15,511</td><td align="left" valign="top">0</td><td align="left" valign="top">0</td><td align="left" valign="top">5874</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">Laboratory</td><td align="left" valign="top">5973</td><td align="left" valign="top">1907</td><td align="left" valign="top">10,467</td><td align="left" valign="top">2711</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">Diagnosis and medication</td><td align="left" valign="top">26,993</td><td align="left" valign="top">24,328</td><td align="left" valign="top">31,114</td><td align="left" valign="top">21,336</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">Diagnosis and laboratory</td><td align="left" valign="top">21,546</td><td align="left" valign="top">13,237</td><td align="left" valign="top">5823</td><td align="left" valign="top">19,452</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">Medication and laboratory</td><td align="left" valign="top">987</td><td align="left" valign="top">1049</td><td align="left" valign="top">0</td><td align="left" valign="top">83</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">Diagnosis, medication, and laboratory</td><td align="left" valign="top">28,687</td><td align="left" valign="top">33,268</td><td align="left" valign="top">30,573</td><td align="left" valign="top">14,748</td><td align="left" valign="top">0</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>DDC: Durham Diabetes Coalition.</p></fn><fn id="table2fn2"><p><sup>b</sup>SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></fn><fn id="table2fn3"><p><sup>c</sup>eMERGE: Electronic Medical Records and Genomics.</p></fn><fn id="table2fn4"><p><sup>d</sup>JHU: Johns Hopkins University.</p></fn><fn id="table2fn5"><p><sup>e</sup>CCW: Chronic Conditions Data Warehouse.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-2"><title>Data Quality Issues</title><sec id="s3-2-1"><title>Completeness</title><p>To depict the impact of the simulated or induced incompleteness of diagnosis codes on the identified population using the T2D phenotypes, <xref ref-type="fig" rid="figure1">Figure 1</xref> was recreated at increasing levels of data incompleteness (<xref ref-type="fig" rid="figure2">Figure 2</xref>). As the percentage of induced missing diagnosis codes increased, the size of the T2D population identified by each phenotype decreased. The CCW phenotype saw the largest decline in the identified population with increasing incompleteness. At 100% induced incompleteness, there were no T2D patients identified by CCW, as the CCW phenotype relies entirely on diagnosis codes for the identification of T2D patients. Lastly, the eMERGE, SUPREME-DM, DDC, and JHU phenotypes continued to identify patients with T2D despite 100% incompleteness of diagnosis codes (<xref ref-type="fig" rid="figure2">Figure 2</xref>).</p><p><xref ref-type="fig" rid="figure3">Figure 3</xref> shows the decrease in the percentage of T2D population identified by each phenotype when diagnostic incompleteness was induced from 0% to 100%, that is, diagnosis codes from the <italic>ICD-10</italic> were dropped in increments of 10%. All phenotype definitions showed a similar decrease in the percentage of patients from 0% to approximately 80% of diagnostic incompleteness. The eMERGE and CCW phenotypes saw significant declines in T2D population sizes when the induced incompleteness increased from 80% to 100%. At 100% incompleteness, CCW identified no patients and eMERGE identified only 21% (16,348/77,977) of the patients with T2D, consistent with <xref ref-type="table" rid="table2">Table 2</xref> and <xref ref-type="fig" rid="figure2">Figure 2</xref>.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Overall population identified by each of the type 2 diabetes phenotype definitions when diagnosis codes were dropped from 20% to 100% to simulate increasing incompleteness of diagnosis codes. CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig02.png"/></fig><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Percent of type 2 diabetes population identified by each type 2 diabetes phenotype definition with increasing incompleteness of diagnosis codes. CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE:lectronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig03.png"/></fig></sec><sec id="s3-2-2"><title>Accuracy</title><p><xref ref-type="fig" rid="figure4">Figures 4</xref> and <xref ref-type="fig" rid="figure5">5</xref> show the overlap and percentages, respectively, of T2D populations identified by each phenotype definition with an increasing percentage of induced replacement of diagnosis codes at random. All phenotype definitions were impacted and continued to identify populations with T2D even with 100% induced inaccuracy despite reductions overall. The CCW, SUPREME-DM, and eMERGE phenotypes showed the greatest decrease when 75%&#x2010;100% of the diagnosis codes were replaced, resulting in identification of only 27%&#x2010;45% of the patients with T2D.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Overall population identified by each of the type 2 diabetes phenotype definitions when diagnosis codes are replaced at random to simulate increasing diagnostic inaccuracy. CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig04.png"/></fig><fig position="float" id="figure5"><label>Figure 5.</label><caption><p>Percentage of type 2 diabetes population identified by each type 2 diabetes phenotype definition with increasing inaccuracy of diagnosis codes. CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig05.png"/></fig></sec><sec id="s3-2-3"><title>Timeliness</title><p>All T2D phenotypes were similarly impacted by simulated or induced shifts in the date of recorded diagnosis from 30 days to 365 days. The patterns of overlap in population were similar across all phenotypes with each incremental date shift (<xref ref-type="fig" rid="figure6">Figure 6</xref>). The percentage of patients identified with T2D showed a decrease over time, however, with at least 85% (176,641/207,813) of the patients with T2D identified during the progression of a year across all phenotypes. The data quality issue of timeliness showed the least impact in the DDC phenotype (<xref ref-type="fig" rid="figure7">Figure 7</xref>).</p><fig position="float" id="figure6"><label>Figure 6.</label><caption><p>Overall population identified by each of the type 2 diabetes phenotype definitions with shifts in timeliness of diagnostic data ranging from 30 to 365 days. CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig06.png"/></fig><fig position="float" id="figure7"><label>Figure 7.</label><caption><p>Percentage of type 2 diabetes population identified by each type 2 diabetes phenotype definition with an increasing shift in diagnostic timeliness (ie, number of days shifted). CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig07.png"/></fig></sec><sec id="s3-2-4"><title>Compounded Data Quality Issue: Completeness</title><p><xref ref-type="fig" rid="figure8">Figures 8</xref> and <xref ref-type="fig" rid="figure9">9</xref> show the overlap and percentages, respectively, of T2D populations identified by each phenotype definition with an increasing percentage of induced compounded incompleteness across diagnosis, medication, and laboratory codes. All phenotype definitions were impacted and continued to identify populations with T2D until 100% induced incompleteness, as expected. While all phenotypes exhibited similar rates of decrease with increased compounded incompleteness, CCW was the most robust to incompleteness. SUPREME-DM was the least resistant to induced compounded incompleteness. Figures S18 and S21 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> provide results for the percentages and frequencies of patients identified by each phenotype while simulating the compounded data quality issues of inaccuracy and lack of timeliness.</p><fig position="float" id="figure8"><label>Figure 8.</label><caption><p>Overall population identified by each of the type 2 diabetes phenotype definitions with compounded increasing incompleteness (diagnostic, medication, and laboratory codes). CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig08.png"/></fig><fig position="float" id="figure9"><label>Figure 9.</label><caption><p>Percentage of type 2 diabetes population identified by each type 2 diabetes phenotype definition with compounded increasing incompleteness (diagnostic, medication, and laboratory codes). CCW: Chronic Conditions Data Warehouse; DDC: Durham Diabetes Coalition; eMERGE: Electronic Medical Records and Genomics; JHU: Johns Hopkins University; SUPREME-DM: Surveillance, Prevention, and Management of Diabetes Mellitus.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v12i1e56734_fig09.png"/></fig></sec></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><p>T2D is a common chronic disease with no known universally defined phenotype definition. This is further complicated by lack of assessments that are necessary to understand the quality of data in real-world health care settings against common phenotypes. In our study, we investigated how data quality issues of completeness, accuracy, and timeliness may impact the implementation of existing T2D phenotypes using different data types of diagnosis, medication, and laboratory codes extracted from common clinical data sources such as EHRs. Each data quality issue and phenotype definition may present unique implications at an unpredictable scale in any given health care setting. Collectively, these variables can pose challenges in identifying an eligible denominator population and implementing study population enrollment strategies for epidemiological studies, population health and management, disease surveillance, financial operations, and policies for populations with T2D.</p><p>Although each phenotype has distinct characteristics, our results showed considerable overlap in the population identified with T2D across the phenotype definitions (<xref ref-type="fig" rid="figure1">Figure 1</xref> and <xref ref-type="table" rid="table2">Table 2</xref>). Given the uniqueness of the CCW phenotype, which only includes diagnosis codes, the CCW phenotype identified approximately 38.4% (79,967/207,813) of the overall study population with T2D, whereas the DDC phenotype, which was inclusive of all data types, identified approximately 67.2% (139,832/207,813) of the total population with T2D. This was similar to the 66.9% (139,231/207,813) of the total population identified by the Hopkins phenotype. Additionally, we observed that the T2D phenotype definitions of SUPREME-DM and eMERGE had similar characteristics and therefore resulted in the identification of approximately 43.2% (89,772/207,813) and 37.5% (77,977/207,813) of the overall study population, respectively. Moreover, when analyzing the distribution of population by data types, the identified populations were significantly different, with no noticeable patterns.</p><p>This study revealed significant findings resulting from simulated or induced data quality issues on the overall study population using EHR data across different T2D phenotype definitions. Induced incompleteness of diagnostic data showed the least impact on the DDC phenotype, however, identifying only approximately 60% of the population with T2D at 100% diagnostic incompleteness. The CCW phenotype was the most impacted, as 100% of the diagnosis codes were missing with 100% induced incompleteness given the characteristics of its phenotype definition. With more incomplete data, the uniqueness of the population identified by each phenotype may also shift, thereby showing a decrease in overlap of the population with T2D across all phenotypes. Although trends displayed by phenotype definitions of Hopkins and SUPREME-DM may seem similar, the quantification of the slightest differences in trends can have significant population health implications, resulting in compromised financial and logistical (eg, staffing needs) outcomes. Thus, it is important to understand the resistance of data quality issues across phenotypes given different data types.</p><p>The results for induced inaccuracy were similar to those for completeness, but data quality issues for timeliness showed a different trend. The phenotypes of eMERGE, CCW, and SUPREME-DM showed significant decreases in the number of identified patients when the majority of the diagnosis codes were replaced. However, induced timeliness continued to capture significant numbers of patients for all phenotypes, at well above 85%. While the impact of induced inaccuracies of laboratory values (in the negative direction) was mitigated by other pathways of the phenotypes, overall, completeness and accuracy showed a much larger impact on the identification of the population with T2D. The trends for the data quality issues of completeness and accuracy paint a similar picture, which may translate into considerations for population health interventions. The effect of data quality on identifying T2D populations using commonly available T2D phenotypes can affect a variety of interventions and outcomes, such as clinical research, financial analysis, staffing needs, and logistical issues, to name a few.</p><p>Lastly, induced compounded (diagnosis, medication, and laboratory) data quality issues showed different trends compared to induced single component (diagnosis, medication, or laboratory) data quality issues. Overall, all phenotypes captured fewer patients when there were compounded data quality issues compared to single-component data quality issues. The CCW phenotype was the most resistant phenotype across compounded incompleteness, inaccuracy, and lack of timeliness. The CCW phenotype&#x2019;s robustness to compounded incompleteness owes to its reliance solely on diagnosis codes; other phenotypes with medication and laboratory components faced steeper drops in patients captured when medication and laboratory codes were both incomplete. When it came to induced compounded inaccuracy, the CCW phenotype demonstrated the greatest resistance until 80% of both diagnosis and medication codes were replaced, at which point the Hopkins phenotype became the most robust (Figure S19 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). Similarly, compounded lack of timeliness became a bigger problem for phenotypes that rely on time interval for not only diagnosis, but also medication and laboratory codes. Simulating compounded data quality issues has implications for evaluating the fit of phenotype definitions for various data sources and availabilities of multiple data elements. For instance, if a particular data source only has reliable diagnosis codes, then the CCW phenotype would be the most robust. However, it may come with more false positives due to its sole reliance on diagnosis codes.</p><p>Our study highlights the importance of understanding the effects of data quality issues on phenotypes, particularly for common diseases such as T2D. The results from our study are novel and can inform how to better identify denominators for a given purpose, which may be beneficial for both research and operational decisions. Although there is no gold standard data set to compare and analyze baseline thresholds of impact on phenotypes, the results of this study can be used by any researcher using real-world data. Additionally, our study describes methods for assessment of multiple data quality issues that can be applied simultaneously in any clinical and health care research setting.</p><p>Our study has some limitations. First, the results discussed are based on the EHR data of JHMI over a period of 3 years; hence, generalizability of the findings may be limited to populations like that of this study population. That said, it may also be not applicable to populations of much smaller sample sizes. Second, our study results should be tested against the epidemiological trends and spread of T2D over time. Third, our study did not measure the embedded issues of data quality problems (ie, only simulated or induced data quality issues); understanding and resolving these issues at the beginning of any study can be vital. Fourth, we did not study other data quality dimensions such as concordance and provenance, the assessment of which can be important. Fifth, all T2D phenotypes used in this study relied on diagnosis, medication, and laboratory codes to identify T2D patients; however, some patients may only have clinically diagnosed information in physician notes (ie, unstructured data or free text) that will be missed using structured diagnosis, medication, or laboratory codes. As a result, there may be some false negatives that may have been excluded from our overall study population despite incorporating the most inclusive criteria for the raw data cut. Sixth, we explored compounded data incompleteness, inaccuracy, and timeliness by dropping multiple data types together at the same increments for each data quality domain. However, there could be alternative versions of compounded simulation where diagnosis, medication, and laboratory data qualities are induced at different levels simultaneously; this may be of interest for future research. Seventh, we assessed the robustness of the phenotypes as they were designated. However, future research could stratify the analysis by the severity of the condition of interest, as severity could impact diagnosis, medication, and laboratory coding behavior and quality. And lastly, our study did not consider any existing data quality thresholds to assess epidemiological impacts on T2D patients using EHRs (eg, comparing national rates of T2D in a neighborhood vs T2D rates identified using EHR data of patients residing in the same neighborhood).</p><p>As a result of these observations, we believe that there is a growing need in the United States for a standardized phenotype definition to identify T2D populations while considering the challenges of data quality issues in real-world data, such as from EHRs. The universal phenotype definition should have the ability to integrate features of EHR data while being resistant to common data quality issues. Such a phenotype definition ought to also consider factors that may introduce racial bias and disparities, which eventually may result in health inequities. And lastly, this fundamental definition must also consider integration and interoperability with other data sources, such as claims data, and alignment with existing data interoperability standards. Our research hopes to inspire T2D subject matter experts, at least, to begin conversations toward creating a universal definition for a disease that is extremely common. That said, there is opportunity for additional research that ties issues of data quality with those of phenotypes, data types, and data sources.</p><p>Our research provides novel results to understand the effect of data quality issues in data sources like EHRs to identify T2D population-level groups of interest using commonly available T2D phenotype definitions. The study results can inform research or operational efforts using large clinical data repositories to identify T2D populations. Lastly, the study findings can inform efforts to consolidate T2D phenotypes in the near future.</p></sec></body><back><ack><p>The authors want to thank Dr Hsien Yen Chang and Thomas Richards (Johns Hopkins University Center for Population Health Information Technology) and Dr Martin Bishop (Johns Hopkins Hospital Pharmacy Outpatient) for their perspectives and insights into the data sets and related database challenges. We also thank Dr Eva Tseng and Dr Scott Pilla (Johns Hopkins University School of Medicine) for their knowledge on the International Classification of Disease, 10th Revision codes used for the SUPREME-DM (Surveillance, Prevention, and Management of Diabetes Mellitus) phenotype definition, and Dr. Rita R. Kalyani (Johns Hopkins University School of Medicine) for insights into clinical identifiers and definition of Type 2 Diabetes.</p></ack><fn-group><fn fn-type="con"><p>All the authors contributed to the conception and design of the study, including material preparation, data collection, and data analyses. All authors critically reviewed and commented on the manuscript and have read and approved the final manuscript.</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">CCW</term><def><p>Chronic Conditions Data Warehouse</p></def></def-item><def-item><term id="abb2">DDC</term><def><p>Durham Diabetes Coalition</p></def></def-item><def-item><term id="abb3">EHR</term><def><p>electronic health record</p></def></def-item><def-item><term id="abb4">eMERGE</term><def><p>Electronic Medical Records and Genomics</p></def></def-item><def-item><term id="abb5"><italic>ICD</italic></term><def><p><italic>International Classification of Diseases</italic></p></def></def-item><def-item><term id="abb6">IRB</term><def><p>institutional review board</p></def></def-item><def-item><term id="abb7">JHMI</term><def><p>Johns Hopkins Medical Institution</p></def></def-item><def-item><term id="abb8">JHU</term><def><p>Johns Hopkins University</p></def></def-item><def-item><term id="abb9">LOINC</term><def><p>Logical Observation Identifiers Names and Codes</p></def></def-item><def-item><term id="abb10">SUPREME-DM</term><def><p>Surveillance, Prevention, and Management of Diabetes Mellitus</p></def></def-item><def-item><term id="abb11">T2D</term><def><p>type 2 diabetes</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="web"><article-title>National Diabetes Statistics Report 2020 estimate of diabetes and its burden in the United States</article-title><source>Diabetes Research Institute</source><year>2022</year><access-date>2023-07-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://diabetesresearch.org/wp-content/uploads/2022/05/national-diabetes-statistics-report-2020.pdf">https://diabetesresearch.org/wp-content/uploads/2022/05/national-diabetes-statistics-report-2020.pdf</ext-link></comment></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Richesson</surname><given-names>RL</given-names> </name><name name-style="western"><surname>Rusincovitch</surname><given-names>SA</given-names> </name><name name-style="western"><surname>Wixted</surname><given-names>D</given-names> </name><etal/></person-group><article-title>A comparison of phenotype definitions for diabetes mellitus</article-title><source>J Am Med Inform Assoc</source><year>2013</year><month>12</month><volume>20</volume><issue>e2</issue><fpage>e319</fpage><lpage>e326</lpage><pub-id pub-id-type="doi">10.1136/amiajnl-2013-001952</pub-id><pub-id pub-id-type="medline">24026307</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="web"><article-title>Validating type 1 and type 2 diabetes mellitus in the Minisentinel Distributed Database using the Surveillance, Prevention, and Management of Diabetes Mellitus (SUPREME-DM) datalink</article-title><source>Sentinel Initiative</source><access-date>2022-06-20</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.sentinelinitiative.org/sites/default/files/Methods/Mini-Sentinel_Methods_Validating-Diabetes-Mellitus_MSDD_Using-SUPREME-DM-DataLink.pdf">https://www.sentinelinitiative.org/sites/default/files/Methods/Mini-Sentinel_Methods_Validating-Diabetes-Mellitus_MSDD_Using-SUPREME-DM-DataLink.pdf</ext-link></comment></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="web"><article-title>27 CCW chronic conditions algorithms</article-title><source>Chronic Conditions Data Warehouse</source><year>2022</year><access-date>2022-04-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www2.ccwdata.org/documents/10280/19139608/ccw-cond-algo-diabetes.pdf">https://www2.ccwdata.org/documents/10280/19139608/ccw-cond-algo-diabetes.pdf</ext-link></comment></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Pacheco</surname><given-names>J</given-names> </name><name name-style="western"><surname>Thompson</surname><given-names>W</given-names> </name></person-group><article-title>Type 2 diabetes mellitus</article-title><source>PheKB</source><year>2012</year><access-date>2024-07-09</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://phekb.org/phenotype/18">https://phekb.org/phenotype/18</ext-link></comment></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="web"><article-title>Type 2 diabetes mellitus phenotype definitions</article-title><source>NIH Collaboratory</source><access-date>2022-04-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://dcricollab.dcri.duke.edu/sites/NIHKR/KR/Diabetes_Phenotype%20Definition%20Resources%20and%20Recommendations.pdf">https://dcricollab.dcri.duke.edu/sites/NIHKR/KR/Diabetes_Phenotype%20Definition%20Resources%20and%20Recommendations.pdf</ext-link></comment></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Weiskopf</surname><given-names>NG</given-names> </name><name name-style="western"><surname>Weng</surname><given-names>C</given-names> </name></person-group><article-title>Methods and dimensions of electronic health record data quality assessment: enabling reuse for clinical research</article-title><source>J Am Med Inform Assoc</source><year>2013</year><month>01</month><day>1</day><volume>20</volume><issue>1</issue><fpage>144</fpage><lpage>151</lpage><pub-id pub-id-type="doi">10.1136/amiajnl-2011-000681</pub-id><pub-id pub-id-type="medline">22733976</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hogan</surname><given-names>WR</given-names> </name><name name-style="western"><surname>Wagner</surname><given-names>MM</given-names> </name></person-group><article-title>Accuracy of data in computer-based patient records</article-title><source>J Am Med Inform Assoc</source><year>1997</year><volume>4</volume><issue>5</issue><fpage>342</fpage><lpage>355</lpage><pub-id pub-id-type="doi">10.1136/jamia.1997.0040342</pub-id><pub-id pub-id-type="medline">9292840</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Snyder</surname><given-names>J</given-names> </name></person-group><article-title>Data cleansing: an omission from data analytics coursework</article-title><source>Inf Syst Educ J</source><year>2019</year><access-date>2024-07-09</access-date><volume>17</volume><issue>6</issue><fpage>22</fpage><lpage>29</lpage><comment><ext-link ext-link-type="uri" xlink:href="http://isedj.org/2019-17/">http://isedj.org/2019-17/</ext-link></comment></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kho</surname><given-names>AN</given-names> </name><name name-style="western"><surname>Hayes</surname><given-names>MG</given-names> </name><name name-style="western"><surname>Rasmussen-Torvik</surname><given-names>L</given-names> </name><etal/></person-group><article-title>Use of diverse electronic medical record systems to identify genetic risk for type 2 diabetes within a genome-wide association study</article-title><source>J Am Med Inform Assoc</source><year>2012</year><volume>19</volume><issue>2</issue><fpage>212</fpage><lpage>218</lpage><pub-id pub-id-type="doi">10.1136/amiajnl-2011-000439</pub-id><pub-id pub-id-type="medline">22101970</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Adhikari</surname><given-names>P</given-names> </name><name name-style="western"><surname>Devang</surname><given-names>N</given-names> </name><name name-style="western"><surname>Nandini</surname><given-names>M</given-names> </name></person-group><article-title>Phenotypical classification of type 2 diabetes mellitus</article-title><source>J Endocrinol Diab</source><year>2018</year><month>11</month><volume>5</volume><issue>6</issue><fpage>1</fpage><lpage>4</lpage><pub-id pub-id-type="doi">10.15226/2374-6890/5/6/001119</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="web"><article-title>ICD-9-CM to and from ICD-10-CM and ICD-10-PCS crosswalk or general equivalence mappings</article-title><source>National Bureau of Economic Research</source><access-date>2022-04-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.nber.org/research/data/icd-9-cm-and-icd-10-cm-and-icd-10-pcs-crosswalk-or-general-equivalence-mappings">https://www.nber.org/research/data/icd-9-cm-and-icd-10-cm-and-icd-10-pcs-crosswalk-or-general-equivalence-mappings</ext-link></comment></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="web"><article-title>RxNav</article-title><source>National Library of Medicine</source><access-date>2024-07-09</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://mor.nlm.nih.gov/RxNav/">https://mor.nlm.nih.gov/RxNav/</ext-link></comment></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="web"><article-title>NCI Comorbidity Index overview</article-title><source>National Cancer Institute</source><access-date>2022-04-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://healthcaredelivery.cancer.gov/seermedicare/considerations/comorbidity.html">https://healthcaredelivery.cancer.gov/seermedicare/considerations/comorbidity.html</ext-link></comment></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="web"><article-title>Guide to HbA1c</article-title><source>Diabetes.co.uk</source><access-date>2022-04-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.diabetes.co.uk/what-is-hba1c.html#:~:text=HbA1c%20can%20be%20expressed%20as,is%20measured%20in%20mmol%2Fl">https://www.diabetes.co.uk/what-is-hba1c.html#:~:text=HbA1c%20can%20be%20expressed%20as,is%20measured%20in%20mmol%2Fl</ext-link></comment></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="web"><article-title>The R project for statistical computing</article-title><source>R Foundation</source><access-date>2022-04-13</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.r-project.org/">https://www.r-project.org/</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Table S1 and Figures S1-S21.</p><media xlink:href="medinform_v12i1e56734_app1.docx" xlink:title="DOCX File, 2561 KB"/></supplementary-material></app-group></back></article>