Import an ECG from CSV
Body is the CSV text (`Content-Type: text/csv`): `key,value` header lines (`Recorded Date`, `Sample Rate`, optional `Unit` uV|mV, `Classification`, `Lead`, `Device`) followed by one sample per line. Reads Apple Health export ECG files (`electrocardiograms/ecg_*.csv`) as-is; name and date-of-birth lines are discarded.
Authorization
HTTPBearer In: header
Query Parameters
"ecg_device"Header Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/cardiac-events/ecg/csv"null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Every ECG provider Avycenna supports GET
How each ECG source reaches Avycenna (`integration`: cloud_oauth, on_device, sdk_upload, partner_api, file_import, not_available), whether it's usable today (`availability`), its devices, whether raw waveforms arrive, and for cloud sources the endpoint that starts the connection. Per-person connection state is at `/ecg-sources`.
Import ECGs as FHIR POST
Imports one FHIR R4 `Observation` (or a `Bundle` of them) carrying the waveform as `valueSampledData` (per-lead components, MDC_ECG_ELEC_POTL_I preferred) — the interoperable path for any ECG device, AliveCor/Kardia exports and clinical systems. `interpretation` becomes the attributed classification. Idempotent on the Observation id.