title: A novel method for studying the temporal relationship between type 2 diabetes mellitus and cancer using the electronic medical record.
abstract: BACKGROUND
  We developed an algorithm for the identification of patients with type 2 diabetes and ascertainment of the date of diabetes onset for examination of the temporal relationship between diabetes and cancer using data in the electronic medical record (EMR).
  
  
  METHODS
  The Marshfield Clinic EMR was searched for patients who developed type 2 diabetes between January 1, 1995 and December 31, 2009 using a combination of diagnostic codes and laboratory data. Subjects without diabetes were also identified and matched to subjects with diabetes by age, gender, smoking history, residence, and date of diabetes onset/reference date.
  
  
  RESULTS
  The final cohort consisted of 11,236 subjects with and 54,365 subjects without diabetes. Stringent requirements for laboratory values resulted in a decrease in the number of potential subjects by nearly 70%. Mean observation time in the EMR was similar for both groups with 13-14 years before and 5-7 years after the reference date. The two cohorts were largely similar except that BMI and frequency of healthcare encounters were greater in subjects with diabetes.
  
  
  CONCLUSIONS
  The cohort described here will be useful for the examination of the temporal relationship between diabetes and cancer and is unique in that it allows for determination of the date of diabetes onset with reasonable accuracy.
authors.affiliation: Department of Hematology/Oncology, Marshfield Clinic Weston Center, 3501 Cranberry Boulevard, Weston, WI 54476, USA. onitilo.adedayo@marshfieldclinic.org.
authors.forename: Adedayo A
authors.initials: AA
authors.lastname: Onitilo
authors.forename: Rachel V
authors.initials: RV
authors.lastname: Stankowski
authors.forename: Richard L
authors.initials: RL
authors.lastname: Berg
authors.forename: Jessica M
authors.initials: JM
authors.lastname: Engel
authors.forename: Gail M
authors.initials: GM
authors.lastname: Williams
authors.forename: Suhail A
authors.initials: SA
authors.lastname: Doi
mesh_terms: D000328:Adult; D000368:Aged; D000369:Aged, 80 and over; D000465:Algorithms; D015331:Cohort Studies; D015897:Comorbidity; D003924:Diabetes Mellitus, Type 2 / Q000097:blood / Q000150:complications / Q000453:epidemiology*; D057286:Electronic Health Records / Q000706:statistics & numerical data; D005260:Female; D006801:Humans; D008297:Male; D008875:Middle Aged; D009369:Neoplasms / Q000453:epidemiology* / Q000209:etiology; D062706:Prodromal Symptoms; D013997:Time Factors; D014922:Wisconsin / Q000453:epidemiology