Avycenna

Import ECGs as FHIR

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.

POST
/api/v1/cardiac-events/ecg/fhir

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

source?Source
Default"ecg_device"

Header Parameters

x-api-key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/cardiac-events/ecg/fhir" \  -H "Content-Type: application/json" \  -d '{}'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}