HealthGraph

Topic · English

The health graph.

An app that collects six kinds of data has to decide somewhere how they relate to each other. Most decide it afterwards, with a score. HealthGraph decides it in advance: every measurement gets a type, every connection between two measurements gets a written-down relationship type, and every query only travels along paths that were defined beforehand.

HealthGraph app: every capability on one screen, one connected graph

A graph here is not an analysis, it is where things are put. The type comes first, then the value. That is why the app can answer a question a year from now that nobody had asked yet when the measurement was taken.

In short

What a graph is here, and what it is not

The difference between a list and a graph is not the word. It is the obligation. A list stores rows. A graph stores rows plus the relationship between them, and that relationship has a name.

The list

Pulse, sleep, medication, meals, cycle, documents: six tables, each readable on its own. Together they are only next to each other, and the question "why was Tuesday heavy?" stays unanswered.

The graph

Every entry gets a node type, and every connection between two entries gets a relationship type that already exists in the vocabulary. HAS_SLEEP_EPISODE means something different from HAS_MEASUREMENT, and a query that links the two has to be able to name that difference.

The time

Every node carries a timestamp, and most carry a day or visit reference. So the graph does not just know that something happened. It knows on which day, in which order, and in what relation to another event.

What that changes in practice

The storage does not decide what you can see later. It decides only whether a question you ask in six months can be answered at all. In a list it cannot.

The 21 node types

The names below are the real ones from the service layer. They are deliberately unwieldy: HAS_OBSERVATION says more than "data point", because it says what the node claims.

The person

Patient and PatientStatement. Everything you say about yourself is a statement, not a finding. That separation is the most important node type in the whole model.

The time

Day, Visit, TimelineEvent. The day is the frame, the appointment is the occasion, the event is the entry. A visit is a window that can hold several events, such as a practice visit with three findings.

The measurements

Observation, Measurement, PPGMeasurement, ActivityEvent, SleepEpisode, NutritionIntake, FoodEntry, FoodScan, MedicationTakenEvent, ConditionOccurrence. Every kind of measurement has its own type, and the subtypes carry the origin: PPGMeasurement knows it came from the camera.

The three terminal types

Exactly three: HAS_EVENT_OCCURRED_DURING_LOGGED_ON, HAS_SOURCE_DOCUMENT_DOCUMENTED_IN and RESULTS_FROM_TAKEN_FROM_HAS_CODE_PRESCRIBES. They say where an entry came from, instead of guessing what it contains.

The 32 relationship types

The vocabulary is the part that separates an answer from a claim. These relationship types exist, and these do not.

What exists

HAS_DAY, HAS_VISIT, HAS_OBSERVATION, HAS_MEASUREMENT, HAS_SYMPTOM, HAS_SLEEP_EPISODE, HAS_ACTIVITY, HAS_MEAL, HAS_FOOD_ENTRY, HAS_NUTRITION_INTAKE, HAS_MEDICATION, HAS_MEDICATION_REQUEST, HAS_MEDICATION_INVERSION, HAS_CONDITION, HAS_APPOINTMENT, HAS_STATEMENT, HAS_CODE, HAS_VERSION, HAS_SOURCE_DOCUMENT, DOCUMENTED_IN, AFFECTS, OCCURRED_DURING, LOGGED_ON, RESULTS_FROM, TAKEN_FROM, PRESCRIBES, PRESCRIBED_FOR, ABOUT, SUPERSEDES, REASON_STATED_BY, PATIENT_CONTAINS and the shared reference.

What does not exist

CAUSES, TREATS, NEXT, LEADS_TO. There is no edge claiming that one thing caused another. Not even for "the new pill against the pain". The graph knows both happened on the same day. It does not know which was the reason.

Why that matters

An edge called "causes" would be a lie the moment somebody read it. A doctor who reads "because you take metformin, you have this value" has to be able to check it. Without that edge, they do not have to.

Three questions the graph can answer

The worth of a store is not that it exists. It is what it suddenly hands back that was never written down anywhere.

"Why was Tuesday heavy?"

The graph puts sleep, pulse, medication, meals, mood, weather and weekday into one row. It tells you what was different that day. It does not tell you what caused it, because the data do not support that.

"What was my cholesterol in March?"

That is a search in the graph, not in the file system. The finding from 14 March is linked to its document through HAS_SOURCE_DOCUMENT_DOCUMENTED_IN, the value sits in a Measurement, and the date belongs to the Day. You ask for the value and you get the value, with the date and the source.

"Have the pains been there since the new pill?"

MedicationVersion and SUPERSEDES say when the pack changed. HAS_MEDICATION_TAKEN says whether you took it. ConditionOccurrence says when the symptoms were there. The three give you the period. That it was the pill stays your conclusion, and it should.

What the graph deliberately does not do

These limits are not missing features. They are the reason the answers hold up.

No causality

The graph says what happened next to what. "Because" is in no edge. When the app gives you an explanation, it is an observation about your own entries, not a medical claim.

No invented zeroes

A missing value does not become zero. The graph tells "no entry" apart from "the value is zero". An empty day is a statement about that day, and the app invents nothing for it.

No blended scores

There is no overall score across sleep, pulse and meals. The seven engines each read only their own nodes. Whoever mixes three domains gets a number that means nothing.

No diagnosis

The graph is a tool, not a doctor. What looks clinical belongs in the practice, and the app says so at the places where it matters.

HealthGraph against the usual app

Two columns you can check line by line. Every tick is a claim you can verify against any example.

CapabilityThe usual appHealthGraph
Every entry has a node type✗✓
Every connection has a relationship type✗✓
The query paths are written down in advance✗✓
Missing values stay missing✗✓
No causal edges in the vocabulary✗✓
One timeline across every domain✗✓
Documents, medication and measurements in one place✗✓
Derivations that reach across domains✗✓
A score built from unrelated numbers✗✗

Frequently asked questions

What is a health graph?

A health graph links your entries so that the relationship between them has a name. Every measurement gets a node type, every connection gets a relationship type. That way a question can be answered later that nobody had asked yet when the measurement was taken.

Why are the names so unwieldy?

Because they are precise. HAS_SLEEP_EPISODE and HAS_MEASUREMENT mean different things, and a query that mixes the two has to be able to justify it. The name is the promise.

Can the app tell me why I felt bad?

No. The graph can say what was different that day. It cannot say what caused it, because no edge claims that one thing triggered another. That would be a medical claim, and the data do not carry it.

What happens to missing values?

They stay missing. The graph tells "no entry" apart from "the value is zero". A gap is not filled in, because a filled-in value later looks like a real measurement.

Is my health history sold?

No. The graph lives on your device, encrypted, and is deleted on logout. There is no cloud staging and no analytics SDK.

How is this different from an ordinary health app?

The ordinary app stores rows and computes when it reads them. HealthGraph stores typed nodes, and the query paths are written down in advance. The difference does not show while you type. It shows months later, when the question is one you do not have yet.

Read next

Matching questions

Health app comparison: every kind, side by side · What is a health app? · How we write

Get early access.

Three fields, one confirmation by email, no numbers. The invitation comes, usually within days.

Only for the invitation. Privacy.