| Literature DB >> 32093635 |
Calvin Ke1,2,3, Thérèse A Stukel4,5, Andrea Luk6,7,8,9, Baiju R Shah10,4,5,11, Prabhat Jha12, Eric Lau6,7, Ronald C W Ma6,8,9, Wing-Yee So6, Alice P Kong6,8,9, Elaine Chow6, Juliana C N Chan6,7,8,9.
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.Entities:
Keywords: Administrative data; Chinese ethnicity; Electronic health records; Health services research; Population-based study; Type 1 diabetes; Type 2 diabetes; Validation study
Mesh:
Year: 2020 PMID: 32093635 PMCID: PMC7038546 DOI: 10.1186/s12874-020-00921-3
Source DB: PubMed Journal: BMC Med Res Methodol ISSN: 1471-2288 Impact factor: 4.615
Fig. 1Flow diagram depicting creation of the study cohorts using the sub-population of people in the Hong Kong Diabetes Surveillance Database who were also enrolled in the Hong Kong Diabetes Register (HKDR). Diabetes type classification consisted of 2 steps: (1) comprehensive assessment, and (2) chart review of cases initially flagged as type 1 diabetes
Baseline characteristics of people in the Hong Kong Diabetes Register (HKDR, randomized 2:1 into derivation and validation cohorts) and the Hong Kong Diabetes Surveillance Database (HKDSD). Laboratory and prescription data are from the first year after diagnosis. Values are counts (n) and percentages unless otherwise indicated
| HKDR | HKDSD | |||||
|---|---|---|---|---|---|---|
| Cohort | Total | Missing ( | Missing ( | |||
| Derivation | Validation | |||||
| Age (years; mean, standard deviation) | 55.7 (11.7) | 55.6 (11.8) | 55.7 (11.7) | 0 (0.0) | 61.8 (13.2) | 0 (0.0) |
| Age < 18 years | 36 (0.4) | 28 (0.6) | 64 (0.4) | 1577 (0.3) | ||
| Age 18–39 years | 801 (7.9) | 375 (7.4) | 1176 (7.7) | 24,148 (4.3) | ||
| Age ≥ 40 years | 9359 (91.8) | 4698 (92.1) | 14,057 (91.9) | 536,199 (95.4) | ||
| Female | 4488 (44.0) | 2341 (45.9) | 6829 (44.6) | 270,282 (48.1) | ||
| Baseline Comorbidities* | ||||||
| Ischemic heart disease | 972 (9.5) | 456 (8.9) | 1428 (9.3) | 49,931 (8.9) | ||
| Congestive heart failure | 411 (4.0) | 196 (3.8) | 607 (4.0) | 28,745 (5.1) | ||
| Stroke | 855 (8.4) | 426 (8.4) | 1281 (8.4) | 54,762 (9.8) | ||
| Peripheral arterial disease | 125 (1.2) | 52 (1.0) | 177 (1.2) | 5241 (0.9) | ||
| Cancer | 1071 (10.5) | 537 (10.5) | 1608 (10.5) | 63,510 (11.3) | ||
| Chronic kidney disease† | 1885 (18.5) | 948 (18.6) | 2833 (18.5) | 1 (0.0) | 125,274 (22.5) | 6101 (0.0) |
| End-stage renal disease† | 133 (1.3) | 78 (1.5) | 211 (1.4) | 8274 (1.5) | ||
| Risk Factors (mean, standard deviation unless otherwise indicated) | ||||||
| A1C (%) | 7.4 (1.0) | 7.4 (1.0) | 7.4 (1.0) | 17 (0.1) | 7.2 (1.1) | 24,485 (4.4) |
| Fasting plasma glucose (mmol/L) | 7.7 (1.7) | 7.7 (1.7) | 7.7 (1.7) | 90 (0.6) | 7.4 (1.8) | 32,708 (5.8) |
| LDL-C (mmol/L) | 2.5 (0.6) | 2.5 (0.6) | 2.5 (0.6) | 48 (0.3) | 2.7 (0.7) | 38,691 (6.9) |
| HDL-C (mmol/L) | 1.3 (0.3) | 1.3 (0.3) | 1.3 (0.3) | 45 (0.3) | 1.3 (0.3) | 37,813 (6.7) |
| Triglycerides (median, IQR; mmol/L) | 1.4 (0.9) | 1.4 (0.9) | 1.4 (0.9) | 41 (0.3) | 1.4 (0.9) | 34,211 (6.1) |
| eGFR (mL/min/1.73 m2) | 79.4 (23.3) | 79.9 (23.5) | 79.5 (23.4) | 1 (0.0) | 76.3 (23.4) | 6101 (0.0) |
| Glucose-Lowering Medications (excluding insulin) | ||||||
| Metformin | 9044 (88.7) | 4540 (89.0) | 13,584 (88.8) | 399,235 (71.0) | ||
| Sulfonylureas | 7492 (73.5) | 3752 (73.6) | 11,244 (73.5) | 301,158 (53.6) | ||
| Thiazolidinediones | 674 (6.6) | 306 (6.0) | 980 (6.4) | 11,414 (2.0) | ||
| DPP-4 inhibitors | 1945 (19.1) | 932 (18.3) | 2877 (18.8) | 24,529 (4.4) | ||
| GLP-1 agonists | 32 (0.3) | 21 (0.4) | 53 (0.4) | 319 (0.1) | ||
| SGLT2 inhibitors | 171 (1.7) | 79 (1.6) | 250 (1.6) | 1381 (0.2) | ||
| Alpha-glucosidase inhibitor | 347 (3.4) | 159 (3.1) | 506 (3.3) | 7885 (1.4) | ||
| Insulin‡ ( | ||||||
| Long-acting | 505 (5.0) | 232 (4.6) | 737 (4.8) | 7260 (1.3) | ||
| Intermediate-acting | 2903 (28.5) | 1397 (27.4) | 4303 (28.1) | 54,859 (9.8) | ||
| Short-acting | 1337 (13.1) | 630 (12.4) | 1967 (12.9) | 58,096 (10.3) | ||
| Premixed | 907 (8.9) | 430 (8.4) | 1337 (8.7) | 18,040 (3.2) | ||
| Multiple daily injections** | 1001 (9.8) | 480 (9.4) | 1481 (9.7) | 23,445 (4.2) | ||
| Any insulin | 3454 (33.9) | 1648 (32.3) | 5102 (33.4) | 94,974 (16.9) | ||
| Other Medications | ||||||
| Statin | 7098 (69.6) | 3546 (69.5) | 10,644 (69.6) | 349,324 (62.2) | ||
| RAS inhibitor | 7054 (69.2) | 3530 (69.2) | 10,584 (69.2) | 344,949 (61.4) | ||
| Antiplatelet agent | 3651 (35.8) | 1836 (36.0) | 5487 (35.9) | 197,612 (35.2) | ||
*based on principal diagnoses on hospitalization discharge abstracts within 2 years prior to diagnosis (except for renal conditions)
†chronic kidney disease eGFR< 60 mL/min/1.73 m2, end-stage renal disease eGFR< 15 mL/min/1.73 m2
‡prescriptions ≥ 28 days in duration
**any combination of long-acting and short-acting insulin
Abbreviations: A1C glycated haemoglobin A1c, LDL-C low-density lipoprotein cholesterol, HDL-C high-density lipoprotein cholesterol, IQR interquartile range, eGFR estimated glomerular filtration rate, DPP-4 dipeptidyl peptidase-4, GLP-1 glucagon-like peptide-1, SGLT2 sodium-glucose transport protein 2, RAS renin-angiotensin system
Baseline characteristics and performance of candidate algorithms among people in the derivation cohort, stratified by diabetes type. Candidate algorithms developed using encounter codes (“code algorithms”) or prescriptions (“prescription algorithms”) are also shown. For each algorithm, values in the Type 1 and 2 columns indicate the number and percentage of individuals satisfying the algorithm (sensitivity). Positive predictive values for classifying type 1 diabetes are shown in the right column. The best 4 algorithms are indicated by the letters in parentheses (A–D; see text for selection criteria)
| Type 1 ( | Type 2 ( | Positive Predictive Value (%) | |
|---|---|---|---|
| Demographic Characteristics | |||
| Age at diagnosis (years; mean, standard deviation) | 22.7 (12.6) | 55.9 (11.4) | |
| < 18 | 16 (26.7) | 20 (0.2) | |
| 18–39 | 33 (55.0) | 768 (7.6) | |
| ≥ 40 years | 11 (18.3) | 9348 (92.3) | |
| Female | 32 (53.3) | 4456 (43.9) | |
| Coding Characteristics* | |||
| Number of type 1 codes (median, interquartile range) | 3.0 (4.0) | 0.0 (0.0) | |
| Total number of type 1principal codes (median, interquartile range) | 2.0 (2.5) | 0.0 (0.0) | |
| Total number of type 1 mixed codes (median, interquartile range) | 1.0 (2.0) | 0.0 (0.0) | |
| Number of type 2 codes (median, interquartile range) | 0.0 (1.0) | 1.0 (3.0) | |
| Total number of type 2 principal codes (median, interquartile range) | 0.0 (0.0) | 1.0 (2.0) | |
| Total number of type 2 mixed codes (median, interquartile range) | 0.0 (0.0) | 1.0 (2.0) | |
| Candidate Code Algorithms* | |||
| At least 1 type 1 code | 50 (83.3) | 142 (1.4) | 26.0 |
| At least 1 type 1 principal code | 42 (70.0) | 65 (0.6) | 39.2 |
| At least 1 type 1 mixed code | 38 (63.3) | 108 (1.1) | 26.0 |
| At least 1 type 2 code | 43 (71.7) | 92 (0.9) | 31.8 |
| At least 1 type 2 principal code | 29 (48.3) | 25 (0.2) | 53.7 |
| At least 1 type 2 mixed code | 21 (35.0) | 66 (0.6) | 24.1 |
| Ratio of type 1 to type 2 codes ≥ 0.5 (A) | 50 (83.3) | 97 (1.0) | 34.0 |
| Ratio of type 1 to type 2 codes ≥ 0.75 | 49 (81.7) | 81 (0.8) | 37.7 |
| Ratio of type 1 to type 2 codes ≥ 1 | 49 (81.7) | 78 (0.8) | 38.6 |
| Ratio of type 1 to type 2 codes ≥ 2 | 47 (78.3) | 47 (0.5) | 50.0 |
| Ratio of type 1 to type 2 codes ≥ 3 | 46 (76.7) | 38 (0.4) | 54.8 |
| Ratio of type 1 to type 2 codes ≥ 4 (B) | 43 (71.7) | 32 (0.3) | 57.3 |
| Candidate Prescription Algorithms† | |||
| At least 1 insulin prescription | 59 (98.3) | 3408 (33.6) | 1.7 |
| within 90 days (C) | 58 (96.7) | 615 (6.1) | 8.6 |
| within 180 days | 58 (96.7) | 715 (7.1) | 7.5 |
| within 365 days | 58 (96.7) | 844 (8.3) | 6.4 |
| At least 1 insulin prescription with no other glucose-lowering medication prescription | 36 (60.0) | 80 (0.8) | 31.0 |
| within 90 days | 43 (71.7) | 362 (3.6) | 10.6 |
| within 180 days | 44 (73.3) | 483 (4.8) | 8.4 |
| within 365 days | 45 (75.0) | 653 (6.4) | 6.4 |
| At least 1 insulin prescription with no other glucose-lowering medication prescription except metformin | 50 (83.3) | 275 (2.7) | 15.4 |
| within 90 days | 53 (88.3) | 451 (4.4) | 10.5 |
| within 180 days | 54 (90.0) | 566 (5.6) | 8.7 |
| within 365 days | 54 (90.0) | 727 (7.2) | 6.9 |
| Multiple daily injections‡ | 47 (78.3) | 273 (2.7) | 14.7 |
| within 90 days | 7 (11.7) | 5 (0.0) | 58.3 |
| within 180 days | 8 (13.3) | 9 (0.1) | 47.1 |
| within 365 days | 12 (20.0) | 13 (0.1) | 48.0 |
| Multiple daily injections with no other glucose-lowering medication prescription (D) | 32 (53.3) | 9 (0.1) | 78.0 |
| within 90 days | 7 (11.7) | 2 (0.0) | 77.8 |
| within 180 days | 8 (13.3) | 6 (0.1) | 571 |
| within 365 days | 12 (20.0) | 11 (0.1) | 52.2 |
| Multiple daily injections with no other glucose-lowering medication prescription except metformin | 42 (70.0) | 26 (0.3) | 61.8 |
| within 90 days | 7 (11.7) | 2 (0.0) | 77.8 |
| within 180 days | 8 (13.3) | 6 (0.1) | 57.1 |
| within 365 days | 12 (20.0) | 11 (0.1) | 52.2 |
| At least 1 metformin prescription | 22 (36.7) | 8979 (88.6) | 0.2 |
| Other glucose-lowering medication prescription excluding insulin and metformin | 10 (16.7) | 7673 (75.7) | 0.2 |
*In our dataset, encounter codes were classified as “principal” (principal diagnoses from hospital discharge abstracts) or “mixed” (including secondary diagnoses from hospital discharge abstracts and encounter codes from hospital outpatient clinics). Type 1 codes are defined as International Classifications of Diseases Ninth Revision (ICD-9) codes 250.x1 or 250.x3; type 2 codes are defined as ICD-9 codes 250.x0 or 250.x2
†We only included long-term insulin prescriptions (duration ≥ 28 days). See Appendix Table 4 for prescriptions algorithms using renal function criteria. All indicated durations are counted from the diagnosis date. If no duration is indicated, all data were utilized (up to 2016)
‡Multiple daily injections: defined as prescriptions for long-acting and short-acting insulin (both initiated within the same time frame as specified)
See Supplementary Table 4 (Additional File 1) for algorithms using renal function criteria
Fig. 2Sensitivity and positive predictive value of the 4 best single algorithms for classifying type 1 diabetes in the derivation cohort by age at diagnosis*, displayed with the proportion of all diabetes cases classified as type 1 using the reference standard (dashed line). Algorithms: (a) ratio of type 1 to type 2 codes ≥ 0.5; (b) ratio of type 1 to type 2 codes ≥ 4; (c) at least 1 insulin prescription within 90 days of diagnosis; (d) multiple daily injections with no other glucose-lowering medication prescriptions
*smoothed using 15-year moving averages
Test characteristics of single (A–D) and combination algorithms for classifying type 1 diabetes compared to the reference standard in the derivation cohort, stratified by age at diagnosis. Sensitivity, specificity, positive predictive value (PPV) and negative predictive value (NPV) are percentages with 95% confidence intervals. Cohen’s kappa coefficient represents agreement after agreement due to chance is removed (1.0 indicates perfect agreement) [31]. The “Type 1 Proportion” columns refer to the percentage of people in the cohort with diabetes classified as having type 1 using each algorithm (“Calculated”) and the reference standard (“True”). The best overall algorithms are marked (* = highest sensitivity, † = highest PPV, ‡ = highest kappa coefficient)
| Algorithm | TP | FP | FN | TN | Sensitivity | Specificity | PPV | NPV | Kappa | Type 1 Proportion (%) | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Calculated | True | ||||||||||
| All Ages | |||||||||||
| Ratio of type 1 to type 2 codes ≥ 0.5 (A) | 50 | 97 | 10 | 10,039 | 83.3 (71.5, 91.7) | 99.0 (98.8, 99.2) | 34.0 (26.4, 42.3) | 99.9 (99.8, 100.0) | 0.48 | 1.4 | 0.6 |
| Ratio of type 1 to type 2 codes ≥ 4 (B) | 43 | 32 | 17 | 10,104 | 71.7 (58.6, 82.5) | 99.7 (99.6, 99.8) | 57.3 (45.4, 68.7) | 99.8 (99.7, 99.9) | 0.63 | 0.7 | |
| At least 1 insulin prescription within 90 days (C) | 58 | 615 | 2 | 9521 | 96.7 (88.5, 99.6) | 93.9 (93.5, 94.4) | 8.6 (6.6, 11.0) | 100.0 (99.9, 100.0) | 0.15 | 6.6 | |
| Multiple daily injections with no other glucose-lowering medication prescription (D) | 32 | 9 | 28 | 10,127 | 53.3 (40.0, 66.3) | 99.9 (99.8, 100.0) | 78.0 (62.4, 89.4) | 99.7 (99.6, 99.8) | 0.63 | 0.4 | |
| A and C | 49 | 52 | 11 | 10,084 | 81.7 (69.6, 90.5) | 99.5 (99.3, 99.6) | 48.5 (38.4, 58.7) | 99.9 (99.8, 99.9) | 0.61 | 1.0 | |
| A and D | 28 | 5 | 32 | 10,131 | 46.7 (33.7, 60.0) | 100.0 (99.9, 100.0) | 84.8 (68.1, 94.9) | 99.7 (99.6, 99.8) | 0.60 | 0.3 | |
| B and C‡ | 42 | 19 | 18 | 10,117 | 70.0 (56.8, 81.2) | 99.8 (99.7, 99.9) | 68.9 (55.7, 80.1) | 99.8 (99.7, 99.9) | 0.69 | 0.6 | |
| B and D† | 25 | 4 | 35 | 10,132 | 41.7 (29.1, 55.1) | 100.0 (99.9, 100.0) | 86.2 (68.3, 96.1) | 99.7 (99.5, 99.8) | 0.56 | 0.3 | |
| A or C | 59 | 660 | 1 | 9476 | 98.3 (91.1, 100.0) | 93.5 (93.0, 94.0) | 8.2 (6.3, 10.5) | 100.0 (99.9, 100.0) | 0.14 | 7.1 | |
| A or D | 54 | 101 | 6 | 10,035 | 90.0 (79.5, 96.2) | 99.0 (98.8, 99.2) | 34.8 (27.4, 42.9) | 99.9 (99.9, 100.0) | 0.50 | 1.5 | |
| B or C* | 59 | 628 | 1 | 9508 | 98.3 (91.1, 100.0) | 93.8 (93.3, 94.3) | 8.6 (6.6, 10.9) | 100.0 (99.9, 100.0) | 0.15 | 6.7 | |
| B or D | 50 | 37 | 10 | 10,099 | 83.3 (71.5, 91.7) | 99.6 (99.5, 99.7) | 57.5 (46.4, 68.0) | 99.9 (99.8, 100.0) | 0.68 | 0.9 | |
| Age < 20 years | |||||||||||
| Ratio of type 1 to type 2 codes ≥ 0.5 (A) | 23 | 9 | 0 | 26 | 100.0 (85.2, 100.0) | 74.3 (56.7, 87.5) | 71.9 (53.3, 86.3) | 100.0 (86.8, 100.0) | 0.70 | 55.2 | 39.7 |
| Ratio of type 1 to type 2 codes ≥ 4 (B) | 21 | 5 | 2 | 30 | 91.3 (72.0, 98.9) | 85.7 (69.7, 95.2) | 80.8 (60.6, 93.4) | 93.8 (79.2, 99.2) | 0.75 | 44.8 | |
| At least 1 insulin prescription within 90 days (C) | 23 | 13 | 0 | 22 | 100.0 (85.2, 100.0) | 62.9 (44.9, 78.5) | 63.9 (46.2, 79.2) | 100.0 (84.6, 100.0) | 0.57 | 62.1 | |
| Multiple daily injections with no other glucose-lowering medication prescription (D) | 16 | 3 | 7 | 32 | 69.6 (47.1, 86.8) | 91.4 (76.9, 98.2) | 84.2 (60.4, 96.6) | 82.1 (66.5, 92.5) | 0.63 | 32.8 | |
| A and C | 23 | 8 | 0 | 27 | 100.0 (85.2, 100.0) | 77.1 (59.9, 89.6) | 74.2 (55.4, 88.1) | 100.0 (87.2, 100.0) | 0.73 | 53.4 | |
| A and D | 16 | 2 | 7 | 33 | 69.6 (47.1, 86.8) | 94.3 (80.8, 99.3) | 88.9 (65.3, 98.6) | 82.5 (67.2, 92.7) | 0.66 | 31.0 | |
| B and C | 21 | 5 | 2 | 30 | 91.3 (72.0, 98.9) | 85.7 (69.7, 95.2) | 80.8 (60.6, 93.4) | 93.8 (79.2, 99.2) | 0.75 | 44.8 | |
| B and D | 15 | 2 | 8 | 33 | 65.2 (42.7, 83.6) | 94.3 (80.8, 99.3) | 88.2 (63.6, 98.5) | 80.5 (65.1, 91.2) | 0.62 | 29.3 | |
| A or C | 23 | 14 | 0 | 21 | 100.0 (85.2, 100.0) | 60.0 (42.1, 76.1) | 62.2 (44.8, 77.5) | 100.0 (83.9, 100.0) | 0.54 | 63.8 | |
| A or D | 23 | 10 | 0 | 25 | 100.0 (85.2, 100.0) | 71.4 (53.7, 85.4) | 69.7 (51.3, 84.4) | 100.0 (86.3, 100.0) | 0.66 | 56.9 | |
| B or C | 23 | 13 | 0 | 22 | 100.0 (85.2, 100.0) | 62.9 (44.9, 78.5) | 63.9 (46.2, 79.2) | 100.0 (84.6, 100.0) | 0.57 | 62.1 | |
| B or D | 22 | 6 | 1 | 29 | 95.7 (78.1, 99.9) | 82.9 (66.4, 93.4) | 78.6 (59.0, 91.7) | 96.7 (82.8, 99.9) | 0.76 | 48.3 | |
| Age 20–39 years | |||||||||||
| Ratio of type 1 to type 2 codes ≥ 0.5 (A) | 21 | 53 | 5 | 700 | 80.8 (60.6, 93.4) | 93.0 (90.9, 94.7) | 28.4 (18.5, 40.1) | 99.3 (98.4, 99.8) | 0.39 | 9.5 | 3.3 |
| Ratio of type 1 to type 2 codes ≥ 4 (B) | 19 | 16 | 7 | 737 | 73.1 (52.2, 88.4) | 97.9 (96.6, 98.8) | 54.3 (36.6, 71.2) | 99.1 (98.1, 99.6) | 0.61 | 4.5 | |
| At least 1 insulin prescription within 90 days (C) | 25 | 80 | 1 | 673 | 96.2 (80.4, 99.9) | 89.4 (87.0, 91.5) | 23.8 (16.0, 33.1) | 99.9 (99.2, 100.0) | 0.35 | 13.5 | |
| Multiple daily injections with no other glucose-lowering medication prescription (D) | 13 | 3 | 13 | 750 | 50.0 (29.9, 70.1) | 99.6 (98.8, 99.9) | 81.3 (54.4, 96.0) | 98.3 (97.1, 99.1) | 0.61 | 2.1 | |
| A and C | 20 | 23 | 6 | 730 | 76.9 (56.4, 91.0) | 96.9 (95.5, 98.1) | 46.5 (31.2, 62.3) | 99.2 (98.2, 99.7) | 0.56 | 5.5 | |
| A and D | 10 | 1 | 16 | 752 | 38.5 (20.2, 59.4) | 99.9 (99.3, 100.0) | 90.9 (58.7, 99.8) | 97.9 (96.6, 98.8) | 0.53 | 1.4 | |
| B and C | 18 | 8 | 8 | 745 | 69.2 (48.2, 85.7) | 98.9 (97.9, 99.5) | 69.2 (48.2, 85.7) | 98.9 (97.9, 99.5) | 0.68 | 3.3 | |
| B and D | 10 | 1 | 16 | 752 | 38.5 (20.2, 59.4) | 99.9 (99.3, 100.0) | 90.9 (58.7, 99.8) | 97.9 (96.6, 98.8) | 0.53 | 1.4 | |
| A or C | 26 | 110 | 0 | 643 | 100.0 (86.8, 100.0) | 85.4 (82.7, 87.8) | 19.1 (12.9, 26.7) | 100.0 (99.4, 100.0) | 0.28 | 17.5 | |
| A or D | 24 | 55 | 2 | 698 | 92.3 (74.9, 99.1) | 92.7 (90.6, 94.5) | 30.4 (20.5, 41.8) | 99.7 (99.0, 100.0) | 0.43 | 10.1 | |
| B or C | 26 | 88 | 0 | 665 | 100.0 (86.8, 100.0) | 88.3 (85.8, 90.5) | 22.8 (15.5, 31.6) | 100.0 (99.4, 100.0) | 0.34 | 14.6 | |
| B or D | 22 | 18 | 4 | 735 | 84.6 (65.1, 95.6) | 97.6 (96.2, 98.6) | 55.0 (38.5, 70.7) | 99.5 (98.6, 99.9) | 0.65 | 5.1 | |
| Age ≥ 40 years | |||||||||||
| Ratio of type 1 to type 2 codes ≥ 0.5 (A) | 6 | 35 | 5 | 9313 | 54.5 (23.4, 83.3) | 99.6 (99.5, 99.7) | 14.6 (5.6, 29.2) | 99.9 (99.9, 100.0) | 0.23 | 0.4 | 0.1 |
| Ratio of type 1 to type 2 codes ≥ 4 (B) | 3 | 11 | 8 | 9337 | 27.3 (6.0, 61.0) | 99.9 (99.8, 99.9) | 21.4 (4.7, 50.8) | 99.9 (99.8, 100.0) | 0.24 | 0.1 | |
| At least 1 insulin prescription within 90 days (C) | 10 | 522 | 1 | 8826 | 90.9 (58.7, 99.8) | 94.4 (93.9, 94.9) | 1.9 (0.9, 3.4) | 100.0 (99.9, 100.0) | 0.03 | 5.7 | |
| Multiple daily injections with no other glucose-lowering medication prescription (D) | 3 | 3 | 8 | 9345 | 27.3 (6.0, 61.0) | 100.0 (99.9, 100.0) | 50.0 (11.8, 88.2) | 99.9 (99.8, 100.0) | 0.35 | 0.1 | |
| A and C | 6 | 21 | 5 | 9327 | 54.5 (23.4, 83.3) | 99.8 (99.7, 99.9) | 22.2 (8.6, 42.3) | 99.9 (99.9, 100.0) | 0.31 | 0.3 | |
| A and D | 2 | 2 | 9 | 9346 | 18.2 (2.3, 51.8) | 100.0 (99.9, 100.0) | 50.0 (6.8, 93.2) | 99.9 (99.8, 100.0) | 0.27 | 0.0 | |
| B and C | 3 | 6 | 8 | 9342 | 27.3 (6.0, 61.0) | 99.9 (99.9, 100.0) | 33.3 (7.5, 70.1) | 99.9 (99.8, 100.0) | 0.30 | 0.1 | |
| B and D | 0 | 1 | 11 | 9347 | 0.0 (0.0, 28.5) | 100.0 (99.9, 100.0) | Undefined | 99.9 (99.8, 99.9) | 0.00 | 0.0 | |
| A or C | 10 | 536 | 1 | 8812 | 90.9 (58.7, 99.8) | 94.3 (93.8, 94.7) | 1.8 (0.9, 3.3) | 100.0 (99.9, 100.0) | 0.03 | 5.8 | |
| A or D | 7 | 36 | 4 | 9312 | 63.6 (30.8, 89.1) | 99.6 (99.5, 99.7) | 16.3 (6.8, 30.7) | 100.0 (99.9, 100.0) | 0.26 | 0.5 | |
| B or C | 10 | 527 | 1 | 8821 | 90.9 (58.7, 99.8) | 94.4 (93.9, 94.8) | 1.9 (0.9, 3.4) | 100.0 (99.9, 100.0) | 0.03 | 5.7 | |
| B or D | 6 | 13 | 5 | 9335 | 54.5 (23.4, 83.3) | 99.9 (99.8, 99.9) | 31.6 (12.6, 56.6) | 99.9 (99.9, 100.0) | 0.40 | 0.2 | |
Abbreviations: TP true positive, FP false positive, FN false negative, TN true negative
If there were no true positive cases identified, the positive predictive was indicated as “undefined”
See Supplementary Table 5 (Additional File 1) for algorithms using renal function criteria
Fig. 3Sensitivity and positive predictive value of the 8 combination algorithms for classifying type 1 diabetes in the derivation cohort by age at diagnosis.* We paired single algorithms using “and” to maximize positive predictive value (panels a–d) and “or” to maximize sensitivity (panels e–h). See Fig. 2 for algorithm descriptions
*smoothed using 15-year moving averages
Test characteristics of the high sensitivity, high positive predictive value (PPV), and balanced algorithms for classifying type 1 diabetes compared to the reference standard in the validation cohort, stratified by age at diagnosis. Sensitivity, specificity, PPV and negative predictive value (NPV) are percentages with 95% confidence intervals. Cohen’s kappa coefficient represents agreement after agreement due to chance is removed (1.0 indicates perfect agreement) [31]. The “Type 1 Proportion” columns refer to the percentage of people in the cohort with diabetes classified as type 1 using each algorithm (“Calculated”) and the reference standard (“True”)
| Algorithm | TP | FP | FN | TN | Sensitivity | Specificity | PPV | NPV | Kappa | Type 1 Proportion (%) | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Calculated | True | ||||||||||
| High Sensitivity for Type 1: ratio of type 1 to type 2 codes ≥ 4, or at least 1 insulin prescription within 90 days | |||||||||||
| All Ages | 41 | 280 | 2 | 4778 | 95.3 (84.2, 99.4) | 94.5 (93.8, 95.1) | 12.8 (9.3, 16.9) | 100.0 (99.8, 100.0) | 0.21 | 6.3 | 0.8 |
| Age < 20 years | 14 | 6 | 0 | 21 | 100.0 (76.8, 100.0) | 77.8 (57.7, 91.4) | 70.0 (45.7, 88.1) | 100.0 (83.9, 100.0) | 0.71 | 48.8 | 34.1 |
| Age 20–39 years | 19 | 41 | 2 | 300 | 90.5 (69.6, 98.8) | 88.0 (84.0, 91.2) | 31.7 (20.3, 45.0) | 99.3 (97.6, 99.9) | 0.42 | 16.6 | 5.8 |
| Age ≥ 40 years | 8 | 233 | 0 | 4457 | 100.0 (63.1, 100.0) | 95.0 (94.4, 95.6) | 3.3 (1.4, 6.4) | 100.0 (99.9, 100.0) | 0.06 | 5.1 | 0.2 |
| High PPV for Type 1: ratio of type 1 to type 2 codes ≥ 4, and multiple daily injections* with no other glucose-lowering medication prescription | |||||||||||
| All Ages | 16 | 0 | 27 | 5058 | 37.2 (23.0, 53.3) | 100.0 (99.9, 100.0) | 100.0 (79.4, 100.0) | 99.5 (99.2, 99.6) | 0.54 | 0.3 | 0.8 |
| Age < 20 years | 8 | 0 | 6 | 27 | 57.1 (28.9, 82.3) | 100.0 (87.2, 100.0) | 100.0 (63.1, 100.0) | 81.8 (64.5, 93.0) | 0.64 | 19.5 | 34.1 |
| Age 20–39 years | 6 | 0 | 15 | 341 | 28.6 (11.3, 52.2) | 100.0 (98.9, 100.0) | 100.0 (54.1, 100.0) | 95.8 (93.1, 97.6) | 0.43 | 1.7 | 5.8 |
| Age ≥ 40 years | 2 | 0 | 6 | 4690 | 25.0 (3.2, 65.1) | 100.0 (99.9, 100.0) | 100.0 (15.8, 100.0) | 99.9 (99.7, 100.0) | 0.40 | 0.0 | 0.2 |
| Optimized: ratio of type 1 to type 2 codes ≥ 4, and at least 1 insulin prescription within 90 days | |||||||||||
| All Ages | 28 | 9 | 15 | 5049 | 65.1 (49.1, 79.0) | 99.8 (99.7, 99.9) | 75.7 (58.8, 88.2) | 99.7 (99.5, 99.8) | 0.70 | 0.7 | 0.8 |
| Age < 20 years | 12 | 0 | 2 | 27 | 85.7 (57.2, 98.2) | 100.0 (87.2, 100.0) | 100.0 (73.5, 100.0) | 93.1 (77.2, 99.2) | 0.89 | 29.3 | 34.1 |
| Age 20–39 years | 12 | 7 | 9 | 334 | 57.1 (34.0, 78.2) | 97.9 (95.8, 99.2) | 63.2 (38.4, 83.7) | 97.4 (95.1, 98.8) | 0.58 | 5.2 | 5.8 |
| Age ≥ 40 years | 4 | 2 | 4 | 4688 | 50.0 (15.7, 84.3) | 100.0 (99.8, 100.0) | 66.7 (22.3, 95.7) | 99.9 (99.8, 100.0) | 0.57 | 0.1 | 0.2 |
Abbreviations: TP true positive, FP false positive, FN false negative, TN true negative
*Multiple daily injections: defined as prescriptions for long-acting and short-acting insulin initiated in the same month
See Appendix Table 6 for algorithms using renal function criteria
Fig. 4Proportion of all diabetes cases classified as type 1 by age at diagnosis in the validation cohort.* This proportion is calculated as the percentage of people in the cohort with diabetes classified as type 1 using the reference standard (dashed line), as well as high sensitivity for type 1, optimized, and high positive predictive value for type 1 algorithms (see Table 4 for descriptions)
*smoothed using 15-year moving averages