{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/ram-ehr-retrieval-augmentation-meets-clinical","title":"RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Records","arxiv_id":"2403.00815","date":"2024-02-25","proceeding":null,"authors":["ran Xu","Wenqi Shi","Yue Yu","Yuchen Zhuang","Bowen Jin","May D. Wang","Joyce C. Ho","Carl Yang"],"abstract":"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}.","url_abs":"https://arxiv.org/abs/2403.00815v3","url_pdf":"https://arxiv.org/pdf/2403.00815v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"ram-ehr-retrieval-augmentation-meets-clinical","repo_url":"https://github.com/ritaranx/ram-ehr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.00815","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.00815"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ritaranx/ram-ehr","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ritaranx/RAM-EHR","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":9,"ran_draft_wrong":2,"unverified":2},"by_repo_kind":{"official":{"samples":13,"ran":11,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"0aa551fedb8479cb","entry":"acc_and_f1","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"model_src/trainer.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/model_src/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0aa551fedb8479cb"}},{"code_sha256_prefix":"2fd46a9fc43fa059","entry":"clean_str","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"prompt_gpt_def.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/prompt_gpt_def.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2fd46a9fc43fa059"}},{"code_sha256_prefix":"efe1a86fd9a2468e","entry":"clean_str","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"model_src/utils.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/model_src/utils.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"efe1a86fd9a2468e"}},{"code_sha256_prefix":"3e5d94b331e392fe","entry":"clean_string","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"query_drugbank.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/query_drugbank.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3e5d94b331e392fe"}},{"code_sha256_prefix":"d851686037df7aca","entry":"compute_metrics","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"model_src/trainer.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/model_src/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d851686037df7aca"}},{"code_sha256_prefix":"22baf81366f31381","entry":"compute_metrics_rel","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"model_src/trainer.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/model_src/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"22baf81366f31381"}},{"code_sha256_prefix":"784fab13cc021028","entry":"dispatch_openai_requests","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"prompt_gpt_def.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/prompt_gpt_def.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"784fab13cc021028"}},{"code_sha256_prefix":"8f552d4571c2d406","entry":"get_abstract_text","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"query_pubmed.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/query_pubmed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8f552d4571c2d406"}},{"code_sha256_prefix":"8289c17adc33ed63","entry":"load_keywords","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"query_pubmed.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/query_pubmed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8289c17adc33ed63"}},{"code_sha256_prefix":"dd27c40f658addad","entry":"load_tokenizer","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"model_src/utils.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/model_src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd27c40f658addad"}},{"code_sha256_prefix":"8a2260e6189c2d07","entry":"split_ids","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"query_pubmed.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/query_pubmed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8a2260e6189c2d07"}},{"code_sha256_prefix":"68745016c3fd4fb8","entry":"call_api_async","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"prompt_gpt_def.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/prompt_gpt_def.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"68745016c3fd4fb8"}},{"code_sha256_prefix":"99a40c2d6e975af6","entry":"clean_doc","repo":"ritaranx/RAM-EHR","repo_kind":"official","path":"model_src/utils.py","file_url":"https://github.com/ritaranx/RAM-EHR/blob/HEAD/model_src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"99a40c2d6e975af6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}