# Foresight (generative EHR model)

Source: https://onco.cc/technologies/foresight-ehr/  
OnCo record `foresight-ehr` (Technology). Data CC BY-NC 4.0, attribute "Data from OnCo (onco.cc)"; commercial use needs a licence.

## TL;DR

A model trained on millions of hospital records that forecasts a patient's next diagnoses.

## Summary

Foresight is a generative model of electronic health records from King's College London, an autoregressive transformer trained on sequences of coded clinical events so it can forecast a patient's next diagnoses in the way a language model predicts the next word. The Lancet Digital Health 2024 paper described the GPT-style model over coded EHR timelines, and Foresight 2 extended training to more than 5M patients. In oncology the use case is risk and trajectory forecasting, for instance flagging patients whose records suggest an undiagnosed cancer or a likely complication. Because it learns from coded data it inherits the biases and gaps of coding practice, and prospective evaluation of its forecasts changing care has not been reported. For a newcomer: Foresight reads a patient's record history and predicts what diagnoses might come next.

## Fields

- Kind: Technology
- Status: emerging
- Last checked: 2026-09-08
- Tags: foundation-model; ehr
- Principle: Autoregressive transformer over clinical event sequences.
- Since: 2024
- Strengths: Longitudinal reasoning
- Limitations: Bias in coded data

## Sources

- Lancet Digital Health 2024: https://doi.org/10.1016/S2589-7500(24)00025-6

## Connected records

- fronts: [AI & Computation](https://onco.cc/fronts/ai-computation/)
- key papers: [Foresight-a generative pretrained transformer for modelling of patient timelines using electronic health records: a retrospective modelling study](https://onco.cc/key-papers/paper-kraljevic-lancet-digit-health/)
- roadmaps: [AI in oncology roadmap: pattern readers → foundation models → agents in the workflow](https://onco.cc/roadmaps/ai-oncology-roadmap/), [AI in the oncology clinic: from narrow cleared tools to multimodal decision support](https://onco.cc/roadmaps/ai-oncology-clinic/)

---
JSON: https://onco.cc/api/v1/entities/foresight-ehr.json