com.samsung.android.sdk.healthdata
Interface HealthConstants.BloodGlucose
-
- All Superinterfaces:
- HealthConstants.Common, HealthConstants.DiscreteMeasurement
- Enclosing class:
- HealthConstants
public static interface HealthConstants.BloodGlucose extends HealthConstants.DiscreteMeasurement
This interface defines blood glucose data of the user.Properties
Properties of the following extending interfaces are available for this data type.
Blood glucose data has the following properties.
See more common properties by spreading this section out.Property name Description HealthConstants.BloodGlucose.DEVICE_UUID [Mandatory]
Device identifier which provides the health dataHealthConstants.BloodGlucose.START_TIME [Mandatory]
UTC when the measurement is startedHealthConstants.BloodGlucose.TIME_OFFSET [Mandatory]
Time offset in milliseconds which considers the time zone and daylight saving timeHealthConstants.BloodGlucose.GLUCOSE [Mandatory]
Measured blood glucose valueHealthConstants.BloodGlucose.MEASUREMENT_TYPE [Mandatory]
Type of the sample bloodHealthConstants.BloodGlucose.MEAL_TIME UTC at which meal is taken HealthConstants.BloodGlucose.MEAL_TYPE Context information for meal HealthConstants.BloodGlucose.SAMPLE_SOURCE_TYPE Source type of the blood vessel where the sample is taken HealthConstants.BloodGlucose.COMMENT Comment HealthConstants.BloodGlucose.CUSTOM Custom info which is formatted with JSON and compressed data Data Permission
The user's consent is required to read or write this data type. HealthPermissionManager.requestPermissions() displays a data permission UI to the user.
See Permission Manager and request data permission.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description static String
COMMENT
Comment for data.static String
GLUCOSE
Measured blood glucose value in millimoles per liter.static String
HEALTH_DATA_TYPE
Data type name for blood glucose data.static String
MEAL_TIME
UTC milliseconds at which meal is taken.static String
MEAL_TYPE
Context information for meal.static int
MEAL_TYPE_AFTER_BEDTIME
Deprecated.Use other meal types.static int
MEAL_TYPE_AFTER_BREAKFAST
Measurement taken after breakfast.static int
MEAL_TYPE_AFTER_DINNER
Measurement taken after dinner.static int
MEAL_TYPE_AFTER_LUNCH
Measurement taken after lunch.static int
MEAL_TYPE_AFTER_MEAL
Measurement taken after a meal.static int
MEAL_TYPE_AFTER_SNACK
Measurement taken after a snack.static int
MEAL_TYPE_BEFORE_BREAKFAST
Measurement taken before breakfast.static int
MEAL_TYPE_BEFORE_DINNER
Measurement taken before dinner.static int
MEAL_TYPE_BEFORE_LUNCH
Measurement taken before lunch.static int
MEAL_TYPE_BEFORE_MEAL
Measurement taken before a meal.static int
MEAL_TYPE_BEFORE_SLEEP
Measurement taken before sleep.static int
MEAL_TYPE_FASTING
Measurement taken during fasting.static int
MEAL_TYPE_GENERAL
Measurement in general.static String
MEASUREMENT_TYPE
Type of the sample blood for the blood glucose measurement.static int
MEASUREMENT_TYPE_NOT_DEFINED
Undefined measurement type.static int
MEASUREMENT_TYPE_PLASMA
Plasma measurement type.static int
MEASUREMENT_TYPE_SERUM
Serum measurement type.static int
MEASUREMENT_TYPE_WHOLE_BLOOD
Whole blood measurement type.static String
SAMPLE_SOURCE_TYPE
Source type of the blood vessel where the sample is taken.static int
SAMPLE_SOURCE_TYPE_CAPILLARY
Capillary sample source type.static int
SAMPLE_SOURCE_TYPE_NOT_DEFINED
Sample source type is not defined.static int
SAMPLE_SOURCE_TYPE_VENOUS
Source type for the venous blood.-
Fields inherited from interface com.samsung.android.sdk.healthdata.HealthConstants.DiscreteMeasurement
START_TIME, TIME_OFFSET
-
Fields inherited from interface com.samsung.android.sdk.healthdata.HealthConstants.Common
CREATE_TIME, CUSTOM, DEVICE_UUID, PACKAGE_NAME, UPDATE_TIME, UUID
-
-
-
-
Field Detail
-
GLUCOSE
static final String GLUCOSE
Measured blood glucose value in millimoles per liter.- Mandatory
- Type:
float
- Value range: 1 ~ 40
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MEAL_TIME
static final String MEAL_TIME
UTC milliseconds at which meal is taken.- Optional
- Type:
long
- Value range: 0 and above
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MEAL_TYPE
static final String MEAL_TYPE
Context information for meal.- Optional
- Type:
int
- Available values: one of the following values
Is the blood glucose data's meal type shown differently on Samsung Health?
The meal type of inserted blood glucose data can be shown differently on Samsung Health because its UI policy can be changed when Samsung Health is updated. E.g. Blood glucose data that is saved with
MEAL_TYPE_BEFORE_BREAKFAST
can be shown as Pre-meal on Samsung Health andMEAL_TYPE_AFTER_SNACK
can be shown as General. But it doesn't affect to data. Its meal type isMEAL_TYPE_BEFORE_BREAKFAST
as it is.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MEAL_TYPE_FASTING
static final int MEAL_TYPE_FASTING
Measurement taken during fasting.
Its constant value is80001
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTER_MEAL
static final int MEAL_TYPE_AFTER_MEAL
Measurement taken after a meal.
Its constant value is80002
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_BEFORE_BREAKFAST
static final int MEAL_TYPE_BEFORE_BREAKFAST
Measurement taken before breakfast.
Its constant value is80003
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTER_BREAKFAST
static final int MEAL_TYPE_AFTER_BREAKFAST
Measurement taken after breakfast.
Its constant value is80004
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_BEFORE_LUNCH
static final int MEAL_TYPE_BEFORE_LUNCH
Measurement taken before lunch.
Its constant value is80005
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTER_LUNCH
static final int MEAL_TYPE_AFTER_LUNCH
Measurement taken after lunch.
Its constant value is80006
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_BEFORE_DINNER
static final int MEAL_TYPE_BEFORE_DINNER
Measurement taken before dinner.
Its constant value is80007
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTER_DINNER
static final int MEAL_TYPE_AFTER_DINNER
Measurement taken after dinner.
Its constant value is80008
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTER_BEDTIME
@Deprecated static final int MEAL_TYPE_AFTER_BEDTIME
Deprecated. Use other meal types.Measurement taken after bedtime.
Its constant value is80009
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTER_SNACK
static final int MEAL_TYPE_AFTER_SNACK
Measurement taken after a snack.
Its constant value is80010
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_BEFORE_MEAL
static final int MEAL_TYPE_BEFORE_MEAL
Measurement taken before a meal.
Its constant value is80011
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.1.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_GENERAL
static final int MEAL_TYPE_GENERAL
Measurement in general.
Its constant value is80012
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.1.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_BEFORE_SLEEP
static final int MEAL_TYPE_BEFORE_SLEEP
Measurement taken before sleep.
Its constant value is80013
. Refer to here for the blood glucose's meal type UI of Samsung Health.- Since:
- 1.2.1
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEASUREMENT_TYPE
static final String MEASUREMENT_TYPE
Type of the sample blood for the blood glucose measurement.- Mandatory
- Type:
int
- Available values: one of the following values
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MEASUREMENT_TYPE_WHOLE_BLOOD
static final int MEASUREMENT_TYPE_WHOLE_BLOOD
Whole blood measurement type.
Its constant value is90001
.- Since:
- 1.0.0
- See Also:
MEASUREMENT_TYPE
, Constant Field Values
-
MEASUREMENT_TYPE_PLASMA
static final int MEASUREMENT_TYPE_PLASMA
Plasma measurement type.
Its constant value is90002
.- Since:
- 1.0.0
- See Also:
MEASUREMENT_TYPE
, Constant Field Values
-
MEASUREMENT_TYPE_SERUM
static final int MEASUREMENT_TYPE_SERUM
Serum measurement type.
Its constant value is90003
.- Since:
- 1.0.0
- See Also:
MEASUREMENT_TYPE
, Constant Field Values
-
MEASUREMENT_TYPE_NOT_DEFINED
static final int MEASUREMENT_TYPE_NOT_DEFINED
Undefined measurement type.
Its constant value is-1
.- Since:
- 1.0.0
- See Also:
MEASUREMENT_TYPE
, Constant Field Values
-
SAMPLE_SOURCE_TYPE
static final String SAMPLE_SOURCE_TYPE
Source type of the blood vessel where the sample is taken.- Optional
- Type:
int
- Available values: one of the following values
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
SAMPLE_SOURCE_TYPE_VENOUS
static final int SAMPLE_SOURCE_TYPE_VENOUS
Source type for the venous blood.
Its constant value is90001
.- Since:
- 1.0.0
- See Also:
SAMPLE_SOURCE_TYPE
, Constant Field Values
-
SAMPLE_SOURCE_TYPE_CAPILLARY
static final int SAMPLE_SOURCE_TYPE_CAPILLARY
Capillary sample source type.
Its constant value is90002
.- Since:
- 1.0.0
- See Also:
SAMPLE_SOURCE_TYPE
, Constant Field Values
-
SAMPLE_SOURCE_TYPE_NOT_DEFINED
static final int SAMPLE_SOURCE_TYPE_NOT_DEFINED
Sample source type is not defined.
Its constant value is-1
.- Since:
- 1.0.0
- See Also:
SAMPLE_SOURCE_TYPE
, Constant Field Values
-
COMMENT
static final String COMMENT
Comment for data.- Optional
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
HEALTH_DATA_TYPE
static final String HEALTH_DATA_TYPE
Data type name for blood glucose data.
Use"com.samsung.health.blood_glucose"
to add permission to the manifest file.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
-