Skip to main content
PATCH
/
trackers
/
api
/
v1
/
vitals
/
{txn_id}
Update Patient Vitals and Link to ABHA
curl --request PATCH \
  --url https://api.eka.care/trackers/api/v1/vitals/{txn_id} \
  --header 'Content-Type: application/json' \
  --header 'auth: <api-key>' \
  --data '
{
  "vitals": [
    {
      "display_name": "Pulse rate",
      "identifiers": {
        "unique_id": "354bks353",
        "eka_code": "lb-1201285132",
        "loinc": "17616716"
      },
      "vital_value": {
        "value_type": "NUM",
        "value": 75
      },
      "vital_unit": {
        "display_unit": "{Counts}/min",
        "ucum_code": "/min"
      },
      "measured_at": {
        "measurement_type": "INSTANT",
        "start": "2025-01-30T06:19:23.583000+00:00",
        "end": null
      }
    },
    {
      "display_name": "Blood Glucose",
      "identifiers": {
        "unique_id": "354bks354",
        "eka_code": "lb-1201285133",
        "loinc": "15074-8"
      },
      "vital_value": {
        "value_type": "NUM",
        "value": 90
      },
      "vital_unit": {
        "display_unit": "mg/dL",
        "ucum_code": "mg/dL"
      },
      "measured_at": {
        "measurement_type": "DURATION",
        "start": "2025-01-30T06:19:23.583000+00:00",
        "end": "2025-01-30T06:29:23.583000+00:00"
      }
    }
  ]
}
'
{
  "message": "All vitals data saved and successfully linked to ABHA for care context ID: ekap_durgesh-stage-002",
  "data": {
    "abha_linking": "success",
    "abha_message": "ABHA linking successful",
    "processing_status": {
      "processed": [
        {
          "resource_type": "vitals",
          "fhir_id": "e5d0b6c6-c932-5e0d-8a90-dc8e2729875c",
          "identifier": "ekap_0832043542354bks353"
        }
      ],
      "failed": []
    }
  }
}

Authorizations

auth
string
header
required

The API requires the following auth header for authentication.

Path Parameters

txn_id
string
required

Transaction ID to identify the specific vitals record.

Body

application/json
vitals
object[]
required

Response

All vitals processed successfully with/without ABHA linking

message
string
Example:

"All vitals data saved and successfully linked to ABHA for care context ID: ekap_durgesh-stage-002"

data
object