Get Raw Measurement Data
BioT has a specific API that allows developers to pull measurement data from the platform.
To pull data use the following API:
https://example.com/measurement/v2/measurements/raw
This API will allow you to get measurements of a specific patient in a predefined time range.
Example
The following filter will get all the measurements for patient with ID b837e2aa-42ff-4423-8d07-513061acd4ca
between the timestamps 2023-07-01T00:00:00.9000Z
and 2023-07-06T23:59:59.000Z
:
{
"limit": 30,
"filter": {
"_patient.id": {
"eq": "b837e2aa-42ff-4423-8d07-513061acd4ca"
},
"timestamp": {
"from": "2023-07-01T00:00:00.9000Z",
"to": "2023-07-06T23:59:59.000Z"
}
}
}
After encoding the request it will look like this:
https://api.example.com/measurement/v2/measurements/raw?searchRequest=%7B%0A%20%20%22limit%22%3A%2030%2C%0A%20%20%22filter%22%3A%20%7B%0A%20%20%20%20%22_patient.id%22%3A%20%7B%0A%20%20%20%20%20%20%22eq%22%3A%20%22b837e2aa-42ff-4423-8d07-513061acd4ca%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22timestamp%22%3A%20%7B%0A%20%20%20%20%20%20%22from%22%3A%20%222023-07-01T00%3A00%3A00.9000Z%22%2C%0A%20%20%20%20%20%20%22to%22%3A%20%222023-07-06T23%3A59%3A59.000Z%22%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D
Sample response:
{
"data": [
{
"patientId": "b837e2aa-42ff-4423-8d07-513061acd4ca",
"sessionId": "b96ecc78-ffe2-48a6-b623-6508a9d314cc",
"sourceEntityId": "dev4",
"timestamp": "2023-07-01T09:12:21Z",
"heart_rate": 10
},
{
"patientId": "b837e2aa-42ff-4423-8d07-513061acd4ca",
"sessionId": "b96ecc78-ffe2-48a6-b623-6508a9d314cc",
"sourceEntityId": "dev4",
"timestamp": "2023-07-01T09:12:21Z",
"blood_circulation": 10
},
{
"patientId": "b837e2aa-42ff-4423-8d07-513061acd4ca",
"sessionId": "b96ecc78-ffe2-48a6-b623-6508a9d314cc",
"sourceEntityId": "dev4",
"timestamp": "2023-07-01T09:12:21Z",
"metabolism": 10
},
...
]
}
Updated 11 months ago