mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
feat(vorsorge): make the mental-wellbeing screening plannable
PHQ9_SCORE / GAD7_SCORE join the Vorsorge reminder type allow-list as their own "Seelisches Wohlbefinden" group, with a 4-week default cadence (both instruments cover the last two weeks; 28 joins the interval presets). The reminders ride the existing activity-aware engine unchanged: they fire only when overdue, and a completed check-in auto-satisfies them — the assessment route now kicks the eventful reminder-satisfy worker, which resolves against the server-written score row; the 15-min cron stays the idempotent safety-net. The screening reminder's primary action opens the check-in page (a score is never typed in), and the dispatcher gates the reminder on the opt-in mental-health module so a disabled module never nags. OpenAPI spec regenerated for the widened MeasurementReminderType enum.
This commit is contained in:
1 parent
b6aedfeb61
commit
01beabb99b
16 files changed
+256
-30
No files matched your search
@@ -11135,9 +11135,12 @@ components:
|
||||
- TOTAL_BODY_WATER
|
||||
- VISCERAL_FAT
|
||||
- BODY_MASS_INDEX
|
||||
description: Auto-resolve target metric (vitals + body-composition family). BP resolves on BLOOD_PRESSURE_SYS (the SYS
|
||||
row is the 'a BP was measured' sentinel). Omit for a free-text Vorsorge that resolves only on a manual satisfy
|
||||
or a matching lab result.
|
||||
- PHQ9_SCORE
|
||||
- GAD7_SCORE
|
||||
description: Auto-resolve target metric (vitals + body-composition family + the PHQ-9 / GAD-7 screenings). BP resolves
|
||||
on BLOOD_PRESSURE_SYS (the SYS row is the 'a BP was measured' sentinel); a screening reminder resolves on the
|
||||
server-written PHQ9_SCORE / GAD7_SCORE row when a check-in completes. Omit for a free-text Vorsorge that
|
||||
resolves only on a manual satisfy or a matching lab result.
|
||||
MeasurementReminderUpdate:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in new issue
Block a user