Skip to main content
POST
/
user
/
patient
/
measurement
Add Measurement
curl --request POST \
  --url https://api.decodahealth.com/user/patient/measurement \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "patientId": "<string>",
  "height": 123,
  "weight": 123,
  "systolicBp": 123,
  "diastolicBp": 123,
  "pulse": 123,
  "temperature": 123,
  "waistCircumference": 123,
  "noteId": "<string>",
  "measurementDate": "2023-11-07T05:31:56Z",
  "eventId": "<string>",
  "createdDate": "2023-11-07T05:31:56Z"
}
'
{
  "patientId": "<string>",
  "createdDate": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "height": 123,
  "weight": 123,
  "systolicBp": 123,
  "diastolicBp": 123,
  "pulse": 123,
  "temperature": 123,
  "waistCircumference": 123,
  "noteId": "<string>",
  "measurementDate": "2023-11-07T05:31:56Z",
  "eventId": "<string>",
  "creatorId": "<string>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Base schema for measurement fields (excluding creator_id and id).

patientId
string
required
height
number | null

The height of the patient in cms.

weight
number | null

The weight of the patient in kgs.

systolicBp
number | null
diastolicBp
number | null
pulse
number | null
temperature
number | null
waistCircumference
number | null

The waist circumference of the patient in cms.

noteId
string | null
measurementDate
string<date-time>

The date and time the measurement was taken. Defaults to now if not provided.

eventId
string | null

The event that the measurement was taken for.

createdDate
string<date-time> | null

When the measurement was taken. Defaults to current time if not provided.

Response

Successful Response

Schema for reading measurements. creator_id is optional for legacy measurements.

patientId
string
required
createdDate
string<date-time>
required
id
string
required
height
number | null

The height of the patient in cms.

weight
number | null

The weight of the patient in kgs.

systolicBp
number | null
diastolicBp
number | null
pulse
number | null
temperature
number | null
waistCircumference
number | null

The waist circumference of the patient in cms.

noteId
string | null
measurementDate
string<date-time>

The date and time the measurement was taken. Defaults to now if not provided.

eventId
string | null

The event that the measurement was taken for.

creatorId
string | null

ID of the user who created this measurement (optional for legacy measurements)