Related Experiment Video
Updated: Mar 13, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Weighting Primary Care Patient Panel Size: A Novel Electronic Health Record-Derived Measure Using Machine Learning
Alvin Rajkomar1, Joanne Wing Lan Yim, Kevin Grumbach
1Department of Medicine, University of California, San Francisco, San Francisco, CA, United States. alvin.rajkomar@ucsf.edu.
Background:
Characterizing patient complexity using granular electronic health record (EHR) data regularly available to health systems is necessary to optimize primary care processes at scale.
Objective:
To characterize the utilization patterns of primary care patients and create weighted panel sizes for providers based on work required to care for patients with different patterns.
Methods:
We used EHR data over a 2-year period from patients empaneled to primary care clinicians in a single academic health system, including their in-person encounter history and virtual encounters such as telephonic visits, electronic messaging, and care coordination with specialists. Using a combination of decision rules and k-means clustering, we identified clusters of patients with similar health care system activity. Phenotypes with basic demographic information were used to predict future health care utilization using log-linear models. Phenotypes were also used to calculate weighted panel sizes.
Results:
We identified 7 primary care utilization phenotypes, which were characterized by various combinations of primary care and specialty usage and were deemed clinically distinct by primary care physicians. These phenotypes, combined with age-sex and primary payer variables, predicted future primary care utilization with R2 of .394 and were used to create weighted panel sizes.
Conclusions:
Individual patients' health care utilization may be useful for classifying patients by primary care work effort and for predicting future primary care usage.
Related Concept Videos
Methods of Documentation VII: EMR
Integrated Healthcare System
Patient-centered Care
Health Information Technology and Healthcare Information System
Health Information Technology, commonly called HIT, integrates advanced information systems and technology in healthcare settings. Its primary functions include:
Methods of Documentation II: POMR
Methods of Documentation VI: Case Management Model
For example, a patient with a chronic...

