title: Automated data extraction--a feasible way to construct patient registers of primary care utilization.
abstract: BACKGROUND
  Electronic medical records (EMRs) enable analysis of health care data by using data mining techniques to build research databases. Though the reliability of the data extraction process is crucial for the credibility of the final analysis, there are few published validations of this process. In this paper we validate the performance of an automated data mining tool on EMR in a primary care setting.
  
  
  METHODS
  The Pygargus Customized eXtraction Program (CXP) was programmed to find and then extract data from patients meeting criteria for type 2 diabetes mellitus (T2DM) at one primary health care clinic (PHC). The ability of CXP to extract relevant cases was assessed by comparing cases extracted by an EMR integrated search engine. The concordance of extracted data with the original EMR source was manually controlled.
  
  
  RESULTS
  Prevalence of T2DM was 4.0%, which correspond well to previous estimations. By searching for drug prescriptions, diagnosis codes, and laboratory values, 38%, 53%, and 91% of relevant cases were found, respectively. The sensitivity of CXP regarding extraction of relevant cases was 100%. The specificity was 99.9% due to 12 non-T2DM cases extracted. The congruity at single-item level was 99.6%. The 13 incorrect data items were all located in the same structural module.
  
  
  CONCLUSIONS
  The CXP is a reliable and accurate data mining tool to extract selective data from EMR.
authors.affiliation: Department of Public Health and Caring Sciences, Uppsala University, Uppsala, Uppsala, Sweden.
authors.forename: Mats
authors.initials: M
authors.lastname: Martinell
authors.forename: Jan
authors.initials: J
authors.lastname: Stålhammar
authors.forename: Johan
authors.initials: J
authors.lastname: Hallqvist
mesh_terms: D001331:Automation; D005240:Feasibility Studies; D006801:Humans; D011320:Primary Health Care / Q000706:statistics & numerical data*; D012042:Registries