Get Aggregated Measurement Data

BioT has a specific API that allows developers to pull aggregated measurement data from the platform.

To pull data use the following API:

https://example.com/measurement/v1/measurements/raw

Example

The following API call will get all the measurements for patient with ID b837e2aa-42ff-4423-8d07-513061acd4ca for the biomarkers of heart_rate & blood_pressure, between timestamps 2023-07-01T00:00:00.9000Z and 2023-07-07T00:00:00.000Z with an interval of 1 week.

https://api.example.biot-med.com/measurement/v1/measurements/aggregated?attributes=heart_rate&attributes=blood_pressure&patientId=b837e2aa-42ff-4423-8d07-513061acd4ca&startTime=2023-07-01T00:00:00.000Z&endTime=2023-07-07T00:00:00.000Z&binIntervalSeconds=86400

{
	"attributes": [
    	{
        	"attributeName": "heart_rate",
        	"sources": [
            	{
                	"sourceEntityId": "device1",
                	"measurementSessions": [
                    	{
                        	"sessionId": "b96ecc78-ffe2-48a6-b623-6508a9d314cc",
                        	"measurements": [
                            	{
                                	"timestamp": "2023-07-01T00:00:00Z",
                                	"average": 10.0,
                                	"standardDeviation": 0.0
                            	}
                        	]
                    	}
                	]
            	},
            	{
                	"sourceEntityId": "device1",
                	"measurementSessions": [
                    	{
                        	"sessionId": "fccf482d-5050-4833-a3c0-d3014cf9040a",
                        	"measurements": [
                            	{
                                	"timestamp": "2023-07-05T00:00:00Z",
                                	"average": 60.0,
                                	"standardDeviation": 0.0
                            	}
                        	]
                    	}
                	]
            	},
            	{
                	"sourceEntityId": "device2",
                	"measurementSessions": [
                    	{
                        	"sessionId": "19837b59-ee1f-4f7f-97ec-e4fa4fb76187",
                        	"measurements": [
                            	{
                                	"timestamp": "2023-07-06T00:00:00Z",
                                	"average": 70.0,
                                	"standardDeviation": 0.0
                            	}
                        	]
                    	}
                	]
            	},
            	{
                	"sourceEntityId": "device2",
                	"measurementSessions": [
                    	{
                        	"sessionId": "e178f867-6ea3-48f4-b542-f0d76bc307f4",
                        	"measurements": [
                            	{
                                	"timestamp": "2023-07-04T00:00:00Z",
                                	"average": 50.0,
                                	"standardDeviation": 0.0
                            	}
                        	]
                    	}
                	]
            	},
            	{
                	"sourceEntityId": "device3",
                	"measurementSessions": [
                    	{
                        	"sessionId": "612d1b4b-c31a-46f7-825b-824e3c9b5ede",
                        	"measurements": [
                            	{
                                	"timestamp": "2023-07-03T00:00:00Z",
                                	"average": 30.0,
                                	"standardDeviation": 0.0
                            	}
                        	]
                    	}
                	]
            	},
            	{
                	"sourceEntityId": "device3",
                	"measurementSessions": [
                    	{
                        	"sessionId": "c12600f0-5446-4437-9110-4869102a0599",
                        	"measurements": [
                            	{
                                	"timestamp": "2023-07-02T00:00:00Z",
                                	"average": 20.0,
                                	"standardDeviation": 0.0
                            	}
                        	]
                    	}
                	]
            	}
        	]
    	}
	]
}