mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +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": "이 기간에는 아직 기록된 점수가 없습니다.",
|
||||
"usualRange": "음영: 평소 범위 {lo}에서 {hi}까지.",
|
||||
"seam": "점수에 반영되는 항목이 바뀐 지점에서 선이 끊깁니다."
|
||||
},
|
||||
"bpTimeOfDay": {
|
||||
"title": "시간대별",
|
||||
"description": "차트 기간 동안 하루 중 시간대별 평균 혈압입니다.",
|
||||
"part": {
|
||||
"morning": "아침",
|
||||
"midday": "낮",
|
||||
"evening": "저녁"
|
||||
},
|
||||
"filterAll": "하루 전체",
|
||||
"filterLabel": "차트에 표시",
|
||||
"readingsOne": "측정 {count}회",
|
||||
"readingsFew": "측정 {count}회",
|
||||
"readingsOther": "측정 {count}회",
|
||||
"notEnough": "측정 횟수 부족",
|
||||
"pulse": "맥박 {value} bpm",
|
||||
"difference": "아침 빼기 저녁: {systolic}/{diastolic} mmHg.",
|
||||
"differencePending": "아침과 저녁에 각각 측정이 {min}회 이상 있으면 비교합니다.",
|
||||
"hours": "아침 {morning}, 낮 {midday}, 저녁 {evening}, 내 시간대 기준.",
|
||||
"hourRange": "{start}–{end}",
|
||||
"emptyTitle": "이 기간에 완전한 측정이 없습니다",
|
||||
"emptyDescription": "수축기와 이완기 값이 모두 있는 측정이 여기에 표시됩니다.",
|
||||
"error": "시간대별 평균을 불러오지 못했습니다.",
|
||||
"chartTitle": {
|
||||
"morning": "아침 혈압",
|
||||
"midday": "낮 혈압",
|
||||
"evening": "저녁 혈압"
|
||||
}
|
||||
}
|
||||
},
|
||||
"thresholds": {
|
||||
|
||||
Reference in new issue
Block a user