Continuous Blood Glucose (cbg)

Jump to...(notable fields on this type)

NB: All fields are required unless otherwise noted.

Jump to example JSON:

type

[ingestion, storage, client] The string cbg.

QUICK SUMMARY
Required:
    jellyfish: yes
    platform: yes

This is the Tidepool data type for continuous glucose monitor (CGM) sensor data. cbg is an abbreviation of 'continuous blood glucose' and contrasts with smbg, abbreviating 'self-monitored blood glucose'. smbg is the Tidepool data type for traditional fingerstick blood glucose meter data.

Note that deviceTime is optional for this data type alone of all diabetes device data types that Tidepool ingests. This is due to the fact that we are now ingesting Dexcom G5 data via integration with Apple's HealthKit; since this data originates with a cellular- and/or Internet-connected iPhone operating as the receiver for a Dexcom G5 sensor, the only stored timestamp is a UTC-anchored timestamp, and there is no notion of a "receiver display time" as there is with earlier generations of Dexcom devices.


units

[ingestion] One of two string values: mg/dL or mmol/L.

[storage, client] The string mmol/L.

See units for further explanation of blood glucose units.

QUICK SUMMARY
Required:
    jellyfish: yes
    platform: yes
Range: Must be one of:
    `mg/dL`
    `mmol/L`

value

[ingestion] Blood glucose value in either mg/dL (integer) or mmol/L (float), with appropriately matching units field.

[storage, client] Blood glucose value in mmol/L (float, potentially unrounded), with appropriately matching units field.

QUICK SUMMARY
Required:
    jellyfish: yes
    platform: yes
Numerical type:
    mg/dL: Integer value representing a `mg/dL` value.
    mmol/L: Floating point value representing a `mmol/L` value.
Range:
    mg/dL:
        min: 0
        max: 1000
    mmol/L:
        min: 0.0
        max: 55.0

clockDriftOffset

See common fields.


conversionOffset

See common fields.


deviceId

See common fields.


deviceTime

This field is optional.

See common fields.


time

See common fields.


timezoneOffset

See common fields.


uploadId

See common fields.


_active

See common fields.


_groupId

See common fields.


_schemaVersion

See common fields.


_version

See common fields.


createdTime

See common fields.


guid

See common fields.


id

See common fields.


example (client)

{
    "type": "cbg",
    "units": "mmol/L",
    "value": 24.811843519973536,
    "clockDriftOffset": 0,
    "conversionOffset": 0,
    "deviceId": "DevId0987654321",
    "deviceTime": "2016-06-13T19:05:43",
    "guid": "cf64b6f6-54af-4e8b-a432-08d53c2484d4",
    "id": "da34f6f278984ae385c91cac6b91eff7",
    "time": "2016-06-14T02:05:43.959Z",
    "timezoneOffset": -420,
    "uploadId": "SampleUploadId"
}

example (ingestion)

{
    "type": "cbg",
    "units": "mg/dL",
    "value": 355,
    "clockDriftOffset": 0,
    "conversionOffset": 0,
    "deviceId": "DevId0987654321",
    "deviceTime": "2016-06-13T19:05:43",
    "time": "2016-06-14T02:05:43.960Z",
    "timezoneOffset": -420,
    "uploadId": "SampleUploadId"
}

example (storage)

{
    "type": "cbg",
    "units": "mmol/L",
    "value": 26.088515557914008,
    "_active": true,
    "_groupId": "abcdef",
    "_schemaVersion": 0,
    "_version": 0,
    "clockDriftOffset": 0,
    "conversionOffset": 0,
    "createdTime": "2016-06-14T02:05:48.960Z",
    "deviceId": "DevId0987654321",
    "deviceTime": "2016-06-13T19:05:43",
    "guid": "4f734593-cd73-4d00-9406-e51b71173b3c",
    "id": "058811d6b8b94063b4f177668f6022f8",
    "time": "2016-06-14T02:05:43.960Z",
    "timezoneOffset": -420,
    "uploadId": "SampleUploadId"
}

results matching ""

    No results matching ""