Avycenna

Ingest heart-monitoring events from a device source

Accepts a vendor's raw push payload (a single event or a batch) and normalizes it via the adapter registered for the given `source`+`format` pair. Authenticated the same way as `/wearables/bulk-ingest` — a personal API key scoped `write_own` identifies which patient the events belong to, so the patient (not the clinic) controls the connection. `source` defaults to `cardiocomm_gems`; `format` is `rest` (CardioComm's own push shape) or `fhir` (a FHIR Observation/Bundle). Adding another device vendor means registering a new adapter — this endpoint doesn't change.

POST
/api/v1/cardiac-events/ingest

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

source?Source
Default"cardiocomm_gems"
format?Format
Default"rest"

Value in

  • "rest"
  • "fhir"

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/ingest" \  -H "Content-Type: application/json" \  -d '{}'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}