Modelled ceiling — not a personal forecast
The headline figure on this page is an upper bound under best-case assumptions; a conservative floor (the lower confidence bound, or the same model run at a higher cross-correlation) is materially lower. Any individual’s result is unknown and may fall anywhere in — or below — this range. This is a population model, not a prediction about you. Discuss with your physician before acting.
What this number assumes
  • Effect sizes come from observational and registry data — associations with possible residual confounding, not interventional proof.
  • There is no untreated comparison group; benefit is measured against a modelled, not observed, untreated state.
  • Many patients are already treated, so the figure is relative to current care, not no care.
  • A ρ = 0.30 correlation discount is assumed; selected-decedent cohorts add selection bias.
  • A representative subset of effect sizes, not an exhaustive set.
Longevity Research · MIMIC-III/NHANES/ICES Early-Death & Disease Oracle Harness · build v3.63

MIMIC-III/NHANES/ICES → Early-Death and Disease Oracle Harness

Loads your uploaded MIMIC-III demo CSVs, assembles a per-admission record, routes each free-text admission diagnosis to the matching early-death (mortality-endpoint) oracle, computes the maximum achievable risk reduction and life-years saved, and compares against the patient's observed in-hospital outcome. Runs entirely in your browser.

⚠ Runs on the 100-patient MIMIC-III DEMO · processing is local (no upload/network) · representative oracle effect sizes
run the harness first, then print to capture the results

00The modelled ceiling, in one number

“The fox knows many things, but the hedgehog knows one big thing.” — Archilochus, fr. 201

Load the data and press Run — this headline fills in from the records you load: the harness routes every record to the oracle that owns its mode of early death and reports the mean life-years the Bayesian Pareto-optimum set recovers over the disease-specific standard-of-care baseline.

Discussion. Read as a study, this is a transportability-and-ceiling exercise, not a clinical estimate. The mean Δ is an upper bound on the incremental gain: the Pareto hazard ratio is applied multiplicatively to the usual-care hazard, so interventions already embedded in standard care (e.g. a statin) are credited a second time. The overlap-free version — the prescribed-vs-Pareto headroom in §06 — requires the PRESCRIPTIONS table; without it that split reads n/a. Three further bounds on interpretation: (i) the chronic-prevention hazard ratios are transported from ambulatory trials to post-ICU survivors; (ii) the acute first-year mortality m₁ and post-acute hazard h_long are representative literature values, not fit to this cohort; and (iii) where observed actual life-years are absent (a selected-decedent demo with the in-hospital-death flag suppressed), the baseline reflects the disease group's standard-of-care expectation, not the loaded sample. Stated precisely: under transported, literature-calibrated assumptions, the Pareto-optimum set recovers a modeled mean gain per person over standard of care — a hypothesis-generating ceiling to validate against cohort-fit baselines and an overlap-free prescribed-vs-Pareto comparison, not a prescribe-tomorrow figure. Not for clinical or policy use.

01Load the data

Select the CSV files from your archive.zip (at minimum PATIENTS.csv and ADMISSIONS.csv; structured_medical_records.csv is optional and used only to read the stated Age). Files are parsed locally in your browser — nothing is uploaded.

NHANES mode (free, no-application data). This harness also reads NHANES .XPT files directly (SAS-transport, parsed in-browser). Drop a demographics file (DEMO_*.xpt, with SEQN/RIDAGEYR/RIAGENDR), a prescriptions file (RXQ_RX_*.xpt, RXDDRUG), the medical-conditions questionnaire (MCQ_*.xpt/DIQ/KIQ for routing), and a linked-mortality file (SEQN+MORTSTAT+PERMTH_EXM); it auto-detects NHANES, routes by self-reported condition, and runs the same standard-of-care vs Pareto comparison on an ambulatory population (general-population survival baseline). You download the files from CDC and drop them here — the tool can't fetch wwwn.cdc.gov directly (cross-origin). NHANES III fixed-width files (e.g. adult.dat) also load: drop the data file together with its SAS layout (adult.sas) — the tool parses the INPUT column positions and LABELs, then routes by condition label. (Bring one fixed-width file + its .sas per load; prescriptions/mortality can come from .XPT or CSV. Continuous cycles (1999+) are all-.XPT and need no layout.)

Harmonized NHANES 1988–2018 (figshare/Kaggle, Nguyen et al.) — drop the raw modules directly. Download the cleaned demographics, questionnaire (or response), mortality and medications module CSVs and drop all of them here at once. The tool now streams each file and keeps only the handful of columns it needs (SEQN, age, sex, self-reported conditions, MORTSTAT/PERMTH, drug names), so the 1000+-column questionnaire file loads without overwhelming the browser; it then merges them on SEQN and runs the analysis. If the medications module stores drug codes, also drop dictionary_drug_codes.csv. No Python, no fetching — still fully local. Drop the response module too and the harness computes a clinical stage from the labs (kidney/liver/metabolic/pulmonary) for §04b; otherwise stage shows NA-stage. If a file's columns aren't recognised, the load status lists exactly what each file was read as, so a name mismatch is visible rather than silent.

ICES mode (Ontario administrative data — secure analytic environment). For population-scale Ontario data, build a single joined extract inside the ICES Data & Analytic Services (DAS) environment — one row per person keyed on the encrypted IKN (which replaces SEQN) — then drop that CSV here and run in Batched (3M+) mode (§01). Map the DAS holdings to the harness inputs: demographics + death from RPDB; cause of death from ORGD; condition routing from validated cohorts (ODD diabetes, CHF, COPD, ASTHMA, HYPER, DEMENTIA, ORAD, HIV, OCCC) plus OCR (cancer) and diagnoses in DAD/NACRS/OHIP; staging labs from OLIS; medications from ODB (65+/ODSP/OW/LTC) + NMS (all-payer controlled substances). Carry cohort flags and OLIS labs under the harness’s canonical column names (e.g. OSQ060, LBXSCR, LBXGH) so routing and §04b/§04c staging run unchanged. This ascertainment is whole-population, longitudinal and algorithm-validated — better than self-report. Cells representing <6 people display as “Too Low”, matching ICES release rules. Caveats: ODB is age-restricted (65+); OLIS labs begin ~Oct 2007 with no spirometry; measured BP/BMI/race are absent from administrative data (link OHS/CLSA). See the companion note ices_harness_port.html for the full mapping.

⬆ Drop CSV files here, or
No files loaded yet. Accepts: harmonized NHANES module .csv (demographics+questionnaire+mortality+medications, drop together) · MIMIC .csv · NHANES .xpt · NHANES III .dat + .sas.

Streams a single joined person-level CSV (NHANES or ICES, SEQN/IKN-keyed) in fixed-size batches and folds each person into running aggregates — bounded memory, verified to 3,000,000 rows. Per-person (§03), period (§05), staging (§04b/§04c) and prescribed (§06) sections are withheld in this mode; it emits the §04 aggregate (early-death) and §08 not-early-death (via cohort flags; PHQ-9 & LDL from measured values) roll-ups, with cells <6 shown as “Too Low”.

What the MIMIC 100-patient DEMO archive contains. The open PhysioNet demo has demographics (PATIENTS), admissions with a free-text diagnosis and death flags (ADMISSIONS), labs, and free-text reports, but omits PRESCRIPTIONS, DIAGNOSES_ICD and PROCEDURES_ICD. Consequences for that specific file set: routing uses the free-text admission diagnosis (not ICD codes), and the §06 doctor-prescribed-vs-Pareto comparison stays inactive until a medications table is loaded. It is not a limitation of the harness: §06 computes whenever medications are present — the full credentialed MIMIC PRESCRIPTIONS, NHANES RXQ_RX, or ICES ODB/NMS. In every mode the harness reports each person's maximum-achievable risk reduction and life-years (and the observed outcome where the source is outcome-linked).

02Early-death oracles included

Every atlas oracle whose primary endpoint is mortality / early death is included here. Population-count analyses (us-mortality, self-caused-harm, rare-disease) are excluded. Symptom-scale and biomarker endpoints (osteoarthritis, depression, anxiety, ADHD, schizophrenia, PTSD, OCD, bipolar, LDL cholesterol) have no patient-level early-death endpoint and are handled separately in §08 as non-mortality reductions, not life-years.

OracleEndpointInterventionsRouted from diagnoses containing…

03Per-record output (per-person / per-admission rows withheld — enclave release rules)

Subject/AdmAge/SexAdmission diagnosisOracle Prescribed RRMax achievable RRUsual-care baseline LYPareto-optimum LYActual LY (obs.)Δ years addedObserved

04Aggregate roll-up (cells representing <6 people display as “Too Low”, mirroring enclave release rules)

OraclenMean max-achievable RR Mean life-yrs added/admTotal life-yrs addedObserved in-hosp deaths

04bRoll-up by family × disease × subtype × stage (stage computed from response-module labs where a validated algorithm exists; else NA-stage)

The same statistics as the per-family table above, resolved to a finer grain. Each family (oracle) row carries its family-total record count and statistics; beneath it, every disease within the family — read from the actual NHANES condition flags (e.g. cardiac splits into congestive heart failure, coronary heart disease, angina and heart attack; pulmonary into COPD, emphysema and chronic bronchitis; liver into its reported items) — is broken out, then any recorded subtype (diabetes sub-item or cancer site, where the cycle asks it) and stage. Where a person reports several conditions in one family they are attributed to the highest-priority flag, so per-disease counts sum exactly to the family total. NHANES does not report a clinical stage, so this build computes one from the response-module labs for the four oracles with a validated cross-sectional algorithm: kidney → KDIGO G-stage (CKD-EPI 2021 eGFR), liver → FIB-4 fibrosis band, metabolic → ADA glycaemic stage, pulmonary → GOLD (where spirometry exists). Oracles with no NHANES staging analog (cancer/heart/brain — no TNM, NYHA, or Child-Pugh) remain NA-stage. Computed stages are single-visit categorisations (chronicity unconfirmable), not chronicity-confirmed diagnoses; an explicit variant_stage column still overrides them. Cells with fewer than 6 records are suppressed, mirroring enclave release rules.

FamilyDiseaseSubtypeStagenMean max-achievable RR Mean life-yrs added/recTotal life-yrs addedObserved deaths Mean ageMean actual LY (decedents)Mean usual-care LE Mean Pareto LEMean Δ LESD Δ LE

04cLab-derived disease staging (whole loaded cohort — independent of self-reported diagnosis)

Every loaded participant who has the required response-module labs is staged across all 18 validated algorithms — not gated by self-report or by routing to a mortality oracle, and not subject to the §04b small-cell suppression. This is the population-level staging the lab data actually supports: a person with eGFR 40 is CKD G3b whether or not they reported kidney disease. Requires demographics + response module CSVs. Stages are single-visit categorisations (chronicity unconfirmable). If the table is empty, the diagnostic line below states why.

Run the harness with the response module loaded to populate.
Disease / algorithmStagen% of stageddistribution
Not yet run.

05Actual vs usual-care baseline vs Pareto-optimum life-years ("years added")

The usual-care baseline is the standard of care: the empirical survival of patients with this disease who received ordinary treatment, including medications taken in the recent past (e.g. a statin they were already on). It is not an untreated counterfactual — there is no plausible untreated cohort to estimate it from. The Bayesian Pareto optimum is a different, specified set of interventions. So this table compares two regimens — standard of care vs the Pareto-optimum set — and the years added is Pareto-optimum LE − usual-care baseline LE. A high disease-specific acute first-year mortality is carried by both regimens; the Pareto set acts on the modifiable post-acute hazard. Observed actual life-years (from dod − admittime) are shown as the empirical anchor.

OraclenAvg age @ interventionAvg age @ death Avg actual LY (obs.)Usual-care baseline LYPareto-optimum LYAvg Δ years added

What the delta is — and the one caveat that remains. This compares the standard-of-care regimen to the Pareto-optimum set. The Pareto effect is applied multiplicatively to the usual-care hazard, so where the two regimens overlap — e.g. both include a statin — the model still credits that shared intervention, making the headline Δ an upper bound on the incremental gain. The clean, overlap-free version is in §06: the prescribed-vs-Pareto headroom measures the Pareto optimum relative to what the patient was actually given (from PRESCRIPTIONS), so it nets out the standard care already in the baseline. Two further notes: the Pareto set acts only on the post-acute hazard (a statin does not avert acute septic death), and observed actual LY runs below the usual-care baseline here because this demo cohort is selected decedents — the baseline reflects the disease group's realistic standard-of-care expectation, not this biased sample.

06Doctor-prescribed vs Pareto-optimum (requires the PRESCRIPTIONS table)

The demo archive you may have loaded omits PRESCRIPTIONS. Load it (it ships with the full credentialed MIMIC-III, ~4.16M rows, and with the open 100-patient demo on PhysioNet) and this section activates: each admission's ordered drugs are string-matched (DRUG/DRUG_NAME_GENERIC) to the routed oracle's interventions, giving the doctor-prescribed risk reduction, the gap to the Pareto optimum, and a split of life-years into already secured by the prescribed protocol vs remaining headroom.

Oraclen (with Rx)Mean prescribed RRMean Pareto RR Mean gap (unrealized)Mean yrs securedMean headroom yrs

Interpretation caveats. MIMIC PRESCRIPTIONS are inpatient CPOE orders during the stay — a mix of acute ICU drugs (pressors, sedatives, antibiotics, which map to no prevention oracle) and continued chronic medications (statins, antihypertensives, etc., which do). So the prescribed RR here is a lower bound on the true outpatient regimen and is not adherence-weighted (a single inpatient order ≠ chronic use). Lifestyle and procedural interventions (exercise, diet, weight loss, rehab) never appear in a drug table, so part of the "gap to Pareto" is structurally unmeasurable from prescriptions alone.

07Methods & caveats

08Alternative (non-mortality) endpoints (records with no mortality endpoint)

Data sources: MIMIC-III/IV Clinical Database (MIT Laboratory for Computational Physiology / Beth Israel Deaconess Medical Center) · NHANES (US CDC / National Center for Health Statistics) · ICES (Ontario administrative health data). All processing is local in the browser; effect sizes are representative literature models. Not for clinical or policy use.
07
Cohort-fit effects — backdoor-adjusted Cox model
The only section on this site where a hazard ratio is estimated rather than transported. Requires NHANES linked mortality. COX BUILD 6.01 — if this badge is missing or shows an older number, your browser is serving a cached file. Hard-refresh (Ctrl+Shift+R).
ATLAS
Oracle coverage — now 91 across 22 domains
The atlas this harness routes into has grown to 91 non-tool oracles (was 74), adding 17 gap-fill conditions in three tiers: Tier 1 neonatal/preterm, malaria, diarrhoeal disease, maternal mortality; Tier 2 aortic aneurysm/dissection, COVID-19, peripheral artery disease, PCOS, PTSD/OCD, fibromyalgia; Tier 3 acute pancreatitis, gallstone disease, STIs, menopause, systemic lupus, eating disorders, stimulant-use disorder. Every oracle now carries a machine-readable bcn-data block, so the atlas-wide Pareto report is regenerated directly from those.

Harness scope note: this harness routes US-adult records (MIMIC ICU / NHANES / ICES). The four Tier-1 additions are pediatric or global (neonatal, malaria, maternal, diarrhoeal) and fall outside these cohorts, so they are catalogued in the atlas but not routed here. The new adult non-mortality oracles (fibromyalgia, PCOS, SLE, stimulant-use, eating disorders, menopause) can be added to NONMORT_ORACLES as their effect sizes are reconciled against the dashboards; PTSD and OCD are already modelled (§ above).
Complete per-oracle reconciliation — every one of the 92 non-tool oracles is accounted for below (17 recent additions tagged NEW). Counts: 38 routed to a mortality console · 45 non-mortality · 5 out-of-scope · 3 excluded.
Routed to a mortality console (38)
acute-pancreatitis NEW → liver-diseaseadiposity-obesity → metabolic-diseaseafib → heart-disease
all-cause-mortality → all-cause-mortalityals → brainamyloidosis → heart-disease
aortic-disease NEW → heart-diseaseasthma → pulmonarybrain → brain
cancer → cancercovid19 NEW → covid19dementia → brain
epilepsy → braingallstone-disease NEW → liver-diseaseheart-disease → heart-disease
heat-stroke → all-cause-mortalityhf → heart-diseasehiv → all-cause-mortality
hypertension → heart-diseasekidney-disease → kidney-diseaseliver-disease → liver-disease
lymphoma-wm → cancermetabolic-disease → metabolic-diseasemultiple-sclerosis → brain
osa → pulmonaryparkinsons → brainperipheral-artery-disease NEW → heart-disease
pneumonia → pulmonaryportal-vein-thrombosis → heart-diseasepre-eclampsia-klk1 → all-cause-mortality
pulmonary → pulmonarysepsis → all-cause-mortalitysle NEW → sle
stroke → braint2dm → metabolic-diseasetransplant-mortality → transplant-mortality
tuberculosis → pulmonaryvte → heart-disease

adult-cognition → non-mortality — the 92nd oracle (Adult Cognition: g / crystallized / fluid / processing speed) has a cognitive, not a death, endpoint. It is out of the mortality-harness scope and routes to no early-death console; it is counted in the atlas total (92) but contributes 0 to death / DALY coverage. Reconciled here for completeness.

Non-mortality — validated in §08 (45)
adhdanemiaanxiety-sleep
asd-behavioursaudbipolar-ii
bphcachexiacholesterol
dental-cariesdepressiondermatology
eating-disorders NEWedendometriosis
fallsfibroidsfibromyalgia NEW
gerdgouthearing-loss
hpvibdibs
immunologylow-back-painmenopause NEW
migrainemyopiaophthalmology
osteoarthritisosteoporosisoud
painpcos NEWperiodontal
peripheral-neuropathyptsd-ocd NEWra
schizophreniasti NEWstimulant-use-disorder NEW
tension-headachethyroidtobacco
Out-of-scope — pediatric / global cohort (5)
diarrhoeal-disease NEWmalaria NEWmaternal-mortality NEW
mccune-albrightneonatal-preterm NEW
Excluded — population-count analysis (3)
rare-diseaseself-caused-harmus-mortality
07ρ
Empirical pathway redundancy — measured ρ̂ vs assumed ρ̄
RHO 1.0
Estimates ρ directly from this cohort (marginal-vs-joint Cox on §07's own records) for the pathways NHANES observes via RXQ_RXcv (statin+aspirin) and metab (statin+metformin) — and prints a copyable report so the measured values can be transferred back into the oracle's DEFAULT_RHO. Reuses the same Cox engine as §07.