Properties
idstring✻userIdstring✻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" }sourceobject✻An object indicating the source of a HDS object.
Properties
idstring✻namestring✻versionstring✻A string that identifies a particular version of the source.
<= 256 charactersExample
"2.18.0"
Example
{ "id": "f6c8e76c-d8a3-4339-879a-4a626edba805", "name": "hda", "version": "2.18.0" }createdAtstring✻
Example
{
"id": "f906f26b-6a0c-4c72-97f2-c9ad8701f730",
"userId": "70c09d76-e53c-470f-916a-ef33706382b4",
"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"
},
"source": {
"id": "f6c8e76c-d8a3-4339-879a-4a626edba805",
"name": "hda",
"version": "2.18.0"
},
"createdAt": "2024-01-29T13:15:40.390Z"
}