BloodGlucoseType

The data type representing blood glucose data.

Predefined instance

Using the following instance allows for obtaining blood glucose data with more concise code.

Required permission

The user's consent is required to access this data type. Check the granted permissions and request permissions if the required permission is not granted yet with:

See a code example in here.

Available requests

Data specifications

This data type includes the following information.

PropertyDescription
uid[Mandatory]
The data's unique identifier assigned by the Samsung Health.
startTime[Mandatory]
The timestamp representing the start of measurement, specified as Instant, in milliseconds.
endTime[Mandatory]
The timestamp representing the end of measurement, specified as Instant, in milliseconds.
zoneOffset[Mandatory]
The ZoneOffset for startTime and endTime.
dataSource[Mandatory]
The data's source information including the application package name and which device's ID.
GLUCOSE_LEVEL[Mandatory]
The measured blood glucose value in mmol/L.
MEASUREMENT_TYPE[Mandatory]
The type of blood sample used for the blood glucose measurement.
MEAL_STATUS[Mandatory]
The MealStatus when the blood glucose level was measured.
SERIES_DATAThe continuous blood glucose levels. It is represented as the list of BloodGlucose.
MEAL_TIMEThe timestamp representing the meal time, specified as Instant, in milliseconds.
INSULIN_INJECTEDThe amount of insulin, in a specified unit, that was injected before the blood glucose measurement.
MEDICATION_TAKENThe medication taken before the blood glucose measurement.
SAMPLE_SOURCE_TYPEThe type of source used for indicating where in the body the sample was taken.

Since

1.0.0

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The meal status when the blood glucose level was measured. It is used in BloodGlucoseType.MEAL_STATUS.

Link copied to clipboard

The type of blood used for measurement.

Link copied to clipboard

The type of sample sources used for blood glucose measurement.

Properties

Link copied to clipboard

Retrieves a ChangedDataRequest instance to read changed blood glucose data.

Link copied to clipboard

Retrieves a DeleteDataRequest instance to delete blood glucose data that the application inserted into the Samsung Health.

Link copied to clipboard

Retrieves an InsertDataRequest instance to insert blood glucose data.

Link copied to clipboard

Retrieves a ReadDataRequest instance to read blood glucose data.

Link copied to clipboard

Retrieves an UpdateDataRequest instance to update blood glucose data that the application inserted into the Samsung Health.

Preferences Submitted

You have successfully updated your cookie preferences.