Related Experiment Video
Updated: Jul 7, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Exploring the reliability of inpatient EMR algorithms for diabetes identification
Seungwon Lee1,2, Elliot A Martin3,2, Jie Pan3,4
1Community Health Sciences, University of Calgary Cumming School of Medicine, Calgary, Alberta, Canada seungwon.lee@ucalgary.ca.
Developing electronic medical record (EMR) algorithms for inpatient diabetes identification can overcome administrative data lags. Free-text data algorithms show performance comparable or superior to ICD-coded methods, improving timely care delivery.
Area of Science:
- Health Informatics
- Clinical Data Science
- Diabetes Research
Background:
- Accurate, real-time identification of medical conditions in inpatients is vital for health systems.
- Current comorbidity algorithms face delays due to administrative data integration.
- Electronic Medical Record (EMR) data offers a promising alternative for timely condition phenotyping.
Purpose of the Study:
- To develop and evaluate EMR data-based algorithms for inpatient diabetes phenotyping.
- To compare the performance of different EMR data sources for diabetes identification.
- To assess the utility of free-text data in improving diabetes case identification.
Main Methods:
- A chart review of 3040 individuals, with 583 having diabetes, served as the gold standard.
- EMR data, including laboratory results, medications, and free-text notes, were used to develop five distinct diabetes algorithms.
- Algorithm performance was evaluated based on sensitivity (SN) and positive predictive value (PPV).
Main Results:
- The 'all document types' algorithm achieved high performance: SN 0.95, specificity (SP) 0.98, PPV 0.94, and negative predictive value (NPV) 0.99.
- The medication and laboratory algorithm demonstrated strong performance with SN 0.90, SP 0.95, PPV 0.80, and NPV 0.97.
- The ICD-coded data algorithm showed SN 0.84, SP 0.98, PPV 0.93, and NPV 0.96.
Conclusions:
- EMR-based diabetes algorithms, particularly those utilizing free-text data, can achieve performance comparable or superior to traditional ICD-coded methods.
- These algorithms can supplement existing methods, offering a more timely approach to inpatient case identification.
- Inpatient EMR-based algorithms are crucial for efficient resource planning and timely care delivery.
Related Concept Videos
Documentation of Nursing Diagnosis
In some settings, data-driven computerized decision support systems are in place, allowing for more accurate nursing diagnoses. The database within one of these systems includes diagnostic labels defining characteristics, activities, and indicators for nursing. A nurse enters...
Methods of Documentation VII: EMR
Errors occurring during blood pressure monitoring
Several factors...
Diabetes: Symptoms, Diagnosis, and Complications
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...

