API Reference

Blood Oxygen

68 views 0

The Blood Oxygen resource is a blood oxygen measurement from a specific point in time.

Overview

Property Type Description
code String The id of the blood oxygen measurement
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
value Number The value of the measurement in the unit specified
unit String The unit of the measurement value. See Unit System.
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 Human API server

Example

GET https://api.zivacare.com/api/v2/human/blood_oxygens?access_token=demo
{
  "bloodOxygens": [
    {
      "code": "422de232-08d9-4d34-aa9f-63dcb335ec76",
      "value": 98,
      "unit": "SpO2",
      "record_time": "2014-12-14 15:52:01+00",
      "source": "my-source",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 09:15:43+00",
      "updated_at": "2015-12-15 09:18:03+00"
    },
    {
      "code": "1d4448b4-35ff-4ab1-9b5a-32c80f5da8f1",
      "value": 97,
      "unit": "SpO2",
      "record_time": "2014-11-08 14:08:01+00",
      "source": "ihealth-3",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 10:32:41+00"
    },
    {
      "code": "6df985a8-f081-4d1b-bfe4-9c366901c7cd",
      "value": 97,
      "unit": "SpO2",
      "record_time": "2014-09-16 15:52:01+00",
      "source": "ihealth",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-04-07 14:07:25+00"
    },
    {
      "code": "0a2ef399-12cc-4561-91ff-967150e80f46",
      "value": 89,
      "unit": "SpO2",
      "record_time": "2014-09-16 14:08:01+00",
      "source": "ihealth",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 10:34:12+00",
      "updated_at": "2015-12-15 10:36:49+00"
    },
    {
      "code": "0f7d767c-34ae-4ecd-87d6-26f4bbfead62",
      "value": 97,
      "unit": "SpO2",
      "record_time": "2014-04-07 14:08:01+00",
      "source": "ihealth-3",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 10:33:07+00"
    }
  ], 
  "total": 5
}

 

curl -X POST -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/blood_oxygens?access_token=demo -d '{ 
  "value": 95,
  "unit": "SpO2",
  "source": "withings",
  "record_time": "2014-09-16T15:52:01+0000"
}'

 

GET https://api.zivacare.com/api/v2/human/blood_oxygens/daily/2014-12-14?access_token=demo
{
  "bloodOxygens": [
    {
      "code": "422de232-08d9-4d34-aa9f-63dcb335ec76",
      "value": 98,
      "unit": "SpO2",
      "record_time": "2014-12-14 15:52:01+00",
      "source": "my-source",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 09:15:43+00",
      "updated_at": "2015-12-15 09:18:03+00"
    }
  ], 
  "total": 1
}
GET https://api.zivacare.com/api/v2/human/blood_oxygens/period/2014-12-14/2015-12-15?access_token=demo
{
  "bloodOxygens": [
    {
      "code": "422de232-08d9-4d34-aa9f-63dcb335ec76",
      "value": 98,
      "unit": "SpO2",
      "record_time": "2014-12-14 15:52:01+00",
      "source": "my-source",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 09:15:43+00",
      "updated_at": "2015-12-15 09:18:03+00"
    }
  ], 
  "total": 1
}
GET https://api.zivacare.com/api/v2/human/blood_oxygens/422de232-08d9-4d34-aa9f-63dcb335ec76?access_token=demo
{
  "bloodOxygen":[
    {
      "code": "422de232-08d9-4d34-aa9f-63dcb335ec76",
      "value": 98,
      "unit": "SpO2",
      "record_time": "2014-12-14 15:52:01+00",
      "source": "my-source",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2015-12-15 09:15:43+00",
      "updated_at": "2015-12-15 09:18:03+00"
    }
}
curl -X PUT -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/blood_oxygens/422de232-08d9-4d34-aa9f-63dcb335ec76?access_token=demo -d '{ 
  "value": 95,
  "unit": "SpO2",
  "source": "withings",
  "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