feat(records): surface structured allergies and family history in the doctor report and AI context

The structured Allergy / FamilyHistoryEntry stores reached FHIR export
only: the doctor-report PDF shipped without the two sections every
clinical intake asks for first, and the Coach knew allergies only from
the free-text answer — a penicillin allergy recorded in the structured
records UI never reached either surface.

Doctor report: two new section toggles (allergies, familyHistory; both
default ON, same stance as labs) across the prefs schema, the export
selection, the aggregator, the PDF renderer, and the export panel. The
tables render stored fields only — substance/category/kind/severity/
reaction/status and relationship/condition/age-at-onset; the reaction
decrypts fail-soft per row and free-text notes are never read, matching
the illness-journal stance. OpenAPI regenerated for the extended
sections shape.

Coach: the about-me context block now appends the structured rows as
clearly labelled entries (authoritative over the free-text answer on
conflict); the projection is a pure composer with unit tests. New
section labels land in all six locales.
This commit is contained in:
Marc-André Bombeck committed 2026-07-05 17:54:32 +02:00
1 parent 8d36e69f75
commit 9b4f3ce56d
15 files changed
+573 -14

No files matched your search

+8
View File
@@ -944,6 +944,10 @@ paths:
type: boolean
labs:
type: boolean
allergies:
type: boolean
familyHistory:
type: boolean
locale:
type: string
enum:
@@ -1076,6 +1080,10 @@ paths:
type: boolean
labs:
type: boolean
allergies:
type: boolean
familyHistory:
type: boolean
resourceTypes:
maxItems: 8
type: array