Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records

Abstract Background Validated algorithms to classify type 1 and 2 diabetes (T1D, T2D) are mostly limited to white pediatric populations. We conducted a large study in Hong Kong among children and adults with diabetes to develop and validate algorithms using electronic health records (EHRs) to classi...

Full description

Bibliographic Details
Main Authors: Calvin Ke, Thérèse A. Stukel, Andrea Luk, Baiju R. Shah, Prabhat Jha, Eric Lau, Ronald C. W. Ma, Wing-Yee So, Alice P. Kong, Elaine Chow, Juliana C. N. Chan
Format: Article
Language:English
Published: BMC 2020-02-01
Series:BMC Medical Research Methodology
Subjects:
Online Access:http://link.springer.com/article/10.1186/s12874-020-00921-3
id doaj-52766cecef254d41b9b4a54ab9b6e7a4
record_format Article
spelling doaj-52766cecef254d41b9b4a54ab9b6e7a42020-11-25T01:38:38ZengBMCBMC Medical Research Methodology1471-22882020-02-0120111510.1186/s12874-020-00921-3Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health recordsCalvin Ke0Thérèse A. Stukel1Andrea Luk2Baiju R. Shah3Prabhat Jha4Eric Lau5Ronald C. W. Ma6Wing-Yee So7Alice P. Kong8Elaine Chow9Juliana C. N. Chan10Department of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalInstitute of Health Policy, Management and Evaluation, University of TorontoDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalDepartment of Medicine, University of TorontoCentre for Global Health Research, St. Michael’s Hospital, and Dalla Lana School of Public Health, University of TorontoDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalDepartment of Medicine and Therapeutics, The Chinese University of Hong Kong, Prince of Wales HospitalAbstract Background Validated algorithms to classify type 1 and 2 diabetes (T1D, T2D) are mostly limited to white pediatric populations. We conducted a large study in Hong Kong among children and adults with diabetes to develop and validate algorithms using electronic health records (EHRs) to classify diabetes type against clinical assessment as the reference standard, and to evaluate performance by age at diagnosis. Methods We included all people with diabetes (age at diagnosis 1.5–100 years during 2002–15) in the Hong Kong Diabetes Register and randomized them to derivation and validation cohorts. We developed candidate algorithms to identify diabetes types using encounter codes, prescriptions, and combinations of these criteria (“combination algorithms”). We identified 3 algorithms with the highest sensitivity, positive predictive value (PPV), and kappa coefficient, and evaluated performance by age at diagnosis in the validation cohort. Results There were 10,196 (T1D n = 60, T2D n = 10,136) and 5101 (T1D n = 43, T2D n = 5058) people in the derivation and validation cohorts (mean age at diagnosis 22.7, 55.9 years; 53.3, 43.9% female; for T1D and T2D respectively). Algorithms using codes or prescriptions classified T1D well for age at diagnosis < 20 years, but sensitivity and PPV dropped for older ages at diagnosis. Combination algorithms maximized sensitivity or PPV, but not both. The “high sensitivity for type 1” algorithm (ratio of type 1 to type 2 codes ≥ 4, or at least 1 insulin prescription within 90 days) had a sensitivity of 95.3% (95% confidence interval 84.2–99.4%; PPV 12.8%, 9.3–16.9%), while the “high PPV for type 1” algorithm (ratio of type 1 to type 2 codes ≥ 4, and multiple daily injections with no other glucose-lowering medication prescription) had a PPV of 100.0% (79.4–100.0%; sensitivity 37.2%, 23.0–53.3%), and the “optimized” algorithm (ratio of type 1 to type 2 codes ≥ 4, and at least 1 insulin prescription within 90 days) had a sensitivity of 65.1% (49.1–79.0%) and PPV of 75.7% (58.8–88.2%) across all ages. Accuracy of T2D classification was high for all algorithms. Conclusions Our validated set of algorithms accurately classifies T1D and T2D using EHRs for Hong Kong residents enrolled in a diabetes register. The choice of algorithm should be tailored to the unique requirements of each study question.http://link.springer.com/article/10.1186/s12874-020-00921-3Validation studyType 1 diabetesType 2 diabetesChinese ethnicityElectronic health recordsAdministrative data
collection DOAJ
language English
format Article
sources DOAJ
author Calvin Ke
Thérèse A. Stukel
Andrea Luk
Baiju R. Shah
Prabhat Jha
Eric Lau
Ronald C. W. Ma
Wing-Yee So
Alice P. Kong
Elaine Chow
Juliana C. N. Chan
spellingShingle Calvin Ke
Thérèse A. Stukel
Andrea Luk
Baiju R. Shah
Prabhat Jha
Eric Lau
Ronald C. W. Ma
Wing-Yee So
Alice P. Kong
Elaine Chow
Juliana C. N. Chan
Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
BMC Medical Research Methodology
Validation study
Type 1 diabetes
Type 2 diabetes
Chinese ethnicity
Electronic health records
Administrative data
author_facet Calvin Ke
Thérèse A. Stukel
Andrea Luk
Baiju R. Shah
Prabhat Jha
Eric Lau
Ronald C. W. Ma
Wing-Yee So
Alice P. Kong
Elaine Chow
Juliana C. N. Chan
author_sort Calvin Ke
title Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
title_short Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
title_full Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
title_fullStr Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
title_full_unstemmed Development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
title_sort development and validation of algorithms to classify type 1 and 2 diabetes according to age at diagnosis using electronic health records
publisher BMC
series BMC Medical Research Methodology
issn 1471-2288
publishDate 2020-02-01
description Abstract Background Validated algorithms to classify type 1 and 2 diabetes (T1D, T2D) are mostly limited to white pediatric populations. We conducted a large study in Hong Kong among children and adults with diabetes to develop and validate algorithms using electronic health records (EHRs) to classify diabetes type against clinical assessment as the reference standard, and to evaluate performance by age at diagnosis. Methods We included all people with diabetes (age at diagnosis 1.5–100 years during 2002–15) in the Hong Kong Diabetes Register and randomized them to derivation and validation cohorts. We developed candidate algorithms to identify diabetes types using encounter codes, prescriptions, and combinations of these criteria (“combination algorithms”). We identified 3 algorithms with the highest sensitivity, positive predictive value (PPV), and kappa coefficient, and evaluated performance by age at diagnosis in the validation cohort. Results There were 10,196 (T1D n = 60, T2D n = 10,136) and 5101 (T1D n = 43, T2D n = 5058) people in the derivation and validation cohorts (mean age at diagnosis 22.7, 55.9 years; 53.3, 43.9% female; for T1D and T2D respectively). Algorithms using codes or prescriptions classified T1D well for age at diagnosis < 20 years, but sensitivity and PPV dropped for older ages at diagnosis. Combination algorithms maximized sensitivity or PPV, but not both. The “high sensitivity for type 1” algorithm (ratio of type 1 to type 2 codes ≥ 4, or at least 1 insulin prescription within 90 days) had a sensitivity of 95.3% (95% confidence interval 84.2–99.4%; PPV 12.8%, 9.3–16.9%), while the “high PPV for type 1” algorithm (ratio of type 1 to type 2 codes ≥ 4, and multiple daily injections with no other glucose-lowering medication prescription) had a PPV of 100.0% (79.4–100.0%; sensitivity 37.2%, 23.0–53.3%), and the “optimized” algorithm (ratio of type 1 to type 2 codes ≥ 4, and at least 1 insulin prescription within 90 days) had a sensitivity of 65.1% (49.1–79.0%) and PPV of 75.7% (58.8–88.2%) across all ages. Accuracy of T2D classification was high for all algorithms. Conclusions Our validated set of algorithms accurately classifies T1D and T2D using EHRs for Hong Kong residents enrolled in a diabetes register. The choice of algorithm should be tailored to the unique requirements of each study question.
topic Validation study
Type 1 diabetes
Type 2 diabetes
Chinese ethnicity
Electronic health records
Administrative data
url http://link.springer.com/article/10.1186/s12874-020-00921-3
work_keys_str_mv AT calvinke developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT thereseastukel developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT andrealuk developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT baijurshah developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT prabhatjha developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT ericlau developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT ronaldcwma developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT wingyeeso developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT alicepkong developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT elainechow developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
AT julianacnchan developmentandvalidationofalgorithmstoclassifytype1and2diabetesaccordingtoageatdiagnosisusingelectronichealthrecords
_version_ 1725052513497907200