Documentation / Viewer

A patient: Digital twin

The patient compared with matched patients in the vault (twins): where the condition is heading under each treatment, how it progresses, what treatments did for the twins, and a draft care plan for download.

Digital twin tab of a patient with type 2 diabetes
Digital twin tab of a patient with type 2 diabetes
  1. Views, marker and scenario – Trajectory, Progression or Treatment and plan; the result to follow (here HbA1c, eGFR, weight or blood pressure); and the treatment scenario to compare. Below, the guideline the advice follows.
  2. The patient among the twins – The latest result with its percentile among the twins, and how many twins were matched.
  3. Trajectory – The patient’s results, the twins’ range behind them, and two forecasts from today: the current treatment as a dashed blue line and the scenario in orange, each with 50% and 80% ranges. Events and medicines run below the chart.
  4. Where the patient stands – For each result, the share of the twins with a better value.
  5. Risk over the next 5 years – Complications, events and reaching the target, under the current treatment and under the scenario, with 90% intervals from the twins’ follow-up.
  6. How the twins were found – The patient next to the median twin on every value used for matching.

A Patient with one of the conditions below has a Digital twin tab. It finds the patients in the vault who were in the same state at the same point of the same condition (the twins), follows them from that point, and shows what happened to them next, with and without a treatment. When a patient has several conditions, choose one at the top; with type 2 diabetes, kidney disease and heart failure together there is also a Combined page.

Type 2 diabetes
HbA1c, eGFR, weight and blood pressure; scenarios GLP-1 RA, SGLT2 inhibitor, basal insulin, DPP-4 inhibitor, finerenone.
Kidney disease
eGFR with the KDIGO stages, urine ACR and potassium; finerenone, SGLT2 inhibitor, GLP-1 RA, ACE inhibitor or ARB, blood pressure. A Condition N18 or two eGFR results under 60 at least 90 days apart.
Heart failure
NT-proBNP, NYHA class, admissions; the four medicine classes, an SGLT2 inhibitor, an MRA, sacubitril/valsartan.
Combined
HbA1c, eGFR and NT-proBNP on one time axis with one medicine list, each medicine judged against the three conditions, and the risks that compete.
COPD
FEV1 (% predicted) with the GOLD grades and flare-ups; triple inhaler, pulmonary rehabilitation, dupilumab.
Rheumatoid arthritis
DAS28-CRP with the activity levels; switching to a JAK or IL-6 inhibitor, another TNF inhibitor or abatacept.
Cardiovascular risk
People without cardiovascular disease whose 10-year risk is recorded (QRISK3, SCORE2, PREVENT or a local score); statin and blood pressure treatment.
Atrial fibrillation
Stroke and major bleeding over 5 years with and without an anticoagulant; CHA₂DS₂-VA and HAS-BLED (recorded, else worked out from the record).

The views

Trajectory
The patient’s results, the twins’ range behind them (10–90% and median, at the same point in their condition), and the forecasts from today: the current treatment as a dashed blue line, the chosen scenario in orange, each with see-through 50% and 80% ranges. Admissions, events and procedures are marked under the chart, and the medicines run as lanes below it. Choose the marker and the scenario at the top.
Progression
The states of the condition, how many patients in the cohort reached each, the share who moved on within 5 years and the median time, the patient’s path, and what happened to twins in the same state by the treatment they started.
Treatment effect
For each treatment: the change after 12 months in twins who started it within 6 months, against matched twins who started none of them, with 95% intervals. Choose the outcome.
Options
Each option side by side: the forecast, the risks, how many twins it rests on, and what the chosen guideline says.
Next steps
Suggestions from the forecast and the guideline: the advised step, checks after a change, screening and vaccinations due, and when a forecast crosses a threshold.

Overnight, or when the tab is opened

The suite computes the tab for every patient with a covered condition once a night (at 02:00 server time; set FV_TWIN_HOUR to change the hour, FV_TWIN_OFF=1 to switch the run off), together with a back-test of the model per condition. The box at the top says which result you see: Computed overnight on the server, or No overnight result: computed when you opened this tab (a patient added today, or before the first night). Recompute now computes it again at once. Results are kept in the suite’s own database, not in the vault.

The draft care plan

The plan is never written to the vault. Document (PDF) opens a printable page (choose Save as PDF), Document (Word) downloads a file Word opens, and FHIR® CarePlan (JSON) downloads a CarePlan with status draft and intent proposal for the vault’s FHIR version (R4: the steps as activity.detail; R5: contained Tasks referenced by activity.plannedActivityReference), which a clinical system can import.

In the background

Twins: for each patient in the cohort, the moment in their history (one of their results) closest to the patient now, by weighted, standardised differences in age, sex, years since diagnosis, the latest results, slopes, recent events and the medicine classes they were on; the nearest of those (about 15% of the cohort, at least 50). A scenario uses the nearest twins who started that treatment within 6 months of that moment; current treatment the nearest who started none of them. Forecasts are the twins’ change from that moment added to the patient’s latest value. Risks are Kaplan–Meier estimates of the first event after that moment (deaths end the follow-up), with 90% intervals. The back-test forecasts up to 150 patients of the cohort a year back and compares with what happened.

NoteNeeds viewer:twin (Digital twin) and access to Patient, Condition and Observation; types your account cannot see are not read. The tab shows the patient’s own record and counts and percentages of twins, never other patients; groups of fewer than 20 twins are not shown. Codes: ICD-10 and SNOMED CT® for conditions, LOINC® for results, ATC (or the medicine’s name) for medicines. Observational data: the twins can differ in ways the matching did not catch. Decision support, not a prescription.