EHRchitect: an open-source software tool for medical event sequences data extraction from electronic health records

Kostiantyn Botnar, Justin T. Nguen, Madison G. Farnsworth, George Golovko, Kamil Khanipov

Research output: Contribution to journalArticlepeer-review

Abstract

Background: Electronic Health Records (EHR) analysis is pivotal in advancing medical research. Numerous real-world EHR data providers offer data access through exported datasets. While enabling profound research possibilities, exported EHR data requires quality control and restructuring for meaningful analysis. Challenges arise in medical events (e.g., diagnoses or procedures) sequence analysis, which provides critical insights into conditions, treatments, and outcomes progression. Identifying causal relationships, patterns, and trends requires a more complex approach to data mining and preparation. Methods: This paper introduces EHRchitect – an application written in Python that addresses the quality control challenges by automating dataset transformation, facilitating the creation of a clean, formatted, and optimized MySQL database (DB), and sequential data extraction according to the user's configuration. Results: The tool creates a clean, formatted, and optimized DB, enabling medical event sequence data extraction according to users' study configuration. Event sequences encompass patients’ medical events in specified orders and time intervals. The extracted data are presented as distributed Parquet files, incorporating events, event transitions, patient metadata, and events metadata. The concurrent approach allows effortless scaling for multi-processor systems. Conclusion: EHRchitect streamlines the processing of large EHR datasets for research purposes. It facilitates extracting sequential event-based data, offering a highly flexible framework for configuring event and timeline parameters. The tool delivers temporal characteristics, patient demographics, and event metadata to support comprehensive analysis. The developed tool significantly reduces the time required for dataset acquisition and preparation by automating data quality control and simplifying event extraction.

Original languageEnglish (US)
JournalJournal of Clinical and Translational Science
DOIs
StateAccepted/In press - 2025

ASJC Scopus subject areas

  • General Medicine

Fingerprint

Dive into the research topics of 'EHRchitect: an open-source software tool for medical event sequences data extraction from electronic health records'. Together they form a unique fingerprint.

Cite this