---
title: "rendehR: cohort-first pipeline to harmonize multi-source EHRs"
id: "medrxiv-23-rendehr-a-cohort-first-provenance-aware-agentic-ready-pipeline-for-harmonizing"
canonical_url: "https://medichelpline.com/clinical-feed/medrxiv-23-rendehr-a-cohort-first-provenance-aware-agentic-ready-pipeline-for-harmonizing"
content_type: "clinical_feed_article"
specialty: "General"
source_name: "medRxiv (Clinical Preprints)"
source_url: "https://www.medrxiv.org/content/10.64898/2026.11.19.26367722v1?rss=1"
published_at: "2026-11-23T12:00:00.000Z"
evidence_level: "Verified Feed"
license: "CC-BY-NC-4.0 / Informational Use"
---
# rendehR: cohort-first pipeline to harmonize multi-source EHRs
## Provenance & Clinical Metadata
- **Canonical URL:** https://medichelpline.com/clinical-feed/medrxiv-23-rendehr-a-cohort-first-provenance-aware-agentic-ready-pipeline-for-harmonizing
- **Specialty:** [General](https://medichelpline.com/clinical-feed/general.md)
- **Primary Source:** medRxiv (Clinical Preprints)
- **Source URL:** [Original Journal Publication](https://www.medrxiv.org/content/10.64898/2026.11.19.26367722v1?rss=1)
- **Published At:** 2026-11-23T12:00:00.000Z
- **Evidence Rating:** Verified Feed
## Executive GIST (TL;DR)
- rendehR is an R package and computational pipeline designed for cohort-centered extraction and harmonization of multi-source **EHR** data. It treats cohort definition as an explicit, executable component of dataset construction. - Cohorts may be defined by diagnosis codes, identifiers, R callbacks, or source-specific SQL; after selection, linked source tables are restricted to the selected population and can be written as cohort-specific Parquet datasets or loaded into a persistent database. - Clinical concepts are created with source-aware mappings, generated or curated SQL and harmonized into flat, time-series, and duration analytical representations; configuration and provenance metadata are retained to support inspection and traceability. - The package includes interactive R assistant wizards for workflow configuration, a Shiny application for patient-level visualization, three agent skills for AI-assisted workflows, and an MCP server exposing nine read-only tools for AI-assisted configuration and concept discovery. - Current implementation supports **MIMIC-III**, **MIMIC-IV**, and **eICU-CRD**; demo workflows use PhysioNet demo datasets. Full source data are not redistributed in the package and must be obtained under PhysioNet access rules. - Demonstration used a reference cohort of spinal cord injury and disease (SCID). Using that cohort, rendehR identified and expanded qualifying admissions and ICU stays across the three databases (numbers reported in the source were preserved). - Quantitative extraction results reported: qualifying hospital admissions — MIMIC-III 4,320; MIMIC-IV 39,850; eICU-CRD 2,343. Patient-level extractions expanded those to 5,725; 104,988; and 2,823 hospital admissions, respectively, with associated ICU stays and counts provided in the source. - Applying **Sepsis-3** case identification across the same databases, rendehR identified qualifying ICU stays numbering 34,460 (MIMIC-III), 41,296 (MIMIC-IV), and 47,035 (eICU-CRD). The concept library contains 22 flat, 123 time-series, and 75 duration harmonized concepts. - The authors reported ethical approval from the Office of Research Ethics at the University of Waterloo and declared no competing interests. The work is a medRxiv preprint and has not undergone peer review.
## Clinical Analysis & Structured Key Points
rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records | medRxiv Skip to main content rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records Marzieh Mussavi Rizi , Vladyslav Shein , View ORCID Profile Abel Torres-Espin doi: https://doi.org/10.64898/2026.11.19.26367722 Marzieh Mussavi Rizi University of Waterloo Find this author on Google Scholar Find this author on PubMed Search for this author on this site Vladyslav Shein University of Waterloo Find this author on Google Scholar Find this author on PubMed Search for this author on this site Abel Torres-Espin University of Waterloo Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Abel Torres-Espin For correspondence: abel.torresespin{at}uwaterloo.ca Abstract Info/History Metrics Supplementary material Data/Code Preview PDF 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. Competing Interest Statement The authors have declared no competing interest. Author Declarations I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained. Yes The details of the IRB/oversight body that provided approval or exemption for the research described are given below: Office of research ethics of University of Waterloo gave ethical approval for the analysis in this work. I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals. Yes I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance). Yes I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable. Yes Data Availability Full MIMIC-III, MIMIC-IV, and eICU-CRD data are not redistributed directly in the rendehR package and must be obtained from PhysioNet under the corresponding access requirements. Demo workflows use the publicly available PhysioNet demo datasets. https://physionet.org/ Funder Information Declared Wings for Life, https://ror.org/043zam433 Craig H Neilsen Foundation, https://ror.org/00k0a6x92 Copyright The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license . Back to top Previous Next Posted November 23, 2026. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records Marzieh Mussavi Rizi , Vladyslav Shein , Abel Torres-Espin medRxiv 2026.11.19.26367722; doi: https://doi.org/10.64898/2026.11.19.26367722 Share This Article: Copy Citation Tools rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health records Marzieh Mussavi Rizi , Vladyslav Shein , Abel Torres-Espin medRxiv 2026.11.19.26367722; doi: https://doi.org/10.64898/2026.11.19.26367722 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Areas All Articles Addiction Medicine (644) Allergy and Immunology (934) Anesthesia (355) Cardiovascular Medicine (5069) Dentistry and Oral Medicine (496) Dermatology (435) Emergency Medicine (682) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1708) Epidemiology (16364) Forensic Medicine (37) Gastroenterology (1252) Genetic and Genomic Medicine (7344) Geriatric Medicine (761) Health Economics (1102) Health Informatics (5367) Health Policy (1482) Health Systems and Quality Improvement (1852) Hematology (604) HIV/AIDS (1390) Infectious Diseases (except HIV/AIDS) (16540) Intensive Care and Critical Care Medicine (1211) Medical Education (703) Medical Ethics (157) Nephrology (759) Neurology (7680) Nursing (380) Nutrition (1148) Obstetrics and Gynecology (1312) Occupational and Environmental Health (1047) Oncology (3774) Ophthalmology (1108) Orthopedics (414) Otolaryngology (474) Pain Medicine (510) Palliative Medicine (144) Pathology (728) Pediatrics (1877) Pharmacology and Therapeutics (760) Primary Care Research (794) Psychiatry and Clinical Psychology (6193) Public and Global Health (10057) Radiology and Imaging (2566) Rehabilitation Medicine and Physical Therapy (1541) Respiratory Medicine (1282) Rheumatology (667) Sexual and Reproductive Health (816) Sports Medicine (603) Surgery (809) Toxicology (109) Transplantation (322) Urology (310)
## Related Clinical Research

- [Cortical contact and healing after palmar open‑wedge osteotomy without bone graft](https://medichelpline.com/clinical-feed/plos-one-10-healing-and-secondary-displacement-after-palmar-open-wedge-osteotomy-for-distal.md)
- [Medicare estimates $9.2 billion savings from third round of negotiated drug prices](https://medichelpline.com/clinical-feed/stat-news-0-stat-medicare-estimates-9-2-billion-in-savings-from-third-round-of-negotiated.md)
- [Preventive Services Task Force Returns; Votes Held Privately After Yearlong Hiatus](https://medichelpline.com/clinical-feed/stat-news-2-at-first-preventive-services-panel-meeting-in-more-than-a-year-votes-are-cast.md)
- [Humidity Modifies Heatwave-Related Mental Health ED Visits in Gulf States Medicaid Population](https://medichelpline.com/clinical-feed/medrxiv-1-temporal-and-geographic-variation-in-humidity-as-an-effect-modifier-of-the.md)
- [Partitioning lifespan inequality: a hierarchical variance method applied to global healthy longevi](https://medichelpline.com/clinical-feed/medrxiv-18-partitioning-lifespan-inequality-in-hierarchical-study-designs-with-an.md)

## Navigation
- [← Back to General Feed](https://medichelpline.com/clinical-feed/general.md)
- [← All Clinical Specialties](https://medichelpline.com/clinical-feed.md)
## Medical & Regulatory Disclaimer

> [!CAUTION]
> MedicHelpline content is structured for research, educational, and professional discovery purposes. It does not constitute individual medical advice, clinical diagnosis, or treatment recommendations.
> Always verify dosing, contraindications, and regulatory alerts against official product labeling and primary regulatory sources before clinical decision-making.