---
title: "TabMedQA: Generating Guideline-Grounded EHR Question–Answer Datasets for Early Clinical Decisions"
id: "medrxiv-14-tabmedqa-from-structured-data-to-question-answer-datasets-in-early-clinical"
canonical_url: "https://medichelpline.com/clinical-feed/medrxiv-14-tabmedqa-from-structured-data-to-question-answer-datasets-in-early-clinical"
content_type: "clinical_feed_article"
specialty: "General"
source_name: "medRxiv (Clinical Preprints)"
source_url: "https://www.medrxiv.org/content/10.64898/2026.08.19.26360779v1?rss=1"
published_at: "2026-08-21T12:00:00.000Z"
evidence_level: "Verified Feed"
license: "CC-BY-NC-4.0 / Informational Use"
---
# TabMedQA: Generating Guideline-Grounded EHR Question–Answer Datasets for Early Clinical Decisions
## Provenance & Clinical Metadata
- **Canonical URL:** https://medichelpline.com/clinical-feed/medrxiv-14-tabmedqa-from-structured-data-to-question-answer-datasets-in-early-clinical
- **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.08.19.26360779v1?rss=1)
- **Published At:** 2026-08-21T12:00:00.000Z
- **Evidence Rating:** Verified Feed
## Executive GIST (TL;DR)
- The authors introduce **TabMedQA**, a framework that synthesizes question–answer (QA) collections to emulate how General Practitioners document early-stage clinical decisions using structured patient data from electronic health records (**EHRs**). - TabMedQA uses instruction-tuned **LLMs** to generate full encounter notes composed of a guideline-grounded justification and a follow-up recommendation derived from structured inputs. - The framework explicitly grounds generation in disease-specific clinical guidelines so that justifications and recommendations align with accepted guidance. - TabMedQA supports Retrieval Augmented Generation (**RAG**) evaluation to simulate how clinicians might consult prior patient encounters to inform new consultations. - The authors demonstrate TabMedQA on prostate cancer by applying the method to the publicly available **PI-CAI** collection and releasing the resulting PI-CAI QA collection. - The repository with generated resources, templates, and the TabMedQA code is publicly available on GitHub (link provided in the source). - The work is presented as the first open framework for creating guideline-grounded, EHR-based QA collections that enable evaluation of LLM-produced clinical encounter notes, linking decision-making accuracy with encounter quality in general practice. - Ethical and data use statements note that the research used retrospectively open-access data from the PI-CAI repository, with prior IRB approvals for the underlying data and that all produced data are available in the linked GitHub repository.
## Clinical Analysis & Structured Key Points
TabMedQA: From Structured Data to Question-Answer Datasets in Early Clinical Decision-Making | medRxiv Skip to main content TabMedQA: From Structured Data to Question-Answer Datasets in Early Clinical Decision-Making Gabriel Iturra-Bocaz , Petra Galuscakova , Sol Vedde , View ORCID Profile Alvaro Fernandez-Quilez doi: https://doi.org/10.64898/2026.08.19.26360779 Gabriel Iturra-Bocaz 1 University of Stavanger; Find this author on Google Scholar Find this author on PubMed Search for this author on this site Petra Galuscakova 1 University of Stavanger; Find this author on Google Scholar Find this author on PubMed Search for this author on this site Sol Vedde 2 Stavanger university hospital; Find this author on Google Scholar Find this author on PubMed Search for this author on this site Alvaro Fernandez-Quilez 3 Stavanger University Hospital Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Alvaro Fernandez-Quilez For correspondence: alvaro.fquilez{at}gmail.com Abstract Info/History Metrics Data/Code Preview PDF Abstract The rising adoption of Large Language Models (LLMs) and Retrieval Augmented Generation (RAG) in clinical general practice demands datasets that capture realistic early-stage clinical decision-making, where experts must decide on follow-up actions based on sparse, structured patient data. Existing medical Question-Answering (QA) resources primarily address post-diagnostic or specialist settings and rarely reflect how General Practitioners (GPs) document and justify early decisions based on clinical observations from Electronic Health Records (EHRs) and grounded on clinical guidelines. We present TabMedQA, a framework for synthesizing QA collections that emulate how GPs formulate and document decisions in encounter notes during early patient assessments. TabMedQA leverages instruction-tuned LLMs, guided by disease-specific clinical guidelines, to generate full encounter notes composed of a guideline-grounded justification and a corresponding follow-up recommendation directly from structured EHR inputs. The framework further supports RAG-based evaluation, simulating how GPs might consult previous patient encounters to inform new consultations. We demonstrate the application and resulting resource use of TabMedQA on prostate cancer using the publicly available PI-CAI collection and release the resulting PI-CAI QA collection, resource generation templates, and TabMedQA code. To the best of our knowledge, TabMedQA provides the first open framework for creating guideline-grounded, EHR-based QA collections that enable the generation and holistic evaluation of LLM-produced clinical encounter notes, bridging decision-making accuracy with clinical encounter quality in general practice. 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: The data was available from PICAI repository. This research study was conducted using retrospectively open-access human subject data (Saha et al., 2024). The use was approved by the institutional review board of all PI-CAI centers. 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 All data produced are available on the GitHub repository linked in the article https://github.com/iai-group/cl4health-tabmedqa/ Copyright The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. All rights reserved. No reuse allowed without permission. Back to top Previous Next Posted August 21, 2026. Download PDF 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 TabMedQA: From Structured Data to Question-Answer Datasets in Early Clinical Decision-Making 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 TabMedQA: From Structured Data to Question-Answer Datasets in Early Clinical Decision-Making Gabriel Iturra-Bocaz , Petra Galuscakova , Sol Vedde , Alvaro Fernandez-Quilez medRxiv 2026.08.19.26360779; doi: https://doi.org/10.64898/2026.08.19.26360779 Share This Article: Copy Citation Tools TabMedQA: From Structured Data to Question-Answer Datasets in Early Clinical Decision-Making Gabriel Iturra-Bocaz , Petra Galuscakova , Sol Vedde , Alvaro Fernandez-Quilez medRxiv 2026.08.19.26360779; doi: https://doi.org/10.64898/2026.08.19.26360779 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 (607) Allergy and Immunology (891) Anesthesia (324) Cardiovascular Medicine (4735) Dentistry and Oral Medicine (473) Dermatology (404) Emergency Medicine (637) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1606) Epidemiology (15761) Forensic Medicine (32) Gastroenterology (1193) Genetic and Genomic Medicine (6942) Geriatric Medicine (723) Health Economics (1048) Health Informatics (4936) Health Policy (1417) Health Systems and Quality Improvement (1728) Hematology (574) HIV/AIDS (1322) Infectious Diseases (except HIV/AIDS) (16215) Intensive Care and Critical Care Medicine (1155) Medical Education (657) Medical Ethics (150) Nephrology (714) Neurology (7126) Nursing (359) Nutrition (1066) Obstetrics and Gynecology (1217) Occupational and Environmental Health (992) Oncology (3557) Ophthalmology (1030) Orthopedics (387) Otolaryngology (442) Pain Medicine (463) Palliative Medicine (138) Pathology (702) Pediatrics (1764) Pharmacology and Therapeutics (729) Primary Care Research (754) Psychiatry and Clinical Psychology (5790) Public and Global Health (9637) Radiology and Imaging (2364) Rehabilitation Medicine and Physical Therapy (1418) Respiratory Medicine (1234) Rheumatology (631) Sexual and Reproductive Health (761) Sports Medicine (571) Surgery (756) Toxicology (106) Transplantation (300) Urology (285)
## Related Clinical Research

- [Adjusting unmet need for contraception by including husband’s virility in the Revised algorithm](https://medichelpline.com/clinical-feed/plos-one-2-incorporating-husband-s-influence-in-estimating-unmet-need-for-contraception.md)
- [Service Provider Competence, Motivation, and Resources as Determinants of Quality Healthcare at Ma](https://medichelpline.com/clinical-feed/medrxiv-6-service-provider-competence-motivation-and-resource-availability-as.md)
- [Global adoption of openEHR Clinical Data Repositories: vendor and community survey findings](https://medichelpline.com/clinical-feed/medrxiv-2-global-adoption-of-openehr-clinical-data-repositories-a-vendor-and-community.md)
- [Handshake in Medicine: Why Clinicians Should Reconsider Shaking Hands](https://medichelpline.com/clinical-feed/stat-news-4-opinion-medicine-stopped-shaking-hands-we-should-start-again.md)
- [CMS Medicaid rule on pediatric transgender care could set precedent to restrict drug coverage](https://medichelpline.com/clinical-feed/stat-news-1-stat-medicaid-transgender-care-rule-sets-precedent-that-could-restrict-coverage.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.