mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
feat(insights): blood pressure by time of day
Home monitoring reads morning and evening readings as separate sets, so the blood pressure page now shows the morning, midday and evening means side by side over the chart's range, each with its count and pulse, and the morning-minus-evening difference. A control under them narrows the chart to one part of the day; the choice lives in `?partOfDay=` so it survives a reload and a shared link, and the whole day keeps a bare URL. The split is resolved on the server in the record's own time zone and published as one response, `GET /api/measurements/blood-pressure/time-of-day`, so every client renders the same numbers. Morning is 04:00 to 11:59, midday 12:00 to 17:59, evening 18:00 to 03:59: the guidelines define the sets by waking and bedtime rather than by the clock, so the windows are wide, and a reading after midnight is a late evening one. Pairs follow the blood-pressure series' rule (same source within five minutes); the pulse is the reading's own. A part shows a mean from three readings on. `GET /api/measurements` takes `partOfDay` on the blood-pressure and pulse series read: each local day folds only that part's readings, a day runs from 04:00, and long ranges fold weekly instead of reading rollups that cannot tell the hour. Refs #1331
This commit is contained in:
1 parent
41e75b5bde
commit
b93241aa87
32 files changed
+2184
-43
No files matched your search
@@ -4972,6 +4972,34 @@
|
||||
"emptyDescription": "In diesem Zeitraum wurde noch kein Score erfasst.",
|
||||
"usualRange": "Schattiert: dein üblicher Bereich, {lo} bis {hi}.",
|
||||
"seam": "Die Linie bricht dort ab, wo sich geändert hat, was in den Score einfließt."
|
||||
},
|
||||
"bpTimeOfDay": {
|
||||
"title": "Nach Tageszeit",
|
||||
"description": "Dein durchschnittlicher Blutdruck je Tageszeit im Zeitraum des Diagramms.",
|
||||
"part": {
|
||||
"morning": "Morgens",
|
||||
"midday": "Mittags",
|
||||
"evening": "Abends"
|
||||
},
|
||||
"filterAll": "Ganzer Tag",
|
||||
"filterLabel": "Im Diagramm zeigen",
|
||||
"readingsOne": "{count} Messung",
|
||||
"readingsFew": "{count} Messungen",
|
||||
"readingsOther": "{count} Messungen",
|
||||
"notEnough": "Zu wenige Messungen",
|
||||
"pulse": "Puls {value} bpm",
|
||||
"difference": "Morgens minus abends: {systolic}/{diastolic} mmHg.",
|
||||
"differencePending": "Morgen und Abend werden verglichen, sobald beide mindestens {min} Messungen haben.",
|
||||
"hours": "Morgens {morning}, mittags {midday}, abends {evening}, in deiner Zeitzone.",
|
||||
"hourRange": "{start} bis {end} Uhr",
|
||||
"emptyTitle": "Keine vollständigen Messungen in diesem Zeitraum",
|
||||
"emptyDescription": "Hier erscheinen Messungen mit systolischem und diastolischem Wert.",
|
||||
"error": "Die Werte nach Tageszeit konnten nicht geladen werden.",
|
||||
"chartTitle": {
|
||||
"morning": "Blutdruck morgens",
|
||||
"midday": "Blutdruck mittags",
|
||||
"evening": "Blutdruck abends"
|
||||
}
|
||||
}
|
||||
},
|
||||
"thresholds": {
|
||||
|
||||
Reference in new issue
Block a user