BloodGlucoseRecord


class BloodGlucoseRecord : Record


Captures the concentration of glucose in the blood. Each record represents a single instantaneous blood glucose reading.

Summary

Public constructors

BloodGlucoseRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    level: BloodGlucose,
    specimenSource: Int,
    mealType: Int,
    relationToMeal: Int,
    metadata: Metadata
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

BloodGlucose

Blood glucose level or concentration.

Int

Type of meal related to the blood glucose measurement.

open Metadata

Set of common metadata associated with the written record.

Int

Relationship of the meal to the blood glucose measurement.

Int

Type of body fluid used to measure the blood glucose.

open Instant

Time the record happened.

open ZoneOffset?

User experienced zone offset at time, or null if unknown.

Constants

RELATION_TO_MEAL_AFTER_MEAL

const val RELATION_TO_MEAL_AFTER_MEAL = 4: Int

RELATION_TO_MEAL_BEFORE_MEAL

const val RELATION_TO_MEAL_BEFORE_MEAL = 3: Int

RELATION_TO_MEAL_FASTING

const val RELATION_TO_MEAL_FASTING = 2: Int

RELATION_TO_MEAL_GENERAL

const val RELATION_TO_MEAL_GENERAL = 1: Int

RELATION_TO_MEAL_UNKNOWN

const val RELATION_TO_MEAL_UNKNOWN = 0: Int

SPECIMEN_SOURCE_CAPILLARY_BLOOD

const val SPECIMEN_SOURCE_CAPILLARY_BLOOD = 2: Int

SPECIMEN_SOURCE_INTERSTITIAL_FLUID

const val SPECIMEN_SOURCE_INTERSTITIAL_FLUID = 1: Int

SPECIMEN_SOURCE_PLASMA

const val SPECIMEN_SOURCE_PLASMA = 3: Int

SPECIMEN_SOURCE_SERUM

const val SPECIMEN_SOURCE_SERUM = 4: Int

SPECIMEN_SOURCE_TEARS

const val SPECIMEN_SOURCE_TEARS = 5: Int

SPECIMEN_SOURCE_UNKNOWN

const val SPECIMEN_SOURCE_UNKNOWN = 0: Int

SPECIMEN_SOURCE_WHOLE_BLOOD

const val SPECIMEN_SOURCE_WHOLE_BLOOD = 6: Int

Public constructors

BloodGlucoseRecord

Added in 1.1.0-alpha10
BloodGlucoseRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    level: BloodGlucose,
    specimenSource: Int = SPECIMEN_SOURCE_UNKNOWN,
    mealType: Int = MealType.MEAL_TYPE_UNKNOWN,
    relationToMeal: Int = RELATION_TO_MEAL_UNKNOWN,
    metadata: Metadata = Metadata.EMPTY
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

level

Added in 1.1.0-alpha10
val levelBloodGlucose

Blood glucose level or concentration. Required field. Valid range: 0-50 mmol/L.

See also
BloodGlucose

mealType

Added in 1.1.0-alpha10
val mealTypeInt

Type of meal related to the blood glucose measurement. Optional, enum field. Allowed values: MealType.

See also
MealType

metadata

Added in 1.1.0-alpha10
open val metadataMetadata

Set of common metadata associated with the written record.

relationToMeal

Added in 1.1.0-alpha10
val relationToMealInt

Relationship of the meal to the blood glucose measurement. Optional, enum field. Allowed values: RelationToMeal.

specimenSource

Added in 1.1.0-alpha10
val specimenSourceInt

Type of body fluid used to measure the blood glucose. Optional, enum field. Allowed values: SpecimenSource.

time

Added in 1.1.0-alpha10
open val timeInstant

Time the record happened.

zoneOffset

Added in 1.1.0-alpha10
open val zoneOffsetZoneOffset?

User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.