Papers › RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Records

RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Records

25 Feb 2024arXiv:2403.00815archive 2025-07-28

ran Xu, Wenqi Shi, Yue Yu, Yuchen Zhuang, Bowen Jin, May D. Wang, Joyce C. Ho, Carl Yang

We present RAM-EHR, a Retrieval AugMentation pipeline to improve clinical predictions on Electronic Health Records (EHRs). RAM-EHR first collects multiple knowledge sources, converts them into text format, and uses dense retrieval to obtain information related to medical concepts. This strategy addresses the difficulties associated with complex names for the concepts. RAM-EHR then augments the local EHR predictive model co-trained with consistency regularization to capture complementary information from patient visits and summarized knowledge. Experiments on two EHR datasets show the efficacy of RAM-EHR over previous knowledge-enhanced baselines (3.4% gain in AUROC and 7.2% gain in AUPR), emphasizing the effectiveness of the summarized knowledge from RAM-EHR for clinical prediction tasks. The code will be published at \url{https://github.com/ritaranx/RAM-EHR}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.00815")

Code

Syntology Ran 11 of 13 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ritaranx/ram-ehr officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 11 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
9ran
2unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ritaranx/RAM-EHR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

acc_and_f1 ritaranx/RAM-EHR/model_src/trainer.py official repository ran MIT (permissive) · 0aa551fedb8479cb · report
clean_str ritaranx/RAM-EHR/prompt_gpt_def.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 2fd46a9fc43fa059 · report
clean_str ritaranx/RAM-EHR/model_src/utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · efe1a86fd9a2468e · report
clean_string ritaranx/RAM-EHR/query_drugbank.py official repository ran fingerprinted MIT (permissive) · 3e5d94b331e392fe · report
compute_metrics ritaranx/RAM-EHR/model_src/trainer.py official repository ran fingerprinted MIT (permissive) · d851686037df7aca · report
compute_metrics_rel ritaranx/RAM-EHR/model_src/trainer.py official repository ran fingerprinted MIT (permissive) · 22baf81366f31381 · report
dispatch_openai_requests ritaranx/RAM-EHR/prompt_gpt_def.py official repository ran MIT (permissive) · 784fab13cc021028 · report
get_abstract_text ritaranx/RAM-EHR/query_pubmed.py official repository ran MIT (permissive) · 8f552d4571c2d406 · report
load_keywords ritaranx/RAM-EHR/query_pubmed.py official repository ran MIT (permissive) · 8289c17adc33ed63 · report
load_tokenizer ritaranx/RAM-EHR/model_src/utils.py official repository ran MIT (permissive) · dd27c40f658addad · report
split_ids ritaranx/RAM-EHR/query_pubmed.py official repository ran MIT (permissive) · 8a2260e6189c2d07 · report
call_api_async ritaranx/RAM-EHR/prompt_gpt_def.py official repository unverified MIT (permissive) · 68745016c3fd4fb8 · report
clean_doc ritaranx/RAM-EHR/model_src/utils.py official repository unverified MIT (permissive) · 99a40c2d6e975af6 · report

Tasks

Retrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections