Diagnosis
One patient's diagnosis at one visit: the code, when it started, and whether it has resolved.
383,998 records · 8 data fields · 4 relationships
Source: conditions.csv → table diagnosis → displayed as Diagnosis why?
This data originates from Synthea as conditions (conditions.csv), one row per row, is stored in the diagnosis SurrealDB table, and displayed as Diagnosis for clinical-domain familiarity.
Relationship map — Diagnosis highlighted
Click any node to explore its schema. Highlighted relationships connect to or from Diagnosis.
Field definitions
opens the record when pasted into search points at another record, named under Links to
| Field | Type | Description | Links to |
|---|---|---|---|
patient_id
Diagnosis of
|
string |
Foreign key to the Patient. | Patient |
encounter_id
Diagnosed during
|
string |
Foreign key to the Encounter when the condition was diagnosed. | Visit |
code
Coded as
|
string |
Diagnosis code from SNOMED-CT or ICD10. | Diagnosis concept Pages only |
system
|
string |
Specifies the code system — SNOMED-CT or ICD10. | |
description
|
string |
Description of the condition. | |
start
|
datetime |
The date the condition was diagnosed. | |
stop
|
option<datetime> |
The date the condition resolved, if applicable. | |
record_id
|
string |
This diagnosis's identity, built at import from its visit's id and its code — the source export gives the row no id of its own. |
Referenced by
Records joined to this one by a visit and a code
-
Care plan
exact key
careplan.encounter_idandcareplan.reason_codeon each care plan
Provenance where this row came from · 7 fields
| Field | Type | Description |
|---|---|---|
source_table |
string |
Synthea CSV this row was read from. |
source_snapshot_id |
string |
Corpus generation this row belongs to. |
ingest_run_id |
string |
Import run that wrote the row. |
generation_run_id |
string |
Synthea run that produced the source CSV. |
load_timestamp |
datetime |
When the row was written. |
source_role |
string |
Role this source played for the record. |
contributing_sources |
option<array<string>> |
Other rows that contributed to this record. |
Collapsed here because a reader came for what diagnosis means, not where one row came from — that question is the substance of every diagnosis record's own Provenance page, reachable from any diagnosis record.
Types are SurrealDB's own: option<T> means
the value may be absent. Full reference:
SurrealDB data types.
Not searchable
A diagnosis is reached from its visit, its patient or its diagnosis concept, or by pasting its id; search finds the concept.
Beyond text search
Answering this means walking diagnosis → diagnosed during → visit. The three shipped search arms — BM25, HNSW, RRF fusion — match text inside one table, so none can.