rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records
M. Mussavi Rizi, V. Shein, A. Torres-Espin
Key points
From the paper's conclusion- We developed rendehR, a computational pipeline and R package for cohort-centered extraction and harmonization of multi-source EHR data.
Abstract
Objective: Public electronic health record (EHR) databases differ in schema, identifiers, coding systems, units, and event structure, making disease-specific studies across multiple sources difficult to construct and audit. We developed rendehR, a computational pipeline and R package for cohort-centered extraction and harmonization of multi-source EHR data. Materials and Methods: rendehR treats cohort definition as an explicit executable component of dataset construction. Cohorts can be defined using diagnosis codes, identifiers, R callbacks, or source-specific SQL. After cohort selection, linked source tables are restricted to the selected population and can be retained as cohort-specific Parquet datasets or loaded into a persistent database. Clinical concepts are defined using source-aware mappings, generated, or curated SQL and are harmonized into flat, time-series, and duration representations. Configuration, executable SQL, cohort metadata, concept-origin metadata, and source-level values are retained to support inspection and traceability. In the current version rendehR provides interactive R assistant wizards for workflow configuration, a Shiny application for patient-level data visualization, three agent skills for AI-assisted workflow execution and extension, and an MCP server exposing nine read-only tools for AI-assisted configuration, concept discovery, and cohort exploration. The current implementation supports MIMIC-III, MIMIC-IV, and eICU-CRD. We demonstrate rendehR on a reference cohort of spinal cord injury and disease (SCID). Results: Using the reference cohort, rendehR identified 4,320, 39,850, and 2,343 qualifying hospital admissions in MIMIC-III, MIMIC-IV, and eICU-CRD, respectively. Patient-level extraction expanded these cohorts to 5,725, 104,988, and 2,823 hospital admissions, with 5,983, 17,405, and 3,441 associated ICU stays, respectively. Applying the more complex Sepsis-3 case identification, rendehR identified and extracted 34,460, 41,296, and 47,035 qualifying ICU stays across the same databases, respectively. The current concept library includes 22 flat, 123 time-series, and 75 duration harmonized concepts. Conclusion: rendehR provides a cohort-centered framework for constructing disease-specific datasets from multiple heterogeneous HER sources while preserving the source-specific logic used to define cohorts and clinical concepts. The package supports reusable cohort artifacts, inspectable SQL-based concept construction, harmonized analytical representations, and traceable study-specific data pipelines.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Agentic Pipeline for Large-Scale Clinical Data Queries in Enterprise Electronic Health RecordsmedRxiv · 2026
- Natural-language cohort queries on a hospital data platform: accuracy and provenance in a real-world evaluationmedRxiv · 2026
- CohortCharacteristics: an R package for population characterisation in observational studies using the OMOP common data modelEuropean Journal of Epidemiology · 2026
- A Guided AI Framework for Customizable and Efficient Harmonisation to the OMOP Common Data ModelbioRxiv · 2026
- The EHRNavigator multi-agent system for patient-level clinical question answering over heterogeneous electronic health records.npj health systems · 2026
- TrialCode Agent: LLM-Assisted Clinical Code-Set Construction for Trial EmulationmedRxiv · 2026