mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
Largest feature delta in the v1.4.x line. Insights expands into seven dedicated metric sub-pages; GLP-1 medication tracking lands end-to-end (drug-level chart with Research Mode acknowledgment, EMA titration ladder, cadence + compliance, side-effect taxonomy, pen/vial inventory); cross-source priority becomes a two-axis resolver; per-user timezone threads through ten analytics surfaces; Withings activity + sleep v2 sync; onboarding rebuilt as a nested-route wizard; Personal Records ship end-to-end; Health Score provenance accordion; Coach runs native first-party prompts across six locales with a 1800-assertion refusal-probe matrix; OpenAPI drift gate hard-fails; multi-arch GHCR image. Migrations 0043 through 0060 are additive and forward-only. PROMPT_VERSION 4.24.0 → 4.25.0 with GROUND RULE 9 (refuses dose recommendations) and GROUND RULE 15 (refuses drug-level estimates with MDR + MDCG 2021-24 cites). See CHANGELOG.md for the full per-section delta.
25 lines
958 B
SQL
25 lines
958 B
SQL
-- v1.4.25 W6c — per-user Doctor-Report section toggles.
|
|
--
|
|
-- The doctor-report dialog used to print every available data type
|
|
-- whether the user wanted it or not. Marc's directive 2026-05-14: users
|
|
-- decide which sections appear in their PDF, and the choice persists so
|
|
-- a follow-up export starts from the same picks.
|
|
--
|
|
-- Shape:
|
|
-- { "bp": boolean,
|
|
-- "weight": boolean,
|
|
-- "pulse": boolean,
|
|
-- "bmi": boolean,
|
|
-- "mood": boolean, -- privacy-sensitive; default OFF
|
|
-- "compliance": boolean,
|
|
-- "sleep": boolean }
|
|
--
|
|
-- Null = "use defaults": every section ON except mood. The privacy
|
|
-- default for mood is intentional — mental-health data should be opt-in,
|
|
-- not opt-out, even within a single user's own surface.
|
|
--
|
|
-- Forward-only, additive, idempotent. No backfill: a NULL row maps to
|
|
-- the documented defaults at read time.
|
|
ALTER TABLE "users"
|
|
ADD COLUMN IF NOT EXISTS "doctor_report_prefs_json" JSONB;
|