Device event subType: calibration

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 deviceEvent.

QUICK SUMMARY
Required:
    jellyfish: yes
    platform: yes

subType

[ingestion, storage, client] The string calibration.

QUICK SUMMARY
Required:
    jellyfish: yes
    platform: yes

The calibration sub-type of deviceEvent represents a user's manual entry of an smbg value to calibrate a continuous glucose monitoring (CGM) device.


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

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": "deviceEvent",
    "subType": "calibration",
    "units": "mmol/L",
    "value": 19.982692767763922,
    "clockDriftOffset": 0,
    "conversionOffset": 0,
    "deviceId": "DevId0987654321",
    "deviceTime": "2016-06-13T19:05:44",
    "guid": "19c681d0-dd75-4430-8bce-aefb0da60006",
    "id": "78c20060b36e4ca8b4be38a2b2fb90d3",
    "time": "2016-06-14T02:05:44.655Z",
    "timezoneOffset": -420,
    "uploadId": "SampleUploadId"
}

example (ingestion)

{
    "type": "deviceEvent",
    "subType": "calibration",
    "units": "mg/dL",
    "value": 463,
    "clockDriftOffset": 0,
    "conversionOffset": 0,
    "deviceId": "DevId0987654321",
    "deviceTime": "2016-06-13T19:05:44",
    "time": "2016-06-14T02:05:44.656Z",
    "timezoneOffset": -420,
    "uploadId": "SampleUploadId"
}

example (storage)

{
    "type": "deviceEvent",
    "subType": "calibration",
    "units": "mmol/L",
    "value": 6.882927508896461,
    "_active": true,
    "_groupId": "abcdef",
    "_schemaVersion": 0,
    "_version": 0,
    "clockDriftOffset": 0,
    "conversionOffset": 0,
    "createdTime": "2016-06-14T02:05:49.656Z",
    "deviceId": "DevId0987654321",
    "deviceTime": "2016-06-13T19:05:44",
    "guid": "5a13f09f-96bd-4baa-989a-34263e6a802f",
    "id": "c9b7cd3520b347f39c3f8cb8ce1bd634",
    "time": "2016-06-14T02:05:44.656Z",
    "timezoneOffset": -420,
    "uploadId": "SampleUploadId"
}