New Object

Documentation

Properties

typestring✻

Documentation

Examples
"bloodGlucose"
"bolusCalculation"
"diabetesType"

deviceobject

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

Documentation

Properties

idstring

An identifier that uniquely identifies the device object on the hardware running this code.

<= 256 characters

Documentation

Example
"34de05f1-ecb3-4dea-ab16-81e1a584ebfb"

firmwareVersionstring

An arbitrary string representing the current version of the firmware running on the device.

<= 256 characters

Documentation

Example
"3.0.5"

hardwareVersionstring

An arbitrary string representing the hardware version of the device.

<= 256 characters

Documentation

Example
"6.1.0"

manufacturerstring

A string representing the device's manufacturer.

<= 256 characters

Documentation

Example
"Novo Nordisk A/S"

modelstring

A string representing the device's model.

<= 256 characters

Documentation

Example
"NovoPen 6"

namestring✻

The user-facing name for the device.

<= 256 characters

Documentation

Example
"NovoPen"

softwareVersionstring

An arbitrary string representing the version of the software running on the device.

<= 256 characters

Documentation

Example
"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"
}

metadataobject

The metadata for an object.

<= 100 properties

Documentation

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"
	}
}