BloodGlucoseRecord
public final class BloodGlucoseRecord implements Record
Captures the concentration of glucose in the blood. Each record represents a single instantaneous blood glucose reading.
Summary
Constants |
|
|---|---|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
Public constructors |
|---|
BloodGlucoseRecord( |
Public methods |
|
|---|---|
boolean |
|
final @NonNull BloodGlucose |
getLevel()Blood glucose level or concentration. |
final int |
Type of meal related to the blood glucose measurement. |
@NonNull Metadata |
Set of common metadata associated with the written record. |
final int |
Relationship of the meal to the blood glucose measurement. |
final int |
Type of body fluid used to measure the blood glucose. |
@NonNull Instant |
getTime()Time the record happened. |
ZoneOffset |
User experienced zone offset at |
int |
hashCode() |
@NonNull String |
toString() |
Constants
Public constructors
BloodGlucoseRecord
public BloodGlucoseRecord(
@NonNull Instant time,
ZoneOffset zoneOffset,
@NonNull Metadata metadata,
@NonNull BloodGlucose level,
int specimenSource,
int mealType,
int relationToMeal
)
Public methods
getLevel
public final @NonNull BloodGlucose getLevel()
Blood glucose level or concentration. Required field. Valid range: 0-50 mmol/L.
| See also | |
|---|---|
BloodGlucose |
getMealType
public final int getMealType()
Type of meal related to the blood glucose measurement. Optional, enum field. Allowed values: MealType.
| See also | |
|---|---|
MealType |
getMetadata
public @NonNull Metadata getMetadata()
Set of common metadata associated with the written record.
getRelationToMeal
public final int getRelationToMeal()
Relationship of the meal to the blood glucose measurement. Optional, enum field. Allowed values: RelationToMeal.
| See also | |
|---|---|
BloodGlucoseRecord.RelationToMeal |
getSpecimenSource
public final int getSpecimenSource()
Type of body fluid used to measure the blood glucose. Optional, enum field. Allowed values: SpecimenSource.
| See also | |
|---|---|
BloodGlucoseRecord.SpecimenSource |
getZoneOffset
public ZoneOffset getZoneOffset()
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.