Related Experiment Video
Updated: Aug 26, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
An informatics framework to harmonize electronic health record medication data for managed care analytics and
Haowen Hsu1, Gabriel Gazetta2, Chi-Hua Lu1
1Department of Pharmacy Practice, School of Pharmacy and Pharmaceutical Sciences, University at Buffalo, NY.
Background:
Artificial intelligence (AI) applications in managed care pharmacy depend on semantically consistent medication data, yet heterogeneous medication identifiers across real-world electronic health records (EHRs) could undermine analytic fidelity and risk propagating classification errors. To enable transportable, reproducible AI tools, methods for harmonizing disparate medication identifiers (eg, National Drug Code [NDC] and Multum drug synonym ID) to standardized vocabularies are required.
Objective:
To develop and evaluate an informatics framework that harmonizes heterogeneous medication identifiers into standardized ingredient- and pharmacologic-class representations, establishing the semantic integrity required to support transparent, reliable downstream managed care analytics and AI developments.
Methods:
We conducted a retrospective analysis of discharge medication records, excluding health supplements and nonmedicated agents, from EHRs of adults aged 65 years or older who had at least 1 hospitalization between 2020 and 2024 at a tertiary medical center (Buffalo General Medical Center). Heterogeneous identifiers (Multum, NDC, RxCUI) were harmonized using a 2-layered architecture anchored to RxCUI ingredient [IN] concepts and abstracted to Anatomical Therapeutic Chemical (ATC) classification. Deterministic crosswalks were derived from the RxNorm Full Monthly Release and complemented with a validated TriNetX reference file. Unmapped records underwent structured string-based reconciliation through alignment of medication name strings between raw records and reference terminology sources. A pharmacy expert manually validated the string-based reconciliation process and the RxCUI [IN]-to-ATC mapping. Framework feasibility was assessed by calculating mapping success rates and evaluating reconciliation and correction metrics.
Results:
Analysis of 214,080 records revealed significant terminology heterogeneity, with 53.0% Multum Drug Synonym IDs as nonstandardized identifiers requiring string-based reconciliation. Mapping using deterministic crosswalks achieved a 100% initial mapping rate, with 30% to 35% of unique records requiring ATC assignment corrections. While string-based alignment achieved initial match rates of 78.5% and 75.5% for RxCUI [IN] and ATC codes, respectively, reconciliation required corrections for 57.4% of assignments. Primary drivers for corrections included crosswalk omissions for branded formulations, lexical misclassifications, and taxonomic ambiguities that required clinical context for accurate ATC assignment. Examples of taxonomic ambiguities include variations in ATC classification based on indication or route of administration (eg, moxifloxacin may be mapped to J01MA14 or S01AE07).
Conclusions:
This informatics framework establishes the architectural foundation necessary to transform raw EHR medication records into standardized representations at the ingredient and pharmacological levels, providing a critical semantic foundation for transparent, transportable, and reproducible AI applications in managed care.
Related Concept Videos
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:
Issues And Trends In Healthcare Delivery System
Cost Containment
Payment for healthcare services has historically promoted adoption of costly and often unnecessary or inefficient...
Methods of Documentation VII: EMR
Nursing Clinical Information System
A Nursing Clinical Information System (NCIS) is a specialized type of healthcare information system tailored to meet the unique needs of nursing practice. It incorporates the principles of nursing informatics to streamline information management and improve the quality of care delivery.
Critical attributes of NCIS include:
Methods of Documentation VI: Case Management Model
For example, a patient with a chronic illness...
Integrated Healthcare System