{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"institution":[{"name":"medRxiv"}],"indexed":{"date-parts":[[2026,9,3]],"date-time":"2026-09-03T21:22:42Z","timestamp":1788470562544,"version":"build-2803163510"},"posted":{"date-parts":[[2026,8,31]]},"group-title":"Health Informatics","reference-count":39,"publisher":"openRxiv","license":[{"start":{"date-parts":[[2026,8,31]],"date-time":"2026-08-31T00:00:00Z","timestamp":1788134400000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"award":["MR\/T044802\/1"],"award-info":[{"award-number":["MR\/T044802\/1"]}],"id":[{"id":"https:\/\/ror.org\/03x94j517","id-type":"ROR","asserted-by":"publisher"}]},{"award":["PF2302\/2"],"award-info":[{"award-number":["PF2302\/2"]}],"id":[{"id":"https:\/\/ror.org\/05ayqqv15","id-type":"ROR","asserted-by":"publisher"}]},{"award":["UKRI3005"],"award-info":[{"award-number":["UKRI3005"]}],"id":[{"id":"https:\/\/ror.org\/001aqnf71","id-type":"ROR","asserted-by":"publisher"}]},{"award":["UKRI4081"],"award-info":[{"award-number":["UKRI4081"]}],"id":[{"id":"https:\/\/ror.org\/001aqnf71","id-type":"ROR","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2026,8,31]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                <jats:sec>\n                  <jats:title>Objective<\/jats:title>\n                  <jats:p>To measure the accuracy of clinical coding, clinician review, and a locally deployed large language model (LLM) in identifying alcohol, drug, and self-harm involvement in emergency department (ED) attendances, and quantify prevalence.<\/jats:p>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>Design<\/jats:title>\n                  <jats:p>Two-phase diagnostic accuracy study. In a validation week, the identification strategies were assessed against a conflict-adjudicated reference standard (n=2,256); the LLM was then applied to n=105,096 annual attendances at the same site.<\/jats:p>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>Setting<\/jats:title>\n                  <jats:p>UK Type 1 Emergency Department treating patients \u226516yrs.<\/jats:p>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>Main outcome measures<\/jats:title>\n                  <jats:p>Prevalence quantification compared with the reference standard; sensitivity, specificity, and balanced accuracy of each strategy; monthly identification rates and adjusted annual prevalence.<\/jats:p>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>Results<\/jats:title>\n                  <jats:p>The reference standard identified 12.1% of attendances as involving alcohol, drugs, or self-harm (coding 6.0%; clinician 10.0%, LLM 15.6%). LLM balanced accuracy matched or outperformed clinician review in all three domains (alcohol 0.942 v 0.930, p=0.635; drug 0.959 v 0.791, p&lt;0.001; self-harm 0.982 v 0.908, p=0.004). Coding recorded 1.07 domains per identified patient against 1.32 in the reference standard. Adjusted annual prevalence corresponded to 12,890 domain involvements per year not identifiable in coded data. Subdomain classification found at least 81.6% of self-harm attendances required medical assessment for injury or overdose before psychiatric review.<\/jats:p>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>Conclusions<\/jats:title>\n                  <jats:p>Clinical coding identified fewer than half of presentations involving alcohol, drugs, and self-harm and rarely captured co-occurring domains; under-recording was present across a full year. A locally deployed LLM generated more complete structured data from existing clinical text within NHS infrastructure, at a scale which is not feasible for manual review.<\/jats:p>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>What is already known on this topic<\/jats:title>\n                  <jats:list list-type=\"bullet\">\n                    <jats:list-item>\n                      <jats:p>Coded emergency department data underpin national surveillance, commissioning, research, and service planning, but the size and direction of their error for specific conditions have not been measured against a validated reference standard in an unselected population.<\/jats:p>\n                    <\/jats:list-item>\n                  <\/jats:list>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>What this study adds<\/jats:title>\n                  <jats:list list-type=\"bullet\">\n                    <jats:list-item>\n                      <jats:p>In a UK emergency department, clinical coding identified 6.0% of attendances as involving alcohol, drugs, or self-harm against an adjudicated reference-standard prevalence of 12.1%.<\/jats:p>\n                    <\/jats:list-item>\n                    <jats:list-item>\n                      <jats:p>In blinded head-to-head comparison, a locally deployed, open-source large language model achieved similar or higher balanced accuracy than clinician review. Applied to 105,096 attendances over 12 months, it identified 14.3% of attendances against 4.1% by coding, in every month of the year.<\/jats:p>\n                    <\/jats:list-item>\n                  <\/jats:list>\n                <\/jats:sec>\n                <jats:sec>\n                  <jats:title>How this study might affect research, practice, or policy<\/jats:title>\n                  <jats:list list-type=\"bullet\">\n                    <jats:list-item>\n                      <jats:p>Prevalence estimates and service planning based on coded emergency department data are likely to understate both the burden and the co-occurrence of these conditions. The majority (81.6%) of classified self-harm presentations required medical assessment for injury or overdose; only 18.4% did not, a figure directly relevant to mental health emergency-care streaming. Locally deployed open-source language models offer a scalable, governance-compatible method for identifying these presentations from existing free text.<\/jats:p>\n                    <\/jats:list-item>\n                  <\/jats:list>\n                <\/jats:sec>","DOI":"10.64898\/2026.08.26.26361443","type":"posted-content","created":{"date-parts":[[2026,9,1]],"date-time":"2026-09-01T00:15:22Z","timestamp":1788221722000},"source":"Crossref","is-referenced-by-count":0,"title":["Half of alcohol, drug, and self-harm presentations cannot be identified in coded emergency department data: a diagnostic accuracy study of a large language model"],"prefix":"10.64898","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6231-2603","authenticated-orcid":false,"given":"Chris","family":"Humphries","sequence":"first","affiliation":[{"name":"Centre for Cardiovascular Science, University of Edinburgh, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3065-7495","authenticated-orcid":false,"given":"Jonathan","family":"Brett","sequence":"additional","affiliation":[{"name":"UNSW School of Clinical Medicine, Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Franz","family":"Gruber","sequence":"additional","affiliation":[{"name":"DataLoch, Usher Institute, University of Edinburgh, Edinburgh, UK"},{"name":"Centre for Population Health Sciences, Usher Institute, University of Edinburgh, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Edward","family":"James","sequence":"additional","affiliation":[{"name":"Department of Emergency Medicine, NHS Lothian, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tuesday I","family":"McKendrick","sequence":"additional","affiliation":[{"name":"Department of Emergency Medicine, NHS Lothian, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kimberley C","family":"McNairn","sequence":"additional","affiliation":[{"name":"Department of Emergency Medicine, NHS Lothian, Edinburgh, UK"},{"name":"Emergency Medicine Research Group Edinburgh, NHS Lothian, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Anna","family":"Miell","sequence":"additional","affiliation":[{"name":"Emergency Medicine Research Group Edinburgh, NHS Lothian, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rachel","family":"O\u2019Brien","sequence":"additional","affiliation":[{"name":"Emergency Medicine Research Group Edinburgh, NHS Lothian, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Fahrurrozi","family":"Rahman","sequence":"additional","affiliation":[{"name":"DataLoch, Usher Institute, University of Edinburgh, Edinburgh, UK"},{"name":"Centre for Population Health Sciences, Usher Institute, University of Edinburgh, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lisa","family":"Sch\u00f6lin","sequence":"additional","affiliation":[{"name":"Centre for Population Health Sciences, Usher Institute, University of Edinburgh, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Morven","family":"Stewart","sequence":"additional","affiliation":[{"name":"Department of Emergency Medicine, NHS Lothian, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Arlene","family":"Casey","sequence":"additional","affiliation":[{"name":"DataLoch, Usher Institute, University of Edinburgh, Edinburgh, UK"},{"name":"Centre for Population Health Sciences, Usher Institute, University of Edinburgh, Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"54368","reference":[{"key":"2026090313500713000_2026.08.26.26361443v1.1","unstructured":"NHS England \/ NHS Digital. Hospital accident and emergency activity 2023-24. 2024. Available from: https:\/\/digital.nhs.uk\/data-and-information\/publications\/statistical\/hospital-accident--emergency-activity\/2023-24 [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.2","unstructured":"Public Health Scotland. A&E activity and waiting times, year ending 31 March 2024. 2024. Available from: https:\/\/publichealthscotland.scot\/publications\/ae-activity-and-waiting-times\/ [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.3","unstructured":"Welsh Government (StatsWales). NHS emergency department attendances, 2023\u201324. 2024. Available from: https:\/\/statswales.gov.wales [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.4","unstructured":"Department of Health (Northern Ireland). Northern Ireland hospital statistics: emergency care 2023\/24. 2024. Available from: https:\/\/www.health-ni.gov.uk [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.5","unstructured":"NHS Digital. Emergency Care Data Set (ECDS): analytical technical output specification. 2026. Available from: https:\/\/digital.nhs.uk\/data-and-information\/data-collections-and-data-sets\/data-sets\/emergency-care-data-set-ecds [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.6","unstructured":"NHS Digital. Emergency Care Data Set (ECDS) v4.0: implementation guidance. 2023. Available from: https:\/\/digital.nhs.uk\/binaries\/content\/assets\/website-assets\/isce\/0092-2062\/0092-2062172022guidance.pdf [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.7","doi-asserted-by":"publisher","DOI":"10.1007\/s12553-020-00517-3"},{"key":"2026090313500713000_2026.08.26.26361443v1.8","unstructured":"Scottish Government. Preventing Harm, Promoting Recovery: Scotland\u2019s Alcohol & Drugs Strategic Plan 2026\u20132035. 2026. Available from: https:\/\/www.gov.scot\/publications\/preventing-harm-promoting-recovery-scotlands-alcohol-drugs-strategic-plan-2026-2035. [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.9","unstructured":"HM Government. From harm to hope: a 10-year drugs plan to cut crime and save lives. 2022. Available from: https:\/\/www.gov.uk\/government\/publications\/from-harm-to-hope-a-10-year-drugs-plan-to-cut-crime-and-save-lives\/from-harm-to-hope-a-10-year-drugs-plan-to-cut-crime-and-save-lives [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.10","unstructured":"Department of Health and Social Care. Suicide prevention in England: 5-year cross-sector strategy. 2023. Available from: https:\/\/www.gov.uk\/government\/publications\/suicide-prevention-strategy-for-england-2023-to-2028\/suicide-prevention-in-england-5-year-cross-sector-strategy [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.11","doi-asserted-by":"publisher","DOI":"10.1136\/emermed-2022-212538"},{"key":"2026090313500713000_2026.08.26.26361443v1.12","doi-asserted-by":"publisher","DOI":"10.1016\/S2468-2667(25)00096-9"},{"key":"2026090313500713000_2026.08.26.26361443v1.13","doi-asserted-by":"publisher","DOI":"10.1136\/bmjopen-2016-011664"},{"key":"2026090313500713000_2026.08.26.26361443v1.14","doi-asserted-by":"publisher","DOI":"10.1136\/emermed-2025-215530"},{"key":"2026090313500713000_2026.08.26.26361443v1.15","unstructured":"NHS England. Urgent and emergency care plan 2025\/26. 2025. Available from: https:\/\/www.england.nhs.uk\/publication\/urgent-and-emergency-care-plan-2025-26\/ [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.16","unstructured":"Department of Health and Social Care. Major expansion of community mental health support across England. 2026. Available from: https:\/\/www.gov.uk\/government\/news\/major-expansion-of-community-mental-health-support-across-england [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.17","unstructured":"Royal College of Psychiatrists. RCPsych responds to plans to open mental health A&E centres across England. 2025. Available from: https:\/\/www.rcpsych.ac.uk\/news-and-features\/latest-news\/detail\/2025\/05\/29\/rcpsych-responds-to-plans-to-open-mental-health-a-e-centres-across-england [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.18","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-023-00970-0"},{"key":"2026090313500713000_2026.08.26.26361443v1.19","unstructured":"Department of Health and Social Care. Better, broader, safer: using health data for research and analysis. 2022. Available from: https:\/\/www.gov.uk\/government\/publications\/better-broader-safer-using-health-data-for-research-and-analysis [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.20","doi-asserted-by":"publisher","DOI":"10.3389\/fpubh.2026.1901339"},{"key":"2026090313500713000_2026.08.26.26361443v1.21","doi-asserted-by":"publisher","DOI":"10.1001\/jama.2024.21700"},{"key":"2026090313500713000_2026.08.26.26361443v1.22","doi-asserted-by":"publisher","DOI":"10.1038\/s41467-024-52415-1"},{"key":"2026090313500713000_2026.08.26.26361443v1.23","doi-asserted-by":"publisher","DOI":"10.1038\/s41591-025-03953-8"},{"key":"2026090313500713000_2026.08.26.26361443v1.24","doi-asserted-by":"publisher","DOI":"10.1016\/j.jclinepi.2007.11.008"},{"key":"2026090313500713000_2026.08.26.26361443v1.25","doi-asserted-by":"publisher","DOI":"10.4135\/9781071878781"},{"key":"2026090313500713000_2026.08.26.26361443v1.26","unstructured":"Meta AI. Llama 3.1 model card (Meta-Llama-3.1-70B-Instruct). 2024. Available from: https:\/\/huggingface.co\/meta-llama\/Llama-3.1-70B-Instruct [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.27","doi-asserted-by":"publisher","DOI":"10.1007\/BF02295996"},{"key":"2026090313500713000_2026.08.26.26361443v1.28","doi-asserted-by":"publisher","DOI":"10.1201\/9780429246593"},{"key":"2026090313500713000_2026.08.26.26361443v1.29","doi-asserted-by":"publisher","DOI":"10.1016\/0895-4356(90)90159-M"},{"key":"2026090313500713000_2026.08.26.26361443v1.30","doi-asserted-by":"publisher","DOI":"10.1093\/oxfordjournals.aje.a112510"},{"key":"2026090313500713000_2026.08.26.26361443v1.31","unstructured":"Nuffield Trust. The changing terrain of mental health in A&E. 2026. Available from: https:\/\/www.nuffieldtrust.org.uk\/news-item\/the-changing-terrain-of-mental-health-in-ae-specialised-care-or-the-same-old-bottlenecks [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.32","unstructured":"NHS Digital. Public attitudes to data in the NHS and social care. 2024. https:\/\/digital.nhs.uk\/data-and-information\/keeping-data-safe-and-benefitting-the-public\/public-attitudes-to-data-in-the-nhs-and-social-care [accessed Aug 2026]"},{"key":"2026090313500713000_2026.08.26.26361443v1.33","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.20702863"},{"key":"2026090313500713000_2026.08.26.26361443v1.34","doi-asserted-by":"publisher","DOI":"10.1038\/s41597-022-01899-x"},{"key":"2026090313500713000_2026.08.26.26361443v1.35","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-023-00896-7"},{"key":"2026090313500713000_2026.08.26.26361443v1.36","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2005.11401"},{"key":"2026090313500713000_2026.08.26.26361443v1.37","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2404.16130"},{"key":"2026090313500713000_2026.08.26.26361443v1.38","doi-asserted-by":"publisher","DOI":"10.1101\/2024.09.02.24312917"},{"key":"2026090313500713000_2026.08.26.26361443v1.39","doi-asserted-by":"publisher","DOI":"10.1093\/jamia\/ocae146"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.64898\/2026.08.26.26361443","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,3]],"date-time":"2026-09-03T20:50:14Z","timestamp":1788468614000},"score":1,"resource":{"primary":{"URL":"http:\/\/medrxiv.org\/lookup\/doi\/10.64898\/2026.08.26.26361443"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8,31]]},"references-count":39,"URL":"https:\/\/doi.org\/10.64898\/2026.08.26.26361443","relation":{},"subject":[],"published":{"date-parts":[[2026,8,31]]},"subtype":"preprint"}}