{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,24]],"date-time":"2026-11-24T11:42:08Z","timestamp":1795520528802,"version":"4.11.0"},"reference-count":82,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2026,5,9]],"date-time":"2026-05-09T00:00:00Z","timestamp":1778284800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T00:00:00Z","timestamp":1784160000000},"content-version":"vor","delay-in-days":68,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"DOI":"10.13039\/501100000272","name":"National Institute for Health and Care Research","doi-asserted-by":"publisher","award":["NIHR202632"],"award-info":[{"award-number":["NIHR202632"]}],"id":[{"id":"10.13039\/501100000272","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000266","name":"Engineering and Physical Sciences Research Council","doi-asserted-by":"publisher","award":["EP\/V023233\/1"],"award-info":[{"award-number":["EP\/V023233\/1"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["npj Digit. Med."],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Multiple long-term conditions (MLTCs), or multimorbidity\u2014the co-occurrence of multiple chronic conditions\u2014present a growing challenge for primary care. Existing predictive models typically focus on single outcomes and often fail to capture the temporal and competing-risk structure inherent in longitudinal electronic health records (EHRs). Here, we present SurvivEHR, a generative transformer-based foundation model trained on over 7.6 billion coded events from 23 million patients in UK primary care. SurvivEHR is pre-trained using a competing-risk, time-to-next-event objective, enabling calibrated risk stratification across a broad range of diagnoses, investigations, medications, and mortality events. We show that this pre-training objective yields strong next-event discrimination and learns clinically meaningful patient trajectories. When adapted through fine-tuning, SurvivEHR achieves improved performance on downstream prognostic tasks, including longer-horizon risk prediction, with particular benefits in low-resource settings. By learning longitudinal patient representations directly from routine primary care records, SurvivEHR provides a scalable foundation for developing generalisable clinical risk models that reflect the complexity of MLTCs in primary care.<\/jats:p>","DOI":"10.1038\/s41746-026-02709-z","type":"journal-article","created":{"date-parts":[[2026,5,9]],"date-time":"2026-05-09T04:43:39Z","timestamp":1778301819000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["SurvivEHR: a competing risks, time-to-event foundation model for multiple long-term conditions from primary care electronic health records"],"prefix":"10.1038","volume":"9","author":[{"given":"Charles","family":"Gadd","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Krishna","family":"Gokhale","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Aditya","family":"Acharya","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jennifer","family":"Cooper","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Francesca","family":"Crowe","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Leah","family":"Fitzsimmons","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Thomas","family":"Jackson","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Krishnarajah","family":"Nirantharakumar","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Christopher","family":"Yau","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"name":"The OPTIMAL Consortium","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rebecca","family":"Birch","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Marco","family":"Canducci","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Dominic","family":"Danks","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Alexander","family":"d\u2019Elia","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Alastair","family":"Denniston","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sarah","family":"Flanagan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Suzy","family":"Gallier","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Naijie","family":"Guan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xin","family":"Guan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Imane","family":"Guellil","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Georgios","family":"Gkoutos","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shamil","family":"Haroon","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Eleanor","family":"Hathaway","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Louise","family":"Jackson","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Janet","family":"Lord","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zeinab","family":"Majid","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tom","family":"Marshall","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"George","family":"Morris","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Charlotte","family":"Owen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Elizabeth","family":"Sapey","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Chris","family":"Sainsbury","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Charlotte","family":"Spurway","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Peter","family":"Tino","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Steven","family":"Wambua","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Amaya","family":"Azcoaga-Lorenzo","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Colin","family":"McCowan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Luciana Rocha","family":"Pedro","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Muhammad","family":"Usman","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Natalia","family":"Hong","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sara","family":"Matijevic","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kaspar","family":"Martens","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tim","family":"Williams","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Puja","family":"Myles","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,5,9]]},"reference":[{"key":"2709_CR1","doi-asserted-by":"crossref","unstructured":"Whitty, C. J. et al. Rising to the challenge of multimorbidity. BMJ 368, l6964 (2020).","DOI":"10.1136\/bmj.l6964"},{"key":"2709_CR2","doi-asserted-by":"publisher","first-page":"37","DOI":"10.1016\/S0140-6736(12)60240-2","volume":"380","author":"K Barnett","year":"2012","unstructured":"Barnett, K. et al. Epidemiology of multimorbidity and implications for health care, research, and medical education: a cross-sectional study. Lancet 380, 37\u201343 (2012).","journal-title":"Lancet"},{"key":"2709_CR3","doi-asserted-by":"crossref","unstructured":"Cassell, A. et al. The epidemiology of multimorbidity in primary care: a retrospective cohort study. Br. J. Gen. Pract. 68, e245\u2013e251 (2018).","DOI":"10.3399\/bjgp18X695465"},{"key":"2709_CR4","doi-asserted-by":"crossref","unstructured":"Dambha-Miller, H. & Farmer, A. Artificial intelligence for multiple long-term conditions (AIM): a consensus statement from the NIHR AIM consortia. NIHR Open Res. 3, https:\/\/openresearch.nihr.ac.uk\/documents\/3-21 (2023).","DOI":"10.3310\/nihropenres.1115210.1"},{"key":"2709_CR5","doi-asserted-by":"publisher","first-page":"62","DOI":"10.1093\/ageing\/afs100","volume":"42","author":"LD Hughes","year":"2013","unstructured":"Hughes, L. D., McMurdo, M. E. & Guthrie, B. Guidelines for people not for diseases: the challenges of applying uk clinical guidelines to people with multimorbidity. Age ageing 42, 62\u201369 (2013).","journal-title":"Age ageing"},{"key":"2709_CR6","doi-asserted-by":"publisher","first-page":"41","DOI":"10.1016\/S0140-6736(18)31308-4","volume":"392","author":"C Salisbury","year":"2018","unstructured":"Salisbury, C. et al. Management of multimorbidity using a patient-centred care model: a pragmatic cluster-randomised trial of the 3D approach. Lancet 392, 41\u201350 (2018).","journal-title":"Lancet"},{"key":"2709_CR7","doi-asserted-by":"publisher","first-page":"20","DOI":"10.1016\/j.amjcard.2004.03.023","volume":"94","author":"DM Lloyd-Jones","year":"2004","unstructured":"Lloyd-Jones, D. M. et al. Framingham risk score and prediction of lifetime risk for coronary heart disease. Am. J. Cardiol. 94, 20\u201324 (2004).","journal-title":"Am. J. Cardiol."},{"key":"2709_CR8","doi-asserted-by":"crossref","unstructured":"Hippisley-Cox, J., Coupland, C. & Brindle, P. Development and validation of QRISK3 risk prediction algorithms to estimate future risk of cardiovascular disease: prospective cohort study. BMJ 357, j2099 (2017).","DOI":"10.1136\/bmj.j2099"},{"key":"2709_CR9","doi-asserted-by":"publisher","first-page":"725","DOI":"10.2337\/diacare.26.3.725","volume":"26","author":"J Lindstrom","year":"2003","unstructured":"Lindstrom, J. & Tuomilehto, J. The diabetes risk score: a practical tool to predict type 2 diabetes risk. Diabetes Care 26, 725\u2013731 (2003).","journal-title":"Diabetes Care"},{"key":"2709_CR10","doi-asserted-by":"publisher","first-page":"469","DOI":"10.1158\/1055-9965.EPI-20-1319","volume":"30","author":"T Carver","year":"2021","unstructured":"Carver, T. et al. CanRisk tool\u2014a web interface for the prediction of breast and ovarian cancer risk and the likelihood of carrying genetic pathogenic variants. Cancer Epidemiol. Biomark. Prev. 30, 469\u2013473 (2021).","journal-title":"Cancer Epidemiol. Biomark. Prev."},{"key":"2709_CR11","doi-asserted-by":"publisher","first-page":"1847","DOI":"10.1038\/s41591-024-03074-8","volume":"30","author":"AS Tang","year":"2024","unstructured":"Tang, A. S. et al. Harnessing EHR data for health research. Nat. Med. 30, 1847\u20131855 (2024).","journal-title":"Nat. Med."},{"key":"2709_CR12","doi-asserted-by":"crossref","unstructured":"Lee, C., Zame, W., Yoon, J. & Van Der Schaar, M. DeepHit: a deep learning approach to survival analysis with competing risks. In Proc. AAAI Conference on Artificial Intelligence Vol. 32 (AAAI Press, 2018).","DOI":"10.1609\/aaai.v32i1.11842"},{"key":"2709_CR13","unstructured":"Danks, D. & Yau, C. Derivative-based neural modelling of cumulative distribution functions for survival analysis. In Proc. International Conference on Artificial Intelligence and Statistics 7240\u20137256 (PMLR, 2022)."},{"key":"2709_CR14","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-023-00879-8","volume":"6","author":"M Wornow","year":"2023","unstructured":"Wornow, M. et al. The shaky foundations of large language models and foundation models for electronic health records. npj Digit. Med. 6, 135 (2023).","journal-title":"npj Digit. Med."},{"key":"2709_CR15","doi-asserted-by":"crossref","unstructured":"Shmatko, A. et al. Learning the natural history of human disease with generative transformers. Nature 647, 248\u2013256 (2025).","DOI":"10.1038\/s41586-025-09529-3"},{"key":"2709_CR16","doi-asserted-by":"publisher","first-page":"203","DOI":"10.1038\/s41586-018-0579-z","volume":"562","author":"C Bycroft","year":"2018","unstructured":"Bycroft, C. et al. The UK Biobank resource with deep phenotyping and genomic data. Nature 562, 203\u2013209 (2018).","journal-title":"Nature"},{"key":"2709_CR17","doi-asserted-by":"publisher","unstructured":"Waxler, S. et al. Generative medical event models improve with scale. Preprint at arXiv https:\/\/doi.org\/10.48550\/arXiv.2508.12104 (2025).","DOI":"10.48550\/arXiv.2508.12104"},{"key":"2709_CR18","unstructured":"Steinberg, E., Fries, J., Xu, Y. & Shah, N. MOTOR: a time-to-event foundation model for structured medical records. The Twelfth International Conference on Learning Representations (2023)."},{"key":"2709_CR19","doi-asserted-by":"publisher","DOI":"10.1038\/s41597-022-01899-x","volume":"10","author":"AE Johnson","year":"2023","unstructured":"Johnson, A. E. et al. MIMIC-IV, a freely accessible electronic health record dataset. Sci. Data 10, 1 (2023).","journal-title":"Sci. Data"},{"key":"2709_CR20","doi-asserted-by":"publisher","first-page":"1740","DOI":"10.1093\/ije\/dyz034","volume":"48","author":"A Wolf","year":"2019","unstructured":"Wolf, A. et al. Data resource profile: Clinical Practice Research Datalink (CPRD) aurum. Int. J. Epidemiol. 48, 1740\u20131740g (2019).","journal-title":"Int. J. Epidemiol."},{"key":"2709_CR21","doi-asserted-by":"crossref","unstructured":"Wang, L. et al. Transformer-based deep learning model for the diagnosis of suspected lung cancer in primary care based on electronic health record data. EBioMedicine 110, 105442 (2024).","DOI":"10.1016\/j.ebiom.2024.105442"},{"key":"2709_CR22","doi-asserted-by":"publisher","first-page":"e195","DOI":"10.1093\/ije\/dyad091","volume":"52","author":"E Viippola","year":"2023","unstructured":"Viippola, E. et al. Data resource profile: nationwide registry data for high-throughput epidemiology and machine learning (FinRegistry). Int. J. Epidemiol. 52, e195\u2013e200 (2023).","journal-title":"Int. J. Epidemiol."},{"key":"2709_CR23","doi-asserted-by":"publisher","first-page":"e324","DOI":"10.1093\/ije\/dyac068","volume":"51","author":"M Recalde","year":"2022","unstructured":"Recalde, M. et al. Data resource profile: the information system for research in primary care (SIDIAP). Int. J. Epidemiol. 51, e324\u2013e336 (2022).","journal-title":"Int. J. Epidemiol."},{"key":"2709_CR24","doi-asserted-by":"publisher","DOI":"10.1007\/s10916-024-02138-z","volume":"49","author":"LA Carrasco-Ribelles","year":"2025","unstructured":"Carrasco-Ribelles, L. A., Cabrera-Bean, M., Khalid, S., Roso-Llorach, A. & Viol\u00e1n, C. Development of attention-based prediction models for all-cause mortality, home care need, and nursing home admission in ageing adults in Spain using longitudinal electronic health record data. J. Med. Syst. 49, 17 (2025).","journal-title":"J. Med. Syst."},{"key":"2709_CR25","doi-asserted-by":"crossref","unstructured":"Schmidt, M. et al. The Danish National Patient Registry: a review of content, data quality, and research potential. Clin. Epidemiol. 7, 449\u2013490 (2015).","DOI":"10.2147\/CLEP.S91125"},{"key":"2709_CR26","doi-asserted-by":"crossref","unstructured":"Phillips, R. The PRIME Registry helps thousands of primary care clinicians liberate EHR data and prepare for MIPS. J. Am. Board Fam. Med. 30, 559 (2017).","DOI":"10.3122\/jabfm.2017.04.170193"},{"key":"2709_CR27","doi-asserted-by":"publisher","first-page":"1203","DOI":"10.1377\/hlthaff.2014.0054","volume":"33","author":"SD Fihn","year":"2014","unstructured":"Fihn, S. D. et al. Insights from advanced analytics at the Veterans Health Administration. Health Aff. 33, 1203\u20131211 (2014).","journal-title":"Health Aff."},{"key":"2709_CR28","doi-asserted-by":"publisher","first-page":"ooad054","DOI":"10.1093\/jamiaopen\/ooad054","volume":"6","author":"A Callahan","year":"2023","unstructured":"Callahan, A. et al. The stanford medicine data science ecosystem for clinical and translational research. JAMIA open 6, ooad054 (2023).","journal-title":"JAMIA open"},{"key":"2709_CR29","doi-asserted-by":"publisher","first-page":"e742","DOI":"10.3399\/bjgp13X674422","volume":"63","author":"D Kringos","year":"2013","unstructured":"Kringos, D. et al. The strength of primary care in Europe: an international comparative study. Br. J. Gen. Pract. 63, e742\u2013e750 (2013).","journal-title":"Br. J. Gen. Pract."},{"key":"2709_CR30","unstructured":"Jabbarpour, Y., Petterson, S., Jetty, A., Byun, H. & Robert Graham Center. The Health of US Primary Care. https:\/\/www.graham-center.org\/content\/dam\/rgc\/documents\/publications-reports\/reports\/2024-scorecard-final-report.pdf Last Updated: 28 February 2024 (2024)."},{"key":"2709_CR31","unstructured":"Radford, A., Narasimhan, K., Salimans, T., Sutskever, I. et al. Improving language understanding by generative pre-training. (2018)."},{"key":"2709_CR32","doi-asserted-by":"publisher","first-page":"e16","DOI":"10.1016\/S2589-7500(22)00187-X","volume":"5","author":"V Kuan","year":"2023","unstructured":"Kuan, V. et al. Identifying and visualising multimorbidity and comorbidity patterns in patients in the English National Health Service: a population-based study. Lancet Digit. Health 5, e16\u2013e27 (2023).","journal-title":"Lancet Digit. Health"},{"key":"2709_CR33","doi-asserted-by":"publisher","first-page":"165","DOI":"10.1007\/s10654-020-00677-6","volume":"36","author":"KM Gokhale","year":"2021","unstructured":"Gokhale, K. M. et al. Data extraction for epidemiological research (DExtER): a novel tool for automated clinical epidemiology studies. Eur. J. Epidemiol. 36, 165\u2013178 (2021).","journal-title":"Eur. J. Epidemiol."},{"key":"2709_CR34","doi-asserted-by":"publisher","first-page":"e000247","DOI":"10.1136\/bmjmed-2022-000247","volume":"1","author":"IS Ho","year":"2022","unstructured":"Ho, I. S. et al. Measuring multimorbidity in research: Delphi consensus study. BMJ Med. 1, e000247 (2022).","journal-title":"BMJ Med."},{"key":"2709_CR35","doi-asserted-by":"publisher","DOI":"10.1186\/s12911-023-02296-z","volume":"23","author":"J Cooper","year":"2023","unstructured":"Cooper, J. et al. Prevalence and demographic variation of cardiovascular, renal, metabolic, and mental health conditions in 12 million English primary care records. BMC Med. Inform. Decis. Mak. 23, 220 (2023).","journal-title":"BMC Med. Inform. Decis. Mak."},{"key":"2709_CR36","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-020-62922-y","volume":"10","author":"Y Li","year":"2020","unstructured":"Li, Y. et al. BEHRT: transformer for electronic health records. Sci. Rep. 10, 7155 (2020).","journal-title":"Sci. Rep."},{"key":"2709_CR37","doi-asserted-by":"publisher","first-page":"24322","DOI":"10.52202\/075280-1057","volume":"36","author":"M McDermott","year":"2023","unstructured":"McDermott, M., 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. Proc. Advances in Neural Information Processing Systems. 36, 24322\u201324334 (PMLR, 2023).","journal-title":"Proc. Advances in Neural Information Processing Systems."},{"key":"2709_CR38","doi-asserted-by":"publisher","first-page":"43","DOI":"10.1038\/s43588-023-00573-5","volume":"4","author":"G Savcisens","year":"2024","unstructured":"Savcisens, G. et al. Using sequences of life-events to predict human lives. Nat. Comput. Sci. 4, 43\u201356 (2024).","journal-title":"Nat. Comput. Sci."},{"key":"2709_CR39","doi-asserted-by":"publisher","DOI":"10.1038\/s41467-023-43715-z","volume":"14","author":"Z Yang","year":"2023","unstructured":"Yang, Z., Mitra, A., Liu, W., Berlowitz, D. & Yu, H. Transformehr: transformer-based encoder-decoder generative model to enhance prediction of disease outcomes using electronic health records. Nat. Commun. 14, 7857 (2023).","journal-title":"Nat. Commun."},{"key":"2709_CR40","doi-asserted-by":"publisher","unstructured":"Kraljevic, Z. et al. MedGPT: medical concept prediction from clinical narratives. Preprint at arXiv https:\/\/doi.org\/10.48550\/arXiv.2107.03134 (2021).","DOI":"10.48550\/arXiv.2107.03134"},{"key":"2709_CR41","doi-asserted-by":"publisher","first-page":"e281","DOI":"10.1016\/S2589-7500(24)00025-6","volume":"6","author":"Z Kraljevic","year":"2024","unstructured":"Kraljevic, Z. et al. Foresight\u2014a generative pretrained transformer for modelling of patient timelines using electronic health records: a retrospective modelling study. Lancet Digit. Health 6, e281\u2013e290 (2024).","journal-title":"Lancet Digit. Health"},{"key":"2709_CR42","doi-asserted-by":"crossref","unstructured":"McInnes, L., Healy, J. & Melville, J. UMAP: Uniform Manifold Approximation and Projection. Journal of Open Source Software, 3, 861 (2018).","DOI":"10.21105\/joss.00861"},{"key":"2709_CR43","doi-asserted-by":"crossref","unstructured":"Kalin, N. H. The critical relationship between anxiety and depression. Am. J. Psychiatry 177, 365\u2013367 (2020).","DOI":"10.1176\/appi.ajp.2020.20030305"},{"key":"2709_CR44","doi-asserted-by":"publisher","first-page":"944","DOI":"10.1016\/j.jdiacomp.2016.02.016","volume":"30","author":"MF Williams","year":"2016","unstructured":"Williams, M. F., London, D. A., Husni, E. M., Navaneethan, S. & Kashyap, S. R. Type 2 diabetes and osteoarthritis: a systematic review and meta-analysis. J. Diab. Complicat. 30, 944\u2013950 (2016).","journal-title":"J. Diab. Complicat."},{"key":"2709_CR45","doi-asserted-by":"publisher","first-page":"938","DOI":"10.1177\/2047487315610663","volume":"23","author":"AJ Hall","year":"2016","unstructured":"Hall, A. J., Stubbs, B., Mamas, M. A., Myint, P. K. & Smith, T. O. Association between osteoarthritis and cardiovascular disease: systematic review and meta-analysis. Eur. J. Prev. Cardiol. 23, 938\u2013946 (2016).","journal-title":"Eur. J. Prev. Cardiol."},{"key":"2709_CR46","unstructured":"for Health, N. I. & Excellence, C. Type 2 Diabetes in Adults: Management (Nice Guideline, No. 28). https:\/\/www.nice.org.uk\/guidance\/ng28. Last updated 29 June 2022 (2022)."},{"key":"2709_CR47","doi-asserted-by":"crossref","unstructured":"Maraka, S. & Kennel, K. A. Bisphosphonates for the prevention and treatment of osteoporosis. BMJ 351, h3783 (2015).","DOI":"10.1136\/bmj.h3783"},{"key":"2709_CR48","doi-asserted-by":"crossref","unstructured":"Ishwaran, H., Kogalur, U. B., Blackstone, E. H. & Lauer, M. S. Random survival forests. (2008).","DOI":"10.1214\/08-AOAS169"},{"key":"2709_CR49","doi-asserted-by":"publisher","DOI":"10.1186\/s12874-018-0482-1","volume":"18","author":"JL Katzman","year":"2018","unstructured":"Katzman, J. L. et al. Deepsurv: personalized treatment recommender system using a Cox proportional hazards deep neural network. BMC Med. Res. Methodol. 18, 24 (2018).","journal-title":"BMC Med. Res. Methodol."},{"key":"2709_CR50","doi-asserted-by":"publisher","first-page":"164","DOI":"10.1126\/science.adg8538","volume":"383","author":"AM Chekroud","year":"2024","unstructured":"Chekroud, A. M. et al. Illusory generalizability of clinical prediction models. Science 383, 164\u2013167 (2024).","journal-title":"Science"},{"key":"2709_CR51","doi-asserted-by":"publisher","first-page":"369","DOI":"10.1038\/s42256-020-0197-y","volume":"2","author":"M Prosperi","year":"2020","unstructured":"Prosperi, M. et al. Causal inference and counterfactual prediction in machine learning for actionable healthcare. Nat. Mach. Intell. 2, 369\u2013375 (2020).","journal-title":"Nat. Mach. Intell."},{"key":"2709_CR52","doi-asserted-by":"publisher","first-page":"D267","DOI":"10.1093\/nar\/gkh061","volume":"32","author":"O Bodenreider","year":"2004","unstructured":"Bodenreider, O. The Unified Medical Language System (UMLS): integrating biomedical terminology. Nucleic Acids Res. 32, D267\u2013D270 (2004).","journal-title":"Nucleic Acids Res."},{"key":"2709_CR53","doi-asserted-by":"publisher","first-page":"1223","DOI":"10.1016\/S0140-6736(20)30752-2","volume":"396","author":"CJ Murray","year":"2020","unstructured":"Murray, C. J. et al. Global burden of 87 risk factors in 204 countries and territories, 1990\u20132019: a systematic analysis for the global burden of disease study 2019. Lancet 396, 1223\u20131249 (2020).","journal-title":"Lancet"},{"key":"2709_CR54","doi-asserted-by":"publisher","first-page":"e011664","DOI":"10.1136\/bmjopen-2016-011664","volume":"6","author":"SJ Price","year":"2016","unstructured":"Price, S. J., Stapley, S. A., Shephard, E., Barraclough, K. & Hamilton, W. T. Is omission of free text records a possible source of data loss and bias in clinical practice research datalink studies? a case\u2013control study. BMJ Open 6, e011664 (2016).","journal-title":"BMJ Open"},{"key":"2709_CR55","unstructured":"Rindt, D., Hu, R., Steinsaltz, D. & Sejdinovic, D. Survival regression with proper scoring rules and monotonic neural networks. In Proc. International Conference on Artificial Intelligence And Statistics 1190\u20131205 (PMLR, 2022)."},{"key":"2709_CR56","unstructured":"Jeanselme, V., Yoon, C. H., Tom, B. & Barrett, J. Neural Fine-Gray: monotonic neural networks for competing risks. In Proc. Conference on Health, Inference, and Learning 379\u2013392 (PMLR, 2023)."},{"key":"2709_CR57","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-021-00455-y","volume":"4","author":"L Rasmy","year":"2021","unstructured":"Rasmy, L., Xiang, Y., Xie, Z., Tao, C. & Zhi, D. Med-BERT: pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction. npj Digit. Med. 4, 86 (2021).","journal-title":"npj Digit. Med."},{"key":"2709_CR58","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-024-01235-0","volume":"7","author":"P Renc","year":"2024","unstructured":"Renc, P. et al. Zero shot health trajectory prediction using transformer. npj Digit. Med. 7, 256 (2024).","journal-title":"npj Digit. Med."},{"key":"2709_CR59","doi-asserted-by":"publisher","unstructured":"Pang, C. et al. CEHR-XGPT: a scalable multi-task foundation model for electronic health records. Preprint at arXiv https:\/\/doi.org\/10.48550\/arXiv.2509.03643 (2025).","DOI":"10.48550\/arXiv.2509.03643"},{"key":"2709_CR60","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-023-30820-8","volume":"13","author":"LL Guo","year":"2023","unstructured":"Guo, L. L. et al. EHR foundation models improve robustness in the presence of temporal distribution shift. Sci. Rep. 13, 3767 (2023).","journal-title":"Sci. Rep."},{"key":"2709_CR61","unstructured":"Wang, T. et al. What language model architecture and pretraining objective works best for zero-shot generalization? In Proc. International Conference on Machine Learning 22964\u201322984 (PMLR, 2022)."},{"key":"2709_CR62","doi-asserted-by":"publisher","unstructured":"Bommasani, R. et al. On the opportunities and risks of foundation models. Preprint at arXiv https:\/\/doi.org\/10.48550\/arXiv.2108.07258 (2021).","DOI":"10.48550\/arXiv.2108.07258"},{"key":"2709_CR63","doi-asserted-by":"crossref","unstructured":"Schaeffer, R., Miranda, B. & Koyejo, S. Are emergent abilities of large language models a mirage? In Proc. Advances in Neural Information Processing Systems Vol. 36 (PMLR, 2024).","DOI":"10.52202\/075280-2425"},{"key":"2709_CR64","doi-asserted-by":"publisher","unstructured":"Kaplan, J. et al. Scaling laws for neural language models. Preprint at arXiv https:\/\/doi.org\/10.48550\/arXiv.2001.08361 (2020).","DOI":"10.48550\/arXiv.2001.08361"},{"key":"2709_CR65","unstructured":"Vaswani, A. et al. Attention is all you need. In Proc. Advances in Neural Information Processing Systems Vol. 30 (PMLR, 2017)."},{"key":"2709_CR66","doi-asserted-by":"publisher","first-page":"127063","DOI":"10.1016\/j.neucom.2023.127063","volume":"568","author":"J Su","year":"2024","unstructured":"Su, J. et al. Roformer: enhanced transformer with rotary position embedding. Neurocomputing 568, 127063 (2024).","journal-title":"Neurocomputing"},{"key":"2709_CR67","first-page":"1","volume":"20","author":"H Kvamme","year":"2019","unstructured":"Kvamme, H., Borgan, O. & Scheel, I. Time-to-event prediction with neural networks and Cox regression. J. Mach. Learn. Res. 20, 1\u201330 (2019).","journal-title":"J. Mach. Learn. Res."},{"key":"2709_CR68","doi-asserted-by":"publisher","first-page":"263","DOI":"10.1007\/s10985-015-9330-3","volume":"22","author":"G Heller","year":"2016","unstructured":"Heller, G. & Mo, Q. Estimating the concordance probability in a survival analysis with a discrete number of risk groups. Lifetime Data Anal. 22, 263\u2013279 (2016).","journal-title":"Lifetime Data Anal."},{"key":"2709_CR69","doi-asserted-by":"publisher","first-page":"2543","DOI":"10.1001\/jama.1982.03320430047030","volume":"247","author":"FE Harrell","year":"1982","unstructured":"Harrell, F. E., Califf, R. M., Pryor, D. B., Lee, K. L. & Rosati, R. A. Evaluating the yield of medical tests. JAMA 247, 2543\u20132546 (1982).","journal-title":"JAMA"},{"key":"2709_CR70","doi-asserted-by":"publisher","first-page":"965","DOI":"10.1093\/biomet\/92.4.965","volume":"92","author":"M G\u00f6nen","year":"2005","unstructured":"G\u00f6nen, M. & Heller, G. Concordance probability and discriminatory power in proportional hazards regression. Biometrika 92, 965\u2013970 (2005).","journal-title":"Biometrika"},{"key":"2709_CR71","doi-asserted-by":"publisher","first-page":"1105","DOI":"10.1002\/sim.4154","volume":"30","author":"H Uno","year":"2011","unstructured":"Uno, H., Cai, T., Pencina, M. J., D\u2019Agostino, R. B. & Wei, L.-J. On the c-statistics for evaluating overall adequacy of risk prediction procedures with censored survival data. Stat. Med. 30, 1105\u20131117 (2011).","journal-title":"Stat. Med."},{"key":"2709_CR72","unstructured":"Choi, E., Bahadori, M. T., Schuetz, A., Stewart, W. F. & Sun, J. Doctor AI: Predicting clinical events via recurrent neural networks. In Proc. Machine Learning for Healthcare Conference 301\u2013318 (PMLR, 2016)."},{"key":"2709_CR73","doi-asserted-by":"crossref","unstructured":"Tan, Y. et al. MetaCare++: meta-learning with hierarchical subtyping for cold-start diagnosis prediction in healthcare data. In Proc. 45th International ACM SIGIR Conference on Research and Development in Information Retrieval 449\u2013459 (Association for Computing Machinery, 2022).","DOI":"10.1145\/3477495.3532020"},{"key":"2709_CR74","doi-asserted-by":"publisher","first-page":"1106","DOI":"10.1109\/JBHI.2022.3224727","volume":"27","author":"Y Li","year":"2022","unstructured":"Li, Y. et al. Hi-BEHRT: hierarchical transformer-based model for accurate prediction of clinical events using multimodal longitudinal electronic health records. IEEE J. Biomed. health Inform. 27, 1106\u20131117 (2022).","journal-title":"IEEE J. Biomed. health Inform."},{"key":"2709_CR75","unstructured":"Agrawal, M. N., Lang, H., Offin, M., Gazit, L. & Sontag, D. Leveraging time irreversibility with order-contrastive pre-training. In Proc. International Conference on Artificial Intelligence and Statistics 2330\u20132353 (PMLR, 2022)."},{"key":"2709_CR76","doi-asserted-by":"publisher","first-page":"5027","DOI":"10.1109\/TNNLS.2022.3183864","volume":"35","author":"S Rao","year":"2022","unstructured":"Rao, S. et al. Targeted-behrt: deep learning for observational causal inference on longitudinal electronic health records. IEEE Trans. Neural Netw. Learn. Syst. 35, 5027\u20135038 (2022).","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"2709_CR77","first-page":"239","volume":"158","author":"C Pang","year":"2021","unstructured":"Pang, C. et al. CEHR-BERT: incorporating temporal information from structured EHR data to improve prediction tasks. In Proceedings of Machine Learning Research 158, 239\u2013251 (PMLR, 2021).","journal-title":"In Proceedings of Machine Learning Research"},{"key":"2709_CR78","doi-asserted-by":"publisher","unstructured":"Lahlou, C., Crayton, A., Trier, C. & Willett, E. Explainable health risk predictor with transformer-based medicare claim encoder. Preprint at arXiv https:\/\/doi.org\/10.48550\/arXiv.2105.09428 (2021).","DOI":"10.48550\/arXiv.2105.09428"},{"key":"2709_CR79","doi-asserted-by":"crossref","unstructured":"Ren, H., Wang, J., Zhao, W. X. & Wu, N. Rapt: Pre-training of time-aware transformer for learning robust healthcare representation. In Proc. 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining 3503\u20133511 (Association for Computing Machinery, 2021).","DOI":"10.1145\/3447548.3467069"},{"key":"2709_CR80","doi-asserted-by":"publisher","first-page":"102895","DOI":"10.1016\/j.media.2023.102895","volume":"89","author":"C Pellegrini","year":"2023","unstructured":"Pellegrini, C., Navab, N. & Kazi, A. Unsupervised pre-training of graph transformers on patient population graphs. Med. Image Anal. 89, 102895 (2023).","journal-title":"Med. Image Anal."},{"key":"2709_CR81","doi-asserted-by":"crossref","unstructured":"Ren, H., Wang, J. & Zhao, W. X. Generative adversarial networks enhanced pre-training for insufficient electronic health records modeling. In Proc. 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining 3810\u20133818 (Association for Computing Machinery, 2022).","DOI":"10.1145\/3534678.3539020"},{"key":"2709_CR82","doi-asserted-by":"publisher","first-page":"103726","DOI":"10.1016\/j.jbi.2021.103726","volume":"116","author":"Y Si","year":"2021","unstructured":"Si, Y., Bernstam, E. V. & Roberts, K. Generalized and transferable patient language representation for phenotyping with limited data. J. Biomed. Inform. 116, 103726 (2021).","journal-title":"J. Biomed. Inform."}],"container-title":["npj Digital Medicine"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02709-z","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02709-z.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02709-z.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T07:03:18Z","timestamp":1784185398000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.nature.com\/articles\/s41746-026-02709-z"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,9]]},"references-count":82,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2026,12]]}},"alternative-id":["2709"],"URL":"https:\/\/doi.org\/10.1038\/s41746-026-02709-z","relation":{},"ISSN":["2398-6352"],"issn-type":[{"value":"2398-6352","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,9]]},"assertion":[{"value":"6 November 2025","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"25 April 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"9 May 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"K.N. and K.G. are co-directors of DExtER operating division, which is part of the University of Birmingham. DExtER operating division supports the extraction and preparation of healthcare data to support epidemiological analyses such as those seen in this article. The other authors do not have any competing interests.","order":1,"name":"Ethics","label":"Competing interests","group":{"name":"EthicsHeading","label":"Ethics"}}],"article-number":"546"}}