{% extends "base.html" %} {% import "health/_parts.html" as hp with context %} {% from "health/_watch.html" import hm, clock with context %} {% block title %}Health report{% endblock %} {% block head %}{{ hp.assets() }}{% endblock %} {% block main_attrs %} data-norefresh{% endblock %} {# A summary for a doctor (watch.report): plain values with their reference ranges and where they come from, the cycle tracker's part when it's on (pluginhost inside(…, report=)). Print / save as PDF prints only .rp, light (health.css). #} {% set n, dm = hp.n, hp.dm %} {% set b, p = v.body, v.prof %} {% macro dmy(d) %}{{ d.day }} {{ d.strftime("%b %Y") }}{% endmacro %} {% macro cls(c) %}{% if c %}{{ c[0] }}{% endif %}{% endmacro %} {% block page %} {{ hp.head("report") }}

Health summary

{{ dmy(v.a) }} – {{ dmy(v.today) }} · made {{ dmy(v.today) }}

Sex
{{ p.sex | capitalize if p.sex else "—" }}
Age
{{ p.age if p.age else "—" }}
Height
{{ (p.height | int ~ " cm") if p.height else "—" }}

Self-tracked: a Xiaomi band (heart rate, sleep, steps, workouts, oxygen spot checks) and measurements entered by hand (weight, tape measure, home blood pressure). Wearable values are estimates.

Body

Weight{% if v.cur.weight %}{{ "%g" | format(v.cur.weight.v) }} kg ({{ dmy(v.cur.weight.day) }}){% else %}—{% endif %} {% if v.wchange %}{{ "%+.1f" | format(v.wchange[0]) }} kg ({{ "%+.1f" | format(v.wchange[1]) }} %) since {{ dmy(v.wchange[2]) }}{% endif %}
BMI{{ n(b.bmi) }}{{ b.bmi_class or "" }} (WHO: 18.5–24.9 normal{% if b.healthy %}; {{ n(b.healthy[0], 0) }}–{{ n(b.healthy[1], 0) }} kg at this height{% endif %})
Waist{% if v.cur.waist %}{{ "%g" | format(v.cur.waist.v) }} cm ({{ dmy(v.cur.waist.day) }}){% else %}—{% endif %} {{ b.waist_class or "" }} (WHO, {{ "women: raised ≥ 80, high ≥ 88 cm" if p.sex == "female" else "men: raised ≥ 94, high ≥ 102 cm" }})
Waist ÷ height{{ n(b.whtr, 2) if b.whtr else "—" }}{{ b.whtr_class or "" }} (under 0.5)
Waist ÷ hips{{ n(b.whr, 2) if b.whr else "—" }}{{ b.whr_class or "" }} (WHO: under {{ "0.85" if p.sex == "female" else "0.90" }})
Body fat{% if b.fat_mid %}{{ n(b.fat_mid) }} %{% else %}—{% endif %} {% if b.fat_range %}range {{ n(b.fat_range[0]) }}–{{ n(b.fat_range[1]) }} % from {{ b.fat_n }} tape-measure formulas{% endif %}{% if b.fat_class %} · {{ b.fat_class }}{% endif %} (estimates, ±3–4 %)
{% if v.wchart %}

Weight

{{ hp.chart(v.wchart, "weight") }}
{% endif %}

Blood pressure home readings

{% if v.bp %}
Average{{ v.bp_avg[0] }}/{{ v.bp_avg[1] }} mmHg{{ cls(v.bp_cls) }} ({{ v.bp | length }} reading{{ "s" if v.bp | length != 1 }})
Range{{ v.bp_range[0][0] }}–{{ v.bp_range[0][1] }} / {{ v.bp_range[1][0] }}–{{ v.bp_range[1][1] }}

ESC 2024: under 120/70 non-elevated · 120–139/70–89 elevated · 140/90 and up hypertension.

{% if v.bp_chart %}
{{ hp.chart(v.bp_chart, "blood pressure") }}
{% endif %} {% for r in v.bp | reverse %}{% endfor %}
WhenmmHgNote
{{ r.t.strftime("%a") }} {{ dm(r.t.date()) }} {{ r.t.strftime("%H:%M") }}{{ r.sys }}/{{ r.dia }}{{ r.note }}
{% else %}

No readings in this period.

{% endif %}

Blood oxygen (SpO₂) spot checks

{% if v.ox %}
Readings{{ v.ox | length }}average {{ n(v.ox_avg, 0) }} % · lowest {{ "%g" | format(v.ox_min) }} %
{% elif v.ox_last %}

None in this period — the last one: {{ "%g" | format(v.ox_last.spo2) }} % on {{ dmy(v.ox_last.t.date()) }}.

{% else %}

No readings.

{% endif %}

At rest 95–100 % is normal. Wrist sensors read low now and then (movement, cold hands).

Heart rate the band, {{ v.hr_days }} days

{% if v.rest_avg %}
Resting{{ n(v.rest_avg, 0) }} bpmrange {{ v.rest_range[0] }}–{{ v.rest_range[1] }} · first 30 days {{ n(v.rest_first, 0) }}, last 30 days {{ n(v.rest_last, 0) }}
Lowest reading{{ v.hr_low or "—" }} bpm
{% if v.rest_chart %}
{{ hp.chart(v.rest_chart, "resting heart rate") }}
{% endif %} {% else %}

No heart-rate data in this period.

{% endif %}

Sleep the band{% if v.sleep %}, {{ v.sleep.n }} nights{% endif %}

{% set sl = v.sleep %} {% if sl %}
Asleep{{ hm(sl.asleep) }} a night{{ sl.under7 }} nights under 7 h, {{ sl.under6 }} under 6 h (adults: 7–9 h)
Times{{ clock(sl.bed) }} → {{ clock(sl.wake) }}bedtime ±{{ (sl.bed_sd * 60) | round | int }} min, wake-up ±{{ (sl.wake_sd * 60) | round | int }} min
Deep sleep{{ (sl.deep | round | int ~ " %") if sl.deep is not none else "—" }}(typical 13–23 %; the band's estimate, no REM)
Awake at night{{ "%.1f" | format(sl.wakeups) }} times{{ sl.awake | round | int }} min a night
Naps{{ "%.1f" | format(sl.naps_week) }} a week
{% if v.sleep_chart %}
{{ hp.chart(v.sleep_chart, "sleep") }}
{% endif %} {% else %}

No sleep data in this period.

{% endif %}

Activity

{% set a = v.act %} {% if a.kinds %}{% endif %}
Steps{{ "{:,.0f}".format(a.steps) if a.steps else "—" }} a day({{ a.steps_days }} days with data)
Workouts{{ "%.1f" | format(a.per_week) }} a week{{ a.min_week | round | int }} min a week (WHO: at least 150 min moderate)
Kinds{% for k, c in a.kinds %}{{ k }} {{ c }}×{{ ", " if not loop.last }}{% endfor %}
{% if v.steps_chart %}
{{ hp.chart(v.steps_chart, "steps") }}
{% endif %}
{% for g in guests %}{{ g | safe }}{% endfor %}

From self-tracked data. General guidance, not a diagnosis.

{% endblock %} {% block scripts %}{{ hp.adder() }} {% endblock %}