Vitals — Heart Rate, Blood Pressure, Blood Oxygen, Body Temp
Grouped Device
Vitals — Heart Rate, Blood Pressure, Blood Oxygen, Body Temp
Returns all vital-sign metrics for a device in a single response. Triggers one Firestore history read.
Replaces individual endpoints: /heartrate, /bloodpressure, /bloodoxygen, /bodytemp
Response shape:
{
"deviceId": "string",
"heartrate": { "deviceId", "series", "average", "max", "min" },
"bloodpressure": { "deviceId", "date", "series", "avgSystolic", "avgDiastolic", "warningRecords" },
"bloodoxygen": { "deviceId", "series", "average", "max", "min", "warningRecords" },
"bodytemp": { "deviceId", "date", "series", "average", "max", "min", "warningRecords" }
}
Sub-field details:
| Sub-object | Field | Type | Description |
|---|---|---|---|
heartrate | series | array | [{ time: string, value: number }] — BPM readings |
heartrate | average / max / min | number | BPM stats |
bloodpressure | series | array | [{ time, systolic, diastolic }] — 24 hourly readings |
bloodpressure | avgSystolic / avgDiastolic | number | mmHg averages |
bloodpressure | warningRecords | array | Readings that exceeded safe thresholds |
bloodoxygen | series | array | [{ time: string, value: number }] — SpO2 readings |
bloodoxygen | warningRecords | array | Readings below safe threshold |
bodytemp | series | array | [{ time: string, value: number }] — °C readings |
bodytemp | warningRecords | array | Readings outside normal range |
GET
Vitals — Heart Rate, Blood Pressure, Blood Oxygen, Body Temp