Properties
typestring✻Examples
"bloodGlucose""bolusCalculation""diabetesType"deviceobjectDevices include Continuous Glucose Monitors, Bolus Calculators, and any other health or fitness peripherals that produce the sample data stored in HDS. Device objects are immutable: You set the device's properties when you create the Device object, and they cannot change.
Properties
idstringAn identifier that uniquely identifies the device object on the hardware running this code.
<= 256 charactersExample
"34de05f1-ecb3-4dea-ab16-81e1a584ebfb"firmwareVersionstringAn arbitrary string representing the current version of the firmware running on the device.
<= 256 charactersExample
"3.0.5"hardwareVersionstringAn arbitrary string representing the hardware version of the device.
<= 256 charactersExample
"6.1.0"manufacturerstringA string representing the device's manufacturer.
<= 256 charactersExample
"Novo Nordisk A/S"modelstringnamestring✻softwareVersionstringAn arbitrary string representing the version of the software running on the device.
<= 256 charactersExample
"8.1.2"
Example
{ "id": "34de05f1-ecb3-4dea-ab16-81e1a584ebfb", "firmwareVersion": "3.0.5", "hardwareVersion": "6.1.0", "manufacturer": "Novo Nordisk A/S", "model": "NovoPen 6", "name": "NovoPen", "softwareVersion": "8.1.2" }metadataobjectThe metadata for an object.
<= 100 propertiesAdditional Properties
Example
{ "externalId": "EX123", "timeZone": "Europe/Copenhagen", "userEntered": false, "property1": true, "property2": 100, "property3": "abc" }
Example
{
"type": "object",
"metadata": {
"externalId": "EX123",
"timeZone": "Europe/Copenhagen",
"userEntered": false,
"property1": true,
"property2": 123,
"property3": "abc"
},
"device": {
"id": "34de05f1-ecb3-4dea-ab16-81e1a584ebfb",
"firmwareVersion": "3.0.5",
"hardwareVersion": "6.1.0",
"manufacturer": "Novo Nordisk A/S",
"model": "NovoPen 6",
"name": "NovoPen",
"softwareVersion": "8.1.2"
}
}