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": 3.996538553552784,
"clockDriftOffset": 0,
"conversionOffset": 0,
"deviceId": "DevId0987654321",
"deviceTime": "2018-05-14T18:17:07",
"guid": "82bd8ef1-cfa1-4b49-9230-e2cecac7c5cd",
"id": "b8858168bd4e447184ee7c7743ffe303",
"time": "2018-05-14T08:17:07.384Z",
"timezoneOffset": 600,
"uploadId": "SampleUploadId"
}
example (ingestion)
{
"type": "cbg",
"units": "mg/dL",
"value": 421,
"clockDriftOffset": 0,
"conversionOffset": 0,
"deviceId": "DevId0987654321",
"deviceTime": "2018-05-14T18:17:07",
"time": "2018-05-14T08:17:07.385Z",
"timezoneOffset": 600,
"uploadId": "SampleUploadId"
}
example (storage)
{
"type": "cbg",
"units": "mmol/L",
"value": 27.25417263603357,
"_active": true,
"_groupId": "abcdef",
"_schemaVersion": 0,
"_version": 0,
"clockDriftOffset": 0,
"conversionOffset": 0,
"createdTime": "2018-05-14T08:17:12.385Z",
"deviceId": "DevId0987654321",
"deviceTime": "2018-05-14T18:17:07",
"guid": "6ad8322a-e29d-4db7-825f-e0ad4c45d723",
"id": "7779ad3759b14d1fadda7b5bab6d79bd",
"time": "2018-05-14T08:17:07.385Z",
"timezoneOffset": 600,
"uploadId": "SampleUploadId"
}