API Reference

Blood Pressure

74 views 0

The Blood Pressure resource is a blood pressure measurement from a specific point in time.

Overview

Property Type Description
code String The id of the blood pressure reading
user_code String The global Id of the user
record_time Datetime with Timezone The original date and time of the measurement
source String The source service for the measurement, where it was created
systolic String The systolic value captured at the time of measurement
diastolic String The diastolic value captured at the time of measurement
unit String The unit of the measurement value. See Unit System.
heart_rate Number The heart rate in BPM captured at the time of measurement
created_at Datetime with Timezone The time the measurement was created on the ZivaCare API server
updated_at Datetime with Timezone The time the measurement was updated on the ZivaCare API server

Example

GET https://api.zivacare.com/api/v2/human/blood_pressures?access_token=demo
{
  "bloodPressures": [
    {
      "code": "d73d3b16-1495-4f9a-8d26-8fb296041605",
      "systolic": 120, 
      "diastolic": 75, 
      "heart_rate": 59,
      "unit": "mmHg",
      "record_time": "2014-09-16 15:52:01+00",
      "source": "withings",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-04-07 14:19:31+00"
    }
  ], 
  "total": 1
}
curl -X POST -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/blood_pressures?access_token=demo -d '{
  "systolic": 120,
  "diastolic": "79",
  "unit": "mmHg",
  "heart_rate": "70",
  "source": "fitbit",
  "record_time": "2014-09-16T15:52:01+0000"
}'
GET https://api.zivacare.com/api/v2/human/blood_pressures/daily/2014-09-16?access_token=demo
{
  "bloodPressures": [
    {
      "code": "d73d3b16-1495-4f9a-8d26-8fb296041605",
      "systolic": 120, 
      "diastolic": 75, 
      "heart_rate": 59,
      "unit": "mmHg",
      "record_time": "2014-09-16 15:52:01+00",
      "source": "withings",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-04-07 14:19:31+00"
    }
  ], 
  "total": 1
}
GET https://api.zivacare.com/api/v2/human/blood_pressures/period/2014-09-16/2016-04-07?access_token=demo
{
  "bloodPressures": [
    {
      "code": "d73d3b16-1495-4f9a-8d26-8fb296041605",
      "systolic": 120, 
      "diastolic": 75, 
      "heart_rate": 59,
      "unit": "mmHg",
      "record_time": "2014-09-16 15:52:01+00",
      "source": "withings",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-04-07 14:19:31+00"
    }
  ], 
  "total": 1
}
GET https://api.zivacare.com/api/v2/human/blood_pressures/d73d3b16-1495-4f9a-8d26-8fb296041605?access_token=demo
{
  "bloodPressures": 
    {
      "code": "d73d3b16-1495-4f9a-8d26-8fb296041605",
      "systolic": 120, 
      "diastolic": 75, 
      "heart_rate": 59,
      "unit": "mmHg",
      "record_time": "2014-09-16 15:52:01+00",
      "source": "withings",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-04-07 14:19:31+00"
    }
}
curl -X PUT -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/blood_pressures/d73d3b16-1495-4f9a-8d26-8fb296041605?access_token=demo -d '{ 
  "systolic": 120,
  "diastolic": "79",
  "unit": "mmHg",
  "heart_rate": "70",
  "source": "fitbit",
  "record_time": "2014-09-16T15:52:01+0000"
}'

Was this helpful?

By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close