Diagnostics — ECG
Grouped Device
Diagnostics — ECG
Returns ECG records and AI interpretation for a device. Triggers one Firestore history read.
Replaces individual endpoint: /ecg
Response shape:
{
"deviceId": "string",
"ecg": {
"deviceId": "string",
"date": "YYYY-MM-DD",
"records": [{ "time": "string", "wave": [number] }],
"aiResult": "string"
}
}
ECG sub-fields:
| Field | Type | Description |
|---|---|---|
records | array | ECG measurement records (empty if no readings taken) |
records[].time | string | Measurement timestamp (IST) |
records[].wave | number[] | Raw ECG waveform data points |
aiResult | string | AI-generated ECG interpretation |
GET
Diagnostics — ECG