TempoQL: A Readable, Precise, and Portable Query System for Electronic Health Record Data

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ma, Ziyong, Boyce, Richard D., Perer, Adam, Sivaraman, Venkatesh
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917076267958272
author Ma, Ziyong
Boyce, Richard D.
Perer, Adam
Sivaraman, Venkatesh
author_facet Ma, Ziyong
Boyce, Richard D.
Perer, Adam
Sivaraman, Venkatesh
contents Electronic health record (EHR) data is an essential data source for machine learning for health, but researchers and clinicians face steep barriers in extracting and validating EHR data for modeling. Existing tools incur trade-offs between expressivity and usability and are typically specialized to a single data standard, making it difficult to write temporal queries that are ready for modern model-building pipelines and adaptable to new datasets. This paper introduces TempoQL, a Python-based toolkit designed to lower these barriers. TempoQL provides a simple, human-readable language for temporal queries; support for multiple EHR data standards, including OMOP, MEDS, and others; and an interactive notebook-based query interface with optional large language model (LLM) authoring assistance. Through a performance evaluation and two use cases on different datasets, we demonstrate that TempoQL simplifies the creation of cohorts for machine learning while maintaining precision, speed, and reproducibility.
format Preprint
id arxiv_https___arxiv_org_abs_2511_09337
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TempoQL: A Readable, Precise, and Portable Query System for Electronic Health Record Data
Ma, Ziyong
Boyce, Richard D.
Perer, Adam
Sivaraman, Venkatesh
Human-Computer Interaction
Databases
Electronic health record (EHR) data is an essential data source for machine learning for health, but researchers and clinicians face steep barriers in extracting and validating EHR data for modeling. Existing tools incur trade-offs between expressivity and usability and are typically specialized to a single data standard, making it difficult to write temporal queries that are ready for modern model-building pipelines and adaptable to new datasets. This paper introduces TempoQL, a Python-based toolkit designed to lower these barriers. TempoQL provides a simple, human-readable language for temporal queries; support for multiple EHR data standards, including OMOP, MEDS, and others; and an interactive notebook-based query interface with optional large language model (LLM) authoring assistance. Through a performance evaluation and two use cases on different datasets, we demonstrate that TempoQL simplifies the creation of cohorts for machine learning while maintaining precision, speed, and reproducibility.
title TempoQL: A Readable, Precise, and Portable Query System for Electronic Health Record Data
topic Human-Computer Interaction
Databases
url https://arxiv.org/abs/2511.09337