curl --request GET \
--url https://om-staging.mylifeforce.com/api/m2m/patient/{patientId}/devices \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 1,
"name": "Fitbit",
"slug": "fitbit",
"logoUrl": "https://picsum.photos/200/300",
"status": "connected",
"type": "watch",
"sleep": [
{
"name": "REM Sleep",
"unit": "hours",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"value": 2.5
}
],
"average": 2.5,
"percentChange": 15.2
}
],
"activity": [
{
"name": "Daily Active Calorie Burn",
"unit": "Calories",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"value": 789
}
],
"average": 456,
"percentChange": 15.2
}
],
"body": [
{
"name": "Weight",
"unit": "lbs",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"value": 150
}
],
"average": 150,
"percentChange": 15.2
}
],
"bloodPressure": {
"name": "Blood Pressure",
"unit": "mmHg",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"systolic": 120,
"diastolic": 80
}
],
"average": {
"systolic": 120,
"diastolic": 80
},
"abnormalInstancePercentage": 0,
"percentChange": 0
},
"activityHeartRate": {
"name": "Heart Rate",
"unit": "bpm",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"averageHeartRate": 80,
"maximumHeartRate": 200,
"minimumHeartRate": 55,
"restingHeartRate": 60
}
],
"average": 80,
"abnormalInstances": 0,
"percentChange": 0
}
}
],
"vitalConnectedDevices": [
{
"id": 1,
"name": "Fitbit",
"slug": "fitbit",
"logoUrl": "https://picsum.photos/200/300",
"status": "connected",
"type": "watch"
}
]
}Returns device data and connected devices for a patient
curl --request GET \
--url https://om-staging.mylifeforce.com/api/m2m/patient/{patientId}/devices \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 1,
"name": "Fitbit",
"slug": "fitbit",
"logoUrl": "https://picsum.photos/200/300",
"status": "connected",
"type": "watch",
"sleep": [
{
"name": "REM Sleep",
"unit": "hours",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"value": 2.5
}
],
"average": 2.5,
"percentChange": 15.2
}
],
"activity": [
{
"name": "Daily Active Calorie Burn",
"unit": "Calories",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"value": 789
}
],
"average": 456,
"percentChange": 15.2
}
],
"body": [
{
"name": "Weight",
"unit": "lbs",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"value": 150
}
],
"average": 150,
"percentChange": 15.2
}
],
"bloodPressure": {
"name": "Blood Pressure",
"unit": "mmHg",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"systolic": 120,
"diastolic": 80
}
],
"average": {
"systolic": 120,
"diastolic": 80
},
"abnormalInstancePercentage": 0,
"percentChange": 0
},
"activityHeartRate": {
"name": "Heart Rate",
"unit": "bpm",
"data": [
{
"date": "2022-04-18T00:00:00Z",
"averageHeartRate": 80,
"maximumHeartRate": 200,
"minimumHeartRate": 55,
"restingHeartRate": 60
}
],
"average": 80,
"abnormalInstances": 0,
"percentChange": 0
}
}
],
"vitalConnectedDevices": [
{
"id": 1,
"name": "Fitbit",
"slug": "fitbit",
"logoUrl": "https://picsum.photos/200/300",
"status": "connected",
"type": "watch"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the patient in question A universally unique identifier.
"29ea9012-c622-4851-a57a-9327abd21198"
Time range for the device data
last7, last90, last180 Successful response
The data associated with each connected device
Show child attributes
The id of the device
1
The name of the device
"Fitbit"
The slug of the device
"fitbit"
The URL of the device's logo
"https://picsum.photos/200/300"
The status of the device (connected, disconnected, etc.)
"connected"
The type of device (watch, cuff, etc.)
"watch"
Contains all available metrics associated to sleep
Show child attributes
The name of the metric
"REM Sleep"
The unit of the metric
"hours"
The average value of the metric over the selected time range
2.5
The percent change in the metric over the selected time range when compared to the same amount of time before
15.2
Contains all available metrics associated to activity
Show child attributes
The name of the metric
"Daily Active Calorie Burn"
The unit of the metric
"Calories"
The average value of the metric over the selected time range
456
The percent change in the metric over the selected time range when compared to the same amount of time before
15.2
Contains all available metrics associated to body composition
Show child attributes
The name of the metric
"Weight"
The unit of the metric
"lbs"
The average value of the metric over the selected time range
150
The percent change in the metric over the selected time range when compared to the same amount of time before
15.2
Contains blood pressure metrics (systolic and diastolic)
Show child attributes
The name of the metric
"Blood Pressure"
The unit of the metric
"mmHg"
Show child attributes
The date of the data point
"2022-04-18T00:00:00Z"
The systolic value of the metric at this data point
120
The diastolic value of the metric at this data point
80
The percentage of abnormal instances of the metric over the selected time range, an abnormal instance for Blood Pressure is defined as blood pressure being over 140/90 or under 100/60
0
The percent change in the metric over the selected time range when compared to the same amount of time before
0
Contains heart rate metrics
Show child attributes
The name of the metric
"Heart Rate"
The unit of the metric
"bpm"
Show child attributes
The date of the data point
"2022-04-18T00:00:00Z"
The average heart rate of the metric at this data point
80
The maximum heart rate of the metric at this data point
200
The minimum heart rate of the metric at this data point
55
The resting heart rate of the metric at this data point
60
The average value of the metric over the selected time range, this will use "averageHeartRate" from the data array
80
The number of abnormal instances of the metric over the selected time range, an abnormal instance for Heart Rate is defined as "averageHeartrate" heart rate being over 100 or under 60
0
The percent change in the metric over the selected time range when compared to the same amount of time before, uses the "averageHeartRate" from the data array
0
The connected devices for the member
Show child attributes
The id of the device
1
The name of the device
"Fitbit"
The slug of the device
"fitbit"
The URL of the device's logo
"https://picsum.photos/200/300"
The status of the device (connected, disconnected, etc.)
"connected"
The type of device (watch, cuff, etc.)
"watch"