{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,27]],"date-time":"2026-08-27T23:19:14Z","timestamp":1787872754342,"version":"build-2784847793"},"reference-count":38,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2026,5,30]],"date-time":"2026-05-30T00:00:00Z","timestamp":1780099200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,8,28]],"date-time":"2026-08-28T00:00:00Z","timestamp":1787875200000},"content-version":"vor","delay-in-days":90,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"The Center for AI and Data Science (TAD) at Tel Aviv University"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["npj Digit. Med."],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>The reliability of clinical artificial intelligence (AI) depends on high-quality data, yet Electronic Health Records are often inconsistent with existing scientific knowledge. Current quality assessments are limited: they either focus on syntax or rely on labor-intensive manual rules to capture semantic nuances. To overcome these scalability barriers, we propose Medical Data Pecking, a methodology that adopts software unit testing principles for medical data validation. It introduces Semantic Data Coverage, employing Large Language Models to generate context-aware tests that \u201cpeck\" for inconsistencies between observed data and epidemiological evidence. To demonstrate this methodology, we implemented a reference tool using a Retrieval-Augmented Generation architecture that synthesizes medical literature into executable code. When applied to three datasets, this implementation generated dozens of tests per cohort, identifying discrepancies between observed distributions and epidemiological priors. These discrepancies encompass both genuine data inconsistencies and expected cohort-selection effects. This work provides an initial framework for scalable semantic auditing, shifting assurance from manual rules to the generative and context-sensitive verification required for trustworthy AI.<\/jats:p>","DOI":"10.1038\/s41746-026-02809-w","type":"journal-article","created":{"date-parts":[[2026,6,1]],"date-time":"2026-06-01T05:47:05Z","timestamp":1780292825000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["A generative approach for semantic auditing of electronic health records"],"prefix":"10.1038","volume":"9","author":[{"given":"Irena","family":"Girshovitz","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Atai","family":"Ambus","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Moni","family":"Shahar","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ran","family":"Gilad-Bachrach","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,5,30]]},"reference":[{"key":"2809_CR1","doi-asserted-by":"publisher","first-page":"38","DOI":"10.3414\/ME9132","volume":"48","author":"HU Prokosch","year":"2009","unstructured":"Prokosch, H. U. & Ganslandt, T. Perspectives for medical informatics. Reusing the electronic medical record for clinical research. Methods Inf. Med. 48, 38\u201344 (2009).","journal-title":"Methods Inf. Med."},{"key":"2809_CR2","unstructured":"Seminara, N. et al. Validity of The Health Improvement Network (THIN) for the study of psoriasis 164. https:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/PMC3064479\/."},{"key":"2809_CR3","unstructured":"Coorevits, P. et al. Electronic health records: new opportunities for clinical research 274. https:\/\/onlinelibrary.wiley.com\/doi\/abs\/10.1111\/joim.12119."},{"key":"2809_CR4","doi-asserted-by":"crossref","first-page":"ooad039","DOI":"10.1093\/jamiaopen\/ooac101","volume":"6","author":"W Chen","year":"2023","unstructured":"Chen, W. et al. Research data warehouse: using electronic health records to conduct population-based observational studies. JAMIA Open 6, ooad039 (2023).","journal-title":"JAMIA Open"},{"key":"2809_CR5","doi-asserted-by":"publisher","unstructured":"Rakers, M. M. et al. Availability of evidence for predictive machine learning algorithms in primary care: a systematic review. JAMA Netw. Open7. https:\/\/doi.org\/10.1001\/jamanetworkopen.2024.32990.","DOI":"10.1001\/jamanetworkopen.2024.32990"},{"key":"2809_CR6","doi-asserted-by":"crossref","unstructured":"Cardozo, G., Tirloni, S. F., Pereira Moro, A. R. & Marques, J. L. B. Use of artificial intelligence in the search for new information through routine laboratory tests: systematic review. JMIR Bioinform. Biotechnol. 3.","DOI":"10.2196\/40473"},{"key":"2809_CR7","doi-asserted-by":"publisher","first-page":"e2437402","DOI":"10.1001\/jamanetworkopen.2024.37402","volume":"7","author":"J Gjesvik","year":"2024","unstructured":"Gjesvik, J., Moshina, N., Lee, C. I., Miglioretti, D. L. & Hofvind, S. Artificial intelligence algorithm for subclinical breast cancer detection. JAMA Netw. Open 7, e2437402 (2024).","journal-title":"JAMA Netw. Open"},{"key":"2809_CR8","doi-asserted-by":"publisher","first-page":"e42615","DOI":"10.2196\/42615","volume":"25","author":"R Syed","year":"2023","unstructured":"Syed, R. et al. Digital health data quality issues: systematic review. J. Med. Internet Res. 25, e42615 (2023).","journal-title":"J. Med. Internet Res."},{"key":"2809_CR9","doi-asserted-by":"publisher","first-page":"144","DOI":"10.1136\/amiajnl-2011-000681","volume":"20","author":"NG Weiskopf","year":"2013","unstructured":"Weiskopf, N. G. & Weng, C. Methods and dimensions of electronic health record data quality assessment: enabling reuse for clinical research. J. Am. Med. Inform. Assoc. 20, 144\u201351 (2013).","journal-title":"J. Am. Med. Inform. Assoc."},{"key":"2809_CR10","doi-asserted-by":"publisher","unstructured":"Sambasivan, N. et al. \u201cEveryone wants to do the model work, not the data work\u201d: Data Cascades in High-Stakes AI. In Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems, CHI \u201921, 1\u201315 (Association for Computing Machinery, New York, NY, USA, 2021). https:\/\/doi.org\/10.1145\/3411764.3445518.","DOI":"10.1145\/3411764.3445518"},{"key":"2809_CR11","doi-asserted-by":"crossref","unstructured":"Kilkenny, M. F. & Robinson, K. M. Data quality: \"garbage in\u2013garbage out\u201d. Health Inf Manag 47, 103\u2013105 (2018).","DOI":"10.1177\/1833358318774357"},{"key":"2809_CR12","doi-asserted-by":"crossref","unstructured":"Kahn, M. G. et al. Transparent reporting of data quality in distributed data networks. Egems 3 (2015).","DOI":"10.13063\/2327-9214.1052"},{"key":"2809_CR13","unstructured":"Mitra, A.Fundamentals of quality control and improvement (John Wiley & Sons, 2016)."},{"key":"2809_CR14","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1007\/s10664-006-5964-9","volume":"11","author":"M Ellims","year":"2006","unstructured":"Ellims, M., Bridges, J. & Ince, D. C. The economics of unit testing. Empir. Softw. Eng. 11, 5\u201331 (2006).","journal-title":"Empir. Softw. Eng."},{"key":"2809_CR15","doi-asserted-by":"publisher","first-page":"3909","DOI":"10.1109\/ACCESS.2017.2685629","volume":"5","author":"M Shahin","year":"2017","unstructured":"Shahin, M., Ali Babar, M. & Zhu, L. Continuous integration, delivery and deployment: A systematic review on approaches, tools, challenges and practices. IEEE Access 5, 3909\u20133943 (2017).","journal-title":"IEEE Access"},{"key":"2809_CR16","doi-asserted-by":"publisher","first-page":"1290","DOI":"10.1177\/1460458217744369","volume":"25","author":"AP Reimer","year":"2019","unstructured":"Reimer, A. P. & Madigan, E. A. Veracity in big data: How good is good enough. Health Informatics J. 25, 1290\u20131298 (2019).","journal-title":"Health Informatics J."},{"key":"2809_CR17","doi-asserted-by":"publisher","first-page":"1730","DOI":"10.1093\/jamia\/ocad120","volume":"30","author":"AE Lewis","year":"2023","unstructured":"Lewis, A. E. et al. Electronic health record data quality assessment and tools: a systematic review. J. Am. Med. Inform. Assoc. 30, 1730\u20131740 (2023).","journal-title":"J. Am. Med. Inform. Assoc."},{"key":"2809_CR18","doi-asserted-by":"crossref","unstructured":"Ntinopoulos, V. et al. Large language models for data extraction from unstructured and semi-structured electronic health records: a multiple model performance evaluation. BMJ Health & Care Informatics 32 https:\/\/informatics.bmj.com\/content\/32\/1\/e101139 (2025).","DOI":"10.1136\/bmjhci-2024-101139"},{"key":"2809_CR19","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1038\/s41746-023-00957-x","volume":"6","author":"E Alsentzer","year":"2023","unstructured":"Alsentzer, E. et al. Zero-shot interpretable phenotyping of postpartum hemorrhage using large language models. npj Digital Med. 6, 1\u201310 (2023).","journal-title":"npj Digital Med."},{"key":"2809_CR20","doi-asserted-by":"crossref","unstructured":"Yang, J. et al. Enhancing phenotype recognition in clinical notes using large language models: PhenoBCBERT and PhenoGPT. Patterns 100887 https:\/\/linkinghub.elsevier.com\/retrieve\/pii\/S266638992300288X. (2023).","DOI":"10.1016\/j.patter.2023.100887"},{"key":"2809_CR21","doi-asserted-by":"publisher","first-page":"21","DOI":"10.1186\/s44342-024-00023-2","volume":"22","author":"R Tekumalla","year":"2024","unstructured":"Tekumalla, R. & Banda, J. M. Towards automated phenotype definition extraction using large language models. Genomics Inform. 22, 21 (2024).","journal-title":"Genomics Inform."},{"key":"2809_CR22","unstructured":"Anand, A., Ostropolets, A., Ryan, P. & Hripcsak, G. Utility of large language models for concept set curation. Tech. Rep. https:\/\/www.ohdsi.org\/wp-content\/uploads\/2024\/10\/56-Anand-Adit_LLMConcpetSetCuration_2024symposium-Adit-Anand.pdf (2025)."},{"key":"2809_CR23","unstructured":"Chen, C. & Stadler, T. GenSpectrum Chat: Data Exploration in Public Health Using Large Language Models http:\/\/arxiv.org\/abs\/2305.13821.ArXiv:2305.13821 [cs, q-bio] (2023)."},{"key":"2809_CR24","doi-asserted-by":"publisher","first-page":"109022","DOI":"10.1016\/j.isci.2024.109022","volume":"27","author":"C Han","year":"2024","unstructured":"Han, C. et al. Evaluation of GPT-4 for 10-year cardiovascular risk prediction: Insights from the UK Biobank and KOGES data. iScience 27, 109022 (2024).","journal-title":"iScience"},{"key":"2809_CR25","doi-asserted-by":"crossref","unstructured":"McDermott, M. B. A., Nestor, B., Argaw, P. & Kohane, I. Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Events http:\/\/arxiv.org\/abs\/2306.11547 (2023).","DOI":"10.52202\/075280-1057"},{"key":"2809_CR26","unstructured":"Narayan, A., Chami, I., Orr, L., Arora, S. & R\u00e9, C. Can Foundation Models Wrangle Your Data? http:\/\/arxiv.org\/abs\/2205.09911. ArXiv:2205.09911 [cs] (2022) ."},{"key":"2809_CR27","doi-asserted-by":"publisher","first-page":"859","DOI":"10.1001\/jamacardio.2023.2411","volume":"8","author":"N Kathiresan","year":"2023","unstructured":"Kathiresan, N. et al. Representation of race and ethnicity in the contemporary US health cohort all of Us Research Program. JAMA Cardiol 8, 859\u2013864 (2023).","journal-title":"JAMA Cardiol"},{"key":"2809_CR28","unstructured":"Back to the Building Blocks: A Path Toward Secure and Measurable Software. Tech. Rep., The White House https:\/\/www.whitehouse.gov\/wp-content\/uploads\/2024\/02\/Final-ONCD-Technical-Report.pdf (2024)."},{"key":"2809_CR29","unstructured":"Bipartisan House Task Force on Artificial Intelligence. Tech. Rep., U.S. House of Representatives https:\/\/www.speaker.gov\/wp-content\/uploads\/2024\/12\/AI-Task-Force-Report-FINAL.pdf (2024)."},{"key":"2809_CR30","doi-asserted-by":"publisher","first-page":"e64","DOI":"10.1016\/S2589-7500(24)00224-3","volume":"7","author":"JE Alderman","year":"2025","unstructured":"Alderman, J. E. et al. Tackling algorithmic bias and promoting transparency in health datasets: the STANDING Together consensus recommendations. Lancet Digital Health 7, e64\u2013e88 (2025).","journal-title":"Lancet Digital Health"},{"key":"2809_CR31","unstructured":"Dahl, O.-J., Dijkstra, E. W. & Hoare, C. A. R. Structured programming (Academic Press Ltd., 1972)."},{"key":"2809_CR32","doi-asserted-by":"publisher","first-page":"4944","DOI":"10.1287\/mnsc.2019.3478","volume":"66","author":"G Pennycook","year":"2020","unstructured":"Pennycook, G., Bear, A., Collins, E. T. & Rand, D. G. The implied truth effect: Attaching warnings to a subset of fake news headlines increases perceived accuracy of headlines without warnings. Manag. Sci. 66, 4944\u20134957 (2020).","journal-title":"Manag. Sci."},{"key":"2809_CR33","doi-asserted-by":"crossref","unstructured":"Kochhar, P. S., Thung, F. & Lo, D. Code coverage and test suite effectiveness: Empirical study with real bugs in large systems. In 2015 IEEE 22nd International Conference on Software Analysis, Evolution, and Reengineering (SANER), 560\u2013564 https:\/\/ieeexplore.ieee.org\/abstract\/document\/7081877 (2015).","DOI":"10.1109\/SANER.2015.7081877"},{"key":"2809_CR34","doi-asserted-by":"crossref","unstructured":"Madaan, A. et al. Self-refine: Iterative refinement with self-feedback. in Proc. of the 37th International Conference on Neural Information Processing Systems (NIPS, 2023).","DOI":"10.52202\/075280-2019"},{"key":"2809_CR35","doi-asserted-by":"publisher","unstructured":"Van Rijn, M. H., Bech, A., Bouyer, J. & van den Brand, J. A. Statistical significance versus clinical relevance. Nephrol. Dial. Transplant. 32 https:\/\/doi.org\/10.1093\/ndt\/gfw385.","DOI":"10.1093\/ndt\/gfw385"},{"key":"2809_CR36","doi-asserted-by":"crossref","unstructured":"Tatem, K. S. Comparing Prevalence Estimates From Population-Based Surveys to Inform Surveillance Using Electronic Health Records. Prev. Chronic Dis. 14. https:\/\/www.cdc.gov\/pcd\/issues\/2017\/16_0516.htm.","DOI":"10.5888\/pcd14.160516"},{"key":"2809_CR37","doi-asserted-by":"publisher","DOI":"10.1038\/sdata.2016.35","volume":"3","author":"AEW Johnson","year":"2016","unstructured":"Johnson, A. E. W. et al. MIMIC-III, a freely accessible critical care database. Sci. Data 3, 160035 (2016).","journal-title":"Sci. Data"},{"key":"2809_CR38","doi-asserted-by":"crossref","unstructured":"Walonoski, J. et al. Synthea: an approach, method, and software mechanism for generating synthetic patients and the synthetic electronic health care record. J. Am. Med. Inform. Assoc. 25, 230-238 (2018).","DOI":"10.1093\/jamia\/ocx079"}],"container-title":["npj Digital Medicine"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02809-w","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02809-w.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02809-w.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,27]],"date-time":"2026-08-27T22:54:09Z","timestamp":1787871249000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02809-w"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,30]]},"references-count":38,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2026,12]]}},"alternative-id":["2809"],"URL":"https:\/\/doi.org\/10.1038\/s41746-026-02809-w","relation":{},"ISSN":["2398-6352"],"issn-type":[{"value":"2398-6352","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,30]]},"assertion":[{"value":"8 January 2026","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"19 May 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"30 May 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"Ran Gilad-Bachrach is an employee of Microsoft. The company had no involvement in the study. All other authors declare no competing interests.","order":1,"name":"Ethics","label":"Competing interests","group":{"name":"EthicsHeading","label":"Ethics"}}],"article-number":"666"}}