Event dependency leading up to a first cancer diagnosis

Gap-conditioned decoder association graphs from genEHR, an EHR foundation model over longitudinal clinical event sequences at MGB. At every gap between visits the decoder predicts the next clinical events; these graphs aggregate those predictions, keyed by the preceding visit's codes, over 5.7 million pre-diagnostic sites. A cancer code is never a source — every sequence ends at the first cancer, so nothing downstream of diagnosis can appear.

All patients. The population reference, and the best measured of the three.

659,015patients
5,697,125pre-diagnostic gap sites
4cancers passing the gates

Event dependency leading up to a first cancer

Cancer hub page, All patients

Panel A is the learned event embedding, coloured by clinical category across four vocabularies and sized by frequency. 35 of 37 categories reach 15-NN purity above three times chance in the representation, with no ontology given to the model; three magnified regions show structure below chapter level — acute versus chronic respiratory disease, sprains versus fractures, upper gastrointestinal versus hernia versus hepatobiliary. Panel B holds the selected cancers, each with a diagnosis neighbourhood (left, including edges among the predecessors) and a cross-modal hub (right). PDF · SVG

Cancers meeting the evidence gates

Cancerexpected first diagnoses diagnosis + cross-modalstrongest predecessors
Malignant neoplasm of ovary and other uterine adnexa4245 + 9Carcinoembryonic Ag [Mass/volume] in Serum o, Choriogonadotropin [Units/volume] in Serum o, sodium phosphate, magnesium citrate
Malignant neoplasm of pancreas1508 + 9Diseases of pancreas, Other disorders of biliary tract, glucagon, Portal vein thrombosis
Malignant neoplasm of brain3908 + 9Other conditions of brain, levetiracetam, Phenytoin [Mass/volume] in Serum or Plasma -, venlafaxine
Myeloid leukemia1548 + 9Sirolimus [Mass/volume] in Blood - normal, Aplastic anemia and other bone marrow failur, Haptoglobin [Mass/volume] in Serum or Plasma, Lactate dehydrogenase [Enzymatic activity/vo
How to read these, and what they do not show.