rendehR reframes dataset construction by making the cohort definition the first, executable step. Investigators reported that cohorts can be defined by diagnosis codes, identifiers, R callbacks, or source-specific SQL; this explicit cohort-as-artifact design restricts linked source tables to the selected population and reduces downstream noise. The pipeline can emit cohort-specific Parquet datasets or persist the restricted tables in a database for repeated querying. The authors observed that treating cohorts as executable objects improves reproducibility because the same cohort definition can be rerun against updated sources without reworking extraction logic.
The study team described a provenance-aware architecture. Configuration files, executable SQL, cohort metadata, concept-origin metadata, and source-level values are retained as part of each dataset build. This means every harmonized variable can be traced back to the SQL or mapping that produced it. That traceability supports audit and inspection; it lets analysts review source-level logic rather than relying purely on black-box transformations. The authors noted that this design choice intentionally preserves source-specific rules used to define cohorts and clinical concepts rather than discarding them during harmonization.
The current implementation of rendehR supports MIMIC-III, MIMIC-IV, and eICU-CRD. Demo workflows use publicly available PhysioNet demo datasets. Full copies of the underlying clinical databases are not bundled with the package; the source explicitly states that full data must be obtained separately from PhysioNet under the applicable access requirements. The package therefore operates as a harmonization and extraction layer that requires users to provide their own authorized source datasets.
The authors demonstrated rendehR using a reference cohort for spinal cord injury and disease (SCID). Using that cohort, rendehR identified 4,320; 39,850; and 2,343 qualifying hospital admissions in MIMIC-III, MIMIC-IV, and eICU-CRD, respectively. After patient-level extraction, these counts expanded to 5,725; 104,988; and 2,823 hospital admissions, with 5,983; 17,405; and 3,441 associated ICU stays, respectively — numbers reported by the study team. When the authors applied the more complex Sepsis-3 case identification logic, rendehR identified 34,460; 41,296; and 47,035 qualifying ICU stays across MIMIC-III, MIMIC-IV, and eICU-CRD, respectively. The pipeline therefore handled both relatively straightforward cohort selection and a more involved diagnostic algorithm, and the paper provides those extraction counts as demonstration metrics.
rendehR constructs clinical concepts using source-aware mappings and generated or curated SQL. The harmonized outputs are available in three analytical forms: flat variables, time-series, and duration representations. The current concept library reported by the authors includes 22 flat concepts, 123 time-series concepts, and 75 duration concepts. Every constructed concept is associated with metadata that records its origin and the SQL or mapping used; that metadata is retained to facilitate inspection and to enable reproducible reassembly of study-specific datasets.
The package bundles interactive components to support configuration and exploration. Investigators reported an R assistant with wizards to configure workflows, and a Shiny application for patient-level data visualization. They also described three agent skills intended for AI-assisted workflow execution and extension, together with an MCP server that exposes nine read-only tools for AI-assisted configuration, concept discovery, and cohort exploration. The source materials detail these capabilities but do not provide additional benchmarking metrics for the AI skills within the preprint.
The authors declared that the Office of Research Ethics at the University of Waterloo provided ethical approval for the analysis. They also declared no competing interests. The preprint is available under a CC-BY-NC-ND 4.0 license on medRxiv. The source explicitly warns that the article has not been peer reviewed and should not be used to guide clinical practice. Full clinical datasets are not distributed with the package; users must obtain MIMIC-III, MIMIC-IV, and eICU-CRD data separately from PhysioNet under the applicable access requirements.
Limitations and unanswered questions reported in the source
The preprint documents functionality and demonstration metrics but does not include peer review. The authors did not report external validation results beyond the demonstrated SCID cohort extractions, nor did they provide performance benchmarking of the AI agent skills in the manuscript. Implementation currently targets three critical-care-focused databases; the source does not claim broader production-ready support for other EHR sources. Finally, the package does not redistribute full source datasets and therefore depends on users securing appropriate access from PhysioNet before reproducing the workflows described in the paper.