Dataset: Blood Glucose Log

Dataset name: ds_blood_glucose_log

Description

Blood Glucose Log Data

Fields in this dataset

Name Field Name Description Field Type Field Example
Blood Glucose Level blood_glucose_level The blood glucose level or concentration floating point 4.3
Measurement End Timestamp blood_glucose_timestamp_end End time and date of blood glucose measurement int 1648633780
Measurement Start Timestamp blood_glucose_timestamp_start Start time and date of blood glucose measurement int 1648633780
ID id The machine name for a record. Internal to PDS and Mydex int 1
Meal Type meal_type What type of meal the user ate around when the reading was taken. int 3
Meal Type Description meal_type_description Description of Meal type varchar Lunch
Measurement Group measurement_group The top level group activity belongs to varchar Activity
Nutrition Log ID nutrition_log_id The link to the nutrition log record int 1
Created Timestamp record_created_timestamp Date record added to PDS int 1648633780
Updated Timestamp record_updated_timestamp Date record updated in the PDS int 1648633780
Source Device Type source_device_type States the type of source device varchar PDA
Source ID source_id The unique ID of source of the data varchar 3621-29756
Source Instance source_instance The instance of the source type int Google Account 1
Source Name source_name The Name given to source varchar Google Fit
Specimen Source specimen_source Type of body fluid used to measure blood glucose int 4
Specimen Source Description specimen_source_description Type of body fluid used to measure blood glucose varchar Serum
Temporal relation to meal temporal_relation_to_meal When reading taken compared to when person ate int 4
Temporal relation to meal description temporal_relation_to_meal_description When reading taken compared to when person ate description varchar Reading was taken after a meal
Temporal relation to sleep temporal_relation_to_sleep When the reading was taken compared to when the user slept. int 1
Temporal relation to sleep temporal_relation_to_sleep_description Description of when the reading was taken compared to when the user slept varchar User was fully awake

Making an API request for this Dataset

Example Request to the Sandbox Server

http://sbx-api.mydex.org/api/pds/transaction/UID.json
  ?key=KEY
  &api_key=API_KEY
  &con_id=CON_ID
  &source_type=connection
  &dataset=ds_blood_glucose_log
  &instance=N

Replace the following with your own details: UID KEY, API_KEY, CON_ID and instance N.

Replace sbx-api with api when making a connection to a real member on the production server (must be authenticated).

To return the data in XML, change UID.json to UID.xml.

Example Response

A response to this API request will be structured as follows.

{
  "1": {
    "id": "1",
    "ds_id": "1",
    "blood_glucose_level": "4.3",
    "blood_glucose_timestamp_end": "1648633780",
    "blood_glucose_timestamp_start": "1648633780",
    "meal_type": "3",
    "meal_type_description": "Lunch",
    "measurement_group": "Activity",
    "nutrition_log_id": "1",
    "record_created_timestamp": "1648633780",
    "record_updated_timestamp": "1648633780",
    "source_device_type": "PDA",
    "source_id": "3621-29756",
    "source_instance": "Google Account 1",
    "source_name": "Google Fit",
    "specimen_source": "4",
    "specimen_source_description": "Serum",
    "temporal_relation_to_meal": "4",
    "temporal_relation_to_meal_description": "Reading was taken after a meal",
    "temporal_relation_to_sleep": "1",
    "temporal_relation_to_sleep_description": "User was fully awake"
  }
}