mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Phase 10 of W4d GLP-1 full integration. The doctor-report PDF gains a dedicated "GLP-1 therapy" section when the patient has at least one active GLP-1 medication and the existing compliance toggle is on. The section lists what a prescribing clinician needs at every follow-up: - Weight delta over the report window (start → end → delta) - Per-medication block: drug name, current dose + start date, compliance count and rate, full titration history table (date | dose | note) - Side-effect frequency table (last N days, counts per tag) when the mood section is also enabled (mood is the data source) Generic accounts (no GLP-1 medication) get `glp1: null` from the aggregator and the PDF skips the entire section, so existing reports stay byte-identical. Aggregator extension lives in `doctor-report-data.ts` — eager-loads `doseChanges` + the most recent intake event on every active medication (cheap, indexed); GLP-1 specifics only assemble when at least one GLP-1 row exists. The field is optional on the type to preserve compatibility with existing test fixtures. DE + EN copy for the report section lives under `doctorReport.glp1*`.