rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records
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.
- Link
- https://doi.org/10.64898/2026.11.19.26367722
- Found by
- Crossref
- Authors
- Marzieh Mussavi Rizi, Vladyslav Shein, Abel Torres-Espin
- Organizations
- University of Waterloo
- Categories
- dataset
- Published
- 2026-11-23
- Last seen by the radar
- 2026-11-25
- Citations
- 0
- Radar score
- 26.75 / 100 (how it is scored)
- Why it scored so
- Matched: dataset; Primary record: Crossref