Measurements
Type of measurements
- blood_pressure
- pulse
- weight
- glycemia
Get all blood pressure measurements
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/blood_pressure', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"data": {
"examinations_blood_pressure_answers": [
{
"id": "77ef65a3-28be-39bc-9600-0e2bea84e3d0",
"systolic_pressure": 120,
"diastolic_pressure": 80,
"created_at": "2022-03-14T21:44:00+00:00"
},
{
"id": "73879dc8-940a-4f9f-93f0-444ff31cc4e9",
"systolic_pressure": 120,
"diastolic_pressure": 60,
"created_at": "2022-08-01T07:40:00+00:00"
},
{
"id": "508e5b28-0fe9-4adb-86dd-f83a577cd501",
"systolic_pressure": 150,
"diastolic_pressure": 100,
"created_at": "2022-08-01T13:37:00+00:00"
},
{
"id": "59ee6c39-abdd-4a9b-9fc2-9be229d9461b",
"systolic_pressure": 150,
"diastolic_pressure": 140,
"created_at": "2022-08-01T07:37:00+00:00"
},
{
"id": "ad24ba44-2a6f-402c-8ea5-c5c9cd9a6f9b",
"systolic_pressure": 150,
"diastolic_pressure": 120,
"created_at": "2022-08-03T06:37:00+00:00"
},
{
"id": "cb18493b-9ecc-47d1-814e-968be1233c72",
"systolic_pressure": 160,
"diastolic_pressure": 110,
"created_at": "2022-08-08T04:19:00+00:00"
}
]
}
}
Submit blood pressure measurement
Request body
{
"systolic_pressure": 160,
"diastolic_pressure": 110,
"created_at": "2022-08-08T04:19:00+00:00"
}
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/blood_pressure', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
},
body: JSON.stringify(body)
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Remove blood pressure measurement
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/blood_pressure/{id}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Get all pulse measurements
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/pulse', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"data": {
"examinations_pulse_answers": [
{
"id": "5cf84cd8-53cb-48c6-bf7a-cf6aa53bf05c",
"pulse": 120,
"created_at": "2022-03-04T16:03:39+00:00"
},
{
"id": "4b8b8eb5-b325-4948-bf47-bab01336cc9a",
"pulse": 55,
"created_at": "2022-03-03T16:18:17+00:00"
},
{
"id": "7aeb33b2-0720-34e7-b1f3-df2e5b8aadac",
"pulse": 70,
"created_at": "2022-03-14T21:45:00+00:00"
},
{
"id": "61a1a251-fb31-3e7a-9f2d-83c6a9b0f77b",
"pulse": 69,
"created_at": "2022-03-16T23:08:00+00:00"
},
{
"id": "3e61048d-7710-4282-ae8b-6bda9edb4ef0",
"pulse": 150,
"created_at": "2022-03-29T11:25:53+00:00"
}
]
}
}
Submit pulse measurement
Request body
{
"pulse": 120,
"created_at": "2022-08-08T04:19:00+00:00"
}
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/pulse', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
},
body: JSON.stringify(body)
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Remove pulse measurement
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/pulse/{id}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Get all weight measurements
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/weight', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"data": {
"examinations_weight_answers": [
{
"id": "5cf84cd8-53cb-48c6-bf7a-cf6aa53bf05c",
"weight": 124,
"created_at": "2022-03-04T16:03:39+00:00"
},
{
"id": "4b8b8eb5-b325-4948-bf47-bab01336cc9a",
"weight": 123,
"created_at": "2022-03-03T16:18:17+00:00"
},
{
"id": "7aeb33b2-0720-34e7-b1f3-df2e5b8aadac",
"weight": 124,
"created_at": "2022-03-14T21:45:00+00:00"
},
{
"id": "61a1a251-fb31-3e7a-9f2d-83c6a9b0f77b",
"weight": 121,
"created_at": "2022-03-16T23:08:00+00:00"
},
{
"id": "3e61048d-7710-4282-ae8b-6bda9edb4ef0",
"weight": 110,
"created_at": "2022-03-29T11:25:53+00:00"
}
]
}
}
Submit weight measurement
Request body
{
"weight": 120,
"created_at": "2022-08-08T04:19:00+00:00"
}
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/weight', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
},
body: JSON.stringify(body)
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Remove weight measurement
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/weight/{id}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Get all glycemia measurements
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/glycemia', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"data": {
"examinations_weight_answers": [
{
"id": "5cf84cd8-53cb-48c6-bf7a-cf6aa53bf05c",
"glucose": 89,
"created_at": "2022-03-04T16:03:39+00:00"
},
{
"id": "4b8b8eb5-b325-4948-bf47-bab01336cc9a",
"glucose": 109,
"created_at": "2022-03-03T16:18:17+00:00"
},
{
"id": "7aeb33b2-0720-34e7-b1f3-df2e5b8aadac",
"glucose": 100,
"created_at": "2022-03-14T21:45:00+00:00"
},
{
"id": "61a1a251-fb31-3e7a-9f2d-83c6a9b0f77b",
"glucose": 89,
"created_at": "2022-03-16T23:08:00+00:00"
},
{
"id": "3e61048d-7710-4282-ae8b-6bda9edb4ef0",
"glucose": 90,
"created_at": "2022-03-29T11:25:53+00:00"
}
]
}
}
Submit glycemia measurement
Request body
{
"glucose": 100,
"created_at": "2022-08-08T04:19:00+00:00"
}
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/glycemia', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
},
body: JSON.stringify(body)
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}
Remove glycemia measurement
Request
fetch('https://clinic.telemedi.co/api/v2/healthplanner/measurements/glycemia/{id}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {token}'
}
})
.then(response => response.json())
.then(response => console.log(response))
Response
{
"id" : "59ee6c39-abdd-4a9b-9fc2-9be229d9461b"
}