Abstract
Both electronic health records and personal health records are typically organized by data type, with medical problems, medications, procedures, and laboratory results chronologically sorted in separate silos. This structure makes it difficult for clinicians to synthesize a coherent view of a patient's specific medical conditions. This paper frames the creation of Problem-Oriented Medical Records (POMRs) as a Knowledge Base Completion (KBC) task, using machine learning to automatically link medications, procedures, and labs to specific diseases. By combining pre-trained medical concept embeddings with EHR co-occurrence features, the authors demonstrate a scalable way to organize patient data that generalizes well, even to previously unseen medical conditions.
Introduction: The Fragmentation of Clinical Data
Electronic Health Records (EHRs) are notoriously difficult to navigate. Currently, these systems organize patient data chronologically and by data type. For instance, if a physician needs to evaluate the management of a patient's atrial fibrillation, they must navigate multiple tabs to find the relevant diagnosis, identify the specific anticoagulant medication, and locate corresponding blood clotting laboratory results. This fragmented view contributes significantly to "click fatigue," physician burnout, and potential medical errors.
The Problem-Oriented Medical Record (POMR) offers an alternative paradigm by grouping all relevant data under the specific medical problem it addresses. However, the manual construction of POMRs—defining which labs, medications, and procedures belong to which problem—is labor-intensive, requiring expert consensus and constant updates to reflect evolving clinical practices.
Methodology: POMR as Knowledge Base Completion
This research proposes automating POMR construction by framing it as a Knowledge Base Completion (KBC) or link prediction problem. In this framework, medical problems, medications, procedures, and laboratory tests are treated as "entities," while the relationships between them (e.g., "treated by," "monitored by") are the "relations" to be predicted.
Core Model and Initialization
The authors utilize DistMult, a neural KBC model that calculates the likelihood of a triplet (e.g., [Diabetes, requires_lab, HbA1c]) using a three-way dot product of learned embeddings. A critical component of the model is the initialization of these embeddings. The study compares two approaches:
- External Embeddings: Initializing with pre-trained medical concept embeddings derived from insurance claims data of 4 million patients (Choi et al., 2016).
- Site-Specific Embeddings: Training embeddings locally using a Skip-gram model on the hospital's own EHR data.
Feature Engineering and OOV Handling
To capture the nuances of local clinical practices, the DistMult scoring function is augmented with engineered features derived from dataset statistics. These include co-occurrence counts (e.g., the frequency with which a problem and medication appear in the same encounter or within a two-week window) and provider specialty statistics.
For local hospital codes that do not appear in the external pre-trained embeddings—referred to as Out-of-Vocabulary (OOV) codes—the authors employ a k-nearest neighbors (k-NN) approach within the site-specific embedding space to impute the necessary initializations.
Datasets and Vocabulary Challenges
The model was developed and tested using a longitudinal EHR dataset comprising 10,000 patients and 1.4 million encounters from a regional health system. To evaluate the model, the authors created a new annotated benchmark. They expanded an initial set of 11 manually defined problems to 32, with emergency medicine physicians providing 1,740 positive and 5,024 negative annotations for candidate triplets.
As shown in the vocabulary statistics above, there is a significant discrepancy between site-specific codes and the external dataset. For example, only 25.8% of site-specific medication codes intersected with the external vocabulary, highlighting the necessity of the k-NN imputation strategy for local deployment.
Key Results and Performance
The evaluation focused on the model's ability to generalize to entirely held-out problems—diseases the model did not see during training. The combined model (External Embeddings + Engineered Features) achieved a Mean Reciprocal Rank (MRR) of 0.590.
Performance metrics for specific data types were robust:
- Labs: Hits@5 of 0.765
- Procedures: Hits@5 of 0.800
- Medications: Hits@5 of 0.630
These results indicate that for a novel disease, the majority of clinically relevant codes appear within the model's top five suggestions. In comparison, a baseline model using standard medical ontologies (such as NDF-RT or CPT hierarchies) performed poorly, with an MRR of only 0.066. This suggests that rule-based ontologies are too brittle to map internal hospital codes or capture implicit clinical relationships found in real-world usage data.
Discussion and Insights
Several key insights emerged from this work:
- The Power of Scale: Pre-trained embeddings from massive external datasets significantly outperformed those trained on the smaller local dataset.
- Beyond Co-occurrence: While co-occurrence features provided a performance boost, they were insufficient on their own. Explicit KBC modeling is required to distinguish clinical relevance from mere statistical correlation.
- Scalability: The model's success on held-out problems suggests it can scale to new conditions simply by defining the relevant diagnosis codes, bypassing the need for exhaustive manual annotation.
Limitations and Future Directions
While promising, the current approach has limitations. It relies on simplistic problem definitions based on diagnosis codes, whereas actual disease phenotypes are more complex. Furthermore, the annotations reflect an emergency medicine perspective; relevance may vary for different specialties. Future work will focus on incorporating patient-level context and conducting clinical evaluations to determine if POMR interfaces effectively reduce clinician cognitive load and time spent on EHR navigation.
Summary updated