Cardiac arrest represents a cardiovascular condition.
Overview
Property | Type | Description |
---|---|---|
code | String | The Code of the resource |
user_code | String | The global Id of the user |
threshold | Number | Cardia Arrest is considered in effect if the number of heart beats drops under this value |
tolerance | Number | Optionally, the Cardiac Arrest condition may be considered in effect if the number of heart beats per minute drops under the (threshold + tolerance) value |
created_at | Datetime with Timezone | The time the activity was created on the ZivaCare API server |
updated_at | Datetime with Timezone | The time the activity was updated on the ZivaCare API server |
Example
GET https://api.zivacare.com/api/v2/threshold/cardiac_arrests?access_token=demo
{
"code": "7f23abb6-fa2c-46c1-9078-f1020cddff8d",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"threshold": 12,
"tolerance": 13.32,
"created_at": "2015-07-03T11:52:36+0000",
"updated_at": "2016-05-20T13:03:15+0000"
}
curl -X POST -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/threshold/cardiac_arrests?access_token=demo -d '{
"threshold": 12,
"tolerance": 12.32
}'
curl -X PUT -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/threshold/cardiac_arrests?access_token=demo -d '{
"threshold": 11,
"tolerance": 13
}'