Getting information about data compliance
For clinical trials it's critical to track data from wearables. Every data point is crucial for the trial's accuracy. If we don't regularly send this data to the cloud, problems like a dead battery or internet issues might cause data loss. By monitoring daily records, you can quickly catch and correct any gaps, ensuring that clinical trials have complete and reliable data.
In this document we describe how to get information about how many data points of a specific user for a specific date have been recorded.
Compliance statistics in the study portal
On the study portal you can see the (i) icon on the top of the page:
By clicking on this button you can see the table:
In this table you can see how many data points of the specific were recorded to the cloud for the selected day.
You can get this information with the API call as well.
You will need to use the Researcher Token.
API
You need to pass uuid of the user and the date in the YYYY-MM-DD format.
GET: https://api.integration.corsano.com/v1/patients/{UUID}/raw-data-compliance/{DATE}
In the response you'll get the object with keys - the data types and the values - the number of the points that have been recorded. We use the local date and time of the user to calculate these values.
Example:
Request:
curl --request GET \
--url 'https://api.integration.corsano.com/v1/patients/50907d67-1575-4599-8693-80b14e68b57b/raw-data-compliance/2023-09-14?token=NEaWgaU6iLjjn5XP5LEZnW3mtUNjts9vUdWB'
Response:
{
"raw_data_activity": 1847,
"raw_data_hrv": 423,
"raw_data_rr_interval": 23581,
"raw_data_sleep": 500,
"raw_data_temperature": 1841,
"summary_data_activity_slots": 48,
"summary_data_heart_rate_slots": 288,
"summary_data_respiration_rate_slots": 48,
"summary_data_sleep_slots": 410,
"summary_data_spo2_slots": 48,
"summary_data_stress_slots": 82,
"summary_data_temperature_slots": 48,
"raw_data_acc": 177600,
"raw_data_ppg2": 2270592
}
Notes
- The data is calculated based on the local time of the user.
- The data is calculated based on the data that has been sent to the cloud. If the user has not synced the data to the cloud, it will not be counted.
- If you want to use UTC dates, you need to pass get-parameter utc=yes. In this case the data will be calculated based on the UTC time of the user.