Answers are grounded in this paper and cite their sources.
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.
No takes yet. Share an insight, caveat, or question.
Rizi et al. (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: