Case studies›Clinical data platform

Turning 44 million+ clinical records from 3.4 million patients into a hospital-wide clinical intelligence at UCLH

Most of a patient’s story is written, not coded. See how University College London Hospitals made all of it usable, from Epic notes to scanned archives.

University College London Hospitals NHS Foundation Trust4 min read

Executive Summary

The problem

University College London Hospitals NHS Foundation Trust (UCLH) is a research-focused NHS hospital that moved to Epic as its main electronic health record in 2019, with years of earlier records still held in legacy systems.

Ask where the richest information about a patient lives, and the answer is rarely a coded field. Around 80% of what sits in an electronic health record is unstructured: clinical notes, letters, imaging reports and scanned documents that computers can’t easily read.

What they did

UCLH deployed CogStack AI as a single layer across the hospital that gathers this text, reads it with clinical AI and hands it back to researchers and clinical teams as searchable, structured data, without it ever leaving the Trust.

The result

44M+Clinical notes, letters, imaging reports and archived records processed
90%Sensitivity in finding trial-eligible patients vs manual screening
3.4MPatients
2019 -> nowContinuous health trajectory for every patient

The Challenge

Electronic health records were supposed to make patient data easier to use. In many hospitals they simply digitised the paper record. The information is there, but it is spread across systems, in free text and difficult to use for research or service improvement.

  • One patient, many systems. Records sit across the live EHR, departmental and legacy systems, and archives of scanned files, each in its own format.
  • The coded record tells only part of the story. A UCLH audit found that only 62.3% of key diagnoses and comorbidities for COVID-19 admissions were captured in the structured problem list.
  • Reading notes by hand doesn’t scale. Clinical text is written by many people in many styles, with abbreviations, misspellings and negations that simple keyword searches miss.
  • Sensitive text is hard to use safely. Confidentiality concerns make it difficult to get approval to use free-text records for research.

At UCLH, millions of records created before the move to Epic, many of them scanned documents, sat outside the new system’s data feed.

The Solution

UCLH deployed CogStack AI inside its own secure network as one platform with a simple job description: bring the record together, read it, and put it to work, safely.

  • Bring it together. CogStack AI draws records from Epic’s data warehouse and the Trust’s legacy systems, turns scanned documents into readable text, and manages every data flow from a single visual console.
  • Read it. CogStack’s clinical language AI, trained on UCLH’s own records and fine-tuned with clinician input, finds diagnoses, symptoms, medications and procedures in the text, links them to SNOMED CT, and recognises the context such as when something is negated or refers to someone else.
  • Put it to work. Clinicians search the whole record with simple concepts or natural language queries, while data scientists work with the structured results directly in Python or R.
  • Keep it safe. Everything runs within the hospital network. Each project goes through the Trust’s data access and impact assessment process, and a de-identification module removes patient-identifiable details before data are used for research.

Results & Impact

With the record unlocked, UCLH teams have used CogStack AI for very different questions, from trials to prescribing to coding. A few selected examples from the initial paper

In a retrospective simulation of the LeoPARDS sepsis trial, CogStack AI scanned intensive care notes for eligibility criteria. It found every one of the 34 patients recruited at UCLH who had EHR data, matched manual screening with 90% sensitivity, and for 46% of the patients found by both methods, flagged them earlier than the screening team did.

Nationally, around 1 in 5 people with atrial fibrillation aren’t on optimal blood-thinning treatment. A CogStack pipeline now searches 1.4 million discharge summaries to find them, supporting automated audits and individual alerts. Several other NHS trusts are testing it.

The same platform supports work across the hospital and beyond: tracing symptom histories in normal pressure hydrocephalus to improve clinic referrals, and building hearing-health phenotypes. It also helps clinical coders by suggesting ICD-10 codes, analyses more than 20,000 national medication allergy incident reports, and catches follow-up actions clinicians intended but never ordered.

34 / 34Recruited trial patients identified by CogStack
46%Flagged earlier than manual screening (patients both found)
16MArchived records made searchable alongside live data

Why CogStack

CogStack is open source at core and low cost, runs on the hospital’s own infrastructure, and its language models are tuned on the hospital’s own data. Unlike many commercial NLP services, trained elsewhere and hard to adapt, the Trust keeps the intellectual property. Our AI typically needs only 500–600 annotated documents to fine-tune and has been shown to work across hospitals. CogStack has also been deployed at numerous health care providers including South London and Maudsley, Guy’s and St Thomas’ and King’s College Hospital, as well as those overseas, and we find it can be deployed in all healthcare organisations that we have come across.

Read the full study: Noor K, Roguski L, Bai X, Handy A, Klapaukh R, Folarin A, Romao L, Matteson J, Lea N, Zhu L, Asselbergs FW, Wong WK, Shah A, Dobson RJ. Deployment of a Free-Text Analytics Platform at a UK National Health Service Research Hospital: CogStack at University College London Hospitals. JMIR Med Inform. 2022 Aug 24;10(8):e38122. doi: 10.2196/38122. PMID: 36001371; PMCID: PMC9453582.

Topics
AI in healthcareClinical data platformClinical trial recruitmentInformation governanceInformation retrievalResearch infrastructureUnstructured
Find more like this
Validating Waiting Lists at Scale with Clinical NLP: 40,000+ Referrals Safely Closed
Guy’s and St Thomas’ NHS Foundation Trust
Flagging 9 in 10 unplanned intensive care admissions before elective neurosurgery at UCLH
University College London Hospitals NHS Foundation Trust
Mental Health Records Made Usable: Medication Reviews Cut from Hours to Minutes
South London and Maudsley NHS Foundation Trust

Next steps

Is your richest patient data still sitting in free text?

If your Trust wants to turn its notes, letters and archives into a resource for research, patient care, trials and service improvement, talk to us about deploying CogStack in your own environment.