Quantity Sample

A sample representing a quantity associated with a start and end time.

Documentation

Extends
Properties

quantityobject✻

An object that stores a value for a given unit.

Documentation

Properties

unitstring✻

The quantity's unit.

Documentation

Example
"mg/dL"

valuenumber✻

The quantity's value.

Documentation

Example
100
Example
{
	"id": "f906f26b-6a0c-4c72-97f2-c9ad8701f730",
	"userId": "70c09d76-e53c-470f-916a-ef33706382b4",
	"type": "quantitySample",
	"startDate": "2024-01-29T13:15:38.098Z",
	"endDate": "2024-01-29T13:15:39.412Z",
	"quantity": {
		"unit": "mg/dL",
		"value": 100
	},
	"metadata": {},
	"device": {
		"name": "Example device"
	},
	"source": {
		"id": "f6c8e76c-d8a3-4339-879a-4a626edba805",
		"name": "hda",
		"version": "2.18.0"
	},
	"createdAt": "2024-01-29T13:15:40.390Z"
}