Type 1 and type 2 Diabetes Mellitus
This document describes the Stanford University algorithm to extract individuals with diabetes and the type of diabetes from electronic health records (EHRs). There are two main tasks of this phenotype development: 1) to extract patients with diabetes (gestational diabetes is excluded), and 2) to discriminate between type 1 diabetes mellitus (T1DM) and type 2 diabetes mellitus (T2DM). Instead of identifying all diabetes cases, we aim to reduce the number of false positives in our diabetes cohort.