VLDDiabetes
@interface VLDDiabetes : VLDRecord
Diabetes Measurements are comprised of a user’s blood glucose and hormone levels related to diabetes treatment and management.
-
The value of the measured quantity in ng/mL
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *cPeptide;
Swift
var cPeptide: NSNumber? { get set }
-
The value of the measured quantity in mg/dL
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *fastingPlasmaGlucoseTest;
Swift
var fastingPlasmaGlucoseTest: NSNumber? { get set }
-
The value of the measured quantity in %
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *hba1c;
Swift
var hba1c: NSNumber? { get set }
-
The value of the measured quantity in U
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *insulin;
Swift
var insulin: NSNumber? { get set }
-
The value of the measured quantity in mg/dL
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *oralGlucoseToleranceTest;
Swift
var oralGlucoseToleranceTest: NSNumber? { get set }
-
The value of the measured quantity in mg/dL
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *randomPlasmaGlucoseTest;
Swift
var randomPlasmaGlucoseTest: NSNumber? { get set }
-
The value of the measured quantity in mg/dL
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *triglyceride;
Swift
var triglyceride: NSNumber? { get set }
-
The value of the measured quantity in mg/dL
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *bloodGlucose;
Swift
var bloodGlucose: NSNumber? { get set }
-
When the reading was taken in relation to food consumption
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) VLDDiabetesMealRelationship relationshipToMeal;
Swift
var relationshipToMeal: VLDDiabetesMealRelationship { get set }
-
Diabetes event associated with this reading
Declaration
Objective-C
- (VLDDiabetesEvent)diabetesEvent;
Swift
func diabetesEvent() -> VLDDiabetesEvent
-
Indication if glucose reading reported out of range
Declaration
Objective-C
- (VLDDiabetesOutOfRange)outOfRange;
Swift
func outOfRange() -> VLDDiabetesOutOfRange
-
The glucose value of the record converted to the specified unit.
Declaration
Objective-C
- (NSNumber *_Nullable)bloodGlucoseWithUnit:(VLDGlucoseUnit)unit;
Swift
func bloodGlucose(with unit: VLDGlucoseUnit) -> NSNumber?
Parameters
unit
the blood glucose unit to retrieve the blood glucose value in.
-
Set the glucose value of the record after converting from the specified unit to mg/dL.
Declaration
Objective-C
- (void)setBloodGlucose:(NSNumber *_Nonnull)bloodGlucose withUnit:(VLDGlucoseUnit)unit;
Swift
func setBloodGlucose(_ bloodGlucose: NSNumber, with unit: VLDGlucoseUnit)
Parameters
bloodGlucose
the blood glucose value to store in the record.
unit
the blood glucose unit that the accompanying blood glucose value is currently in.
-
Name for a meal relationship value.
Declaration
Objective-C
+ (NSString *_Nonnull)nameForMealRelationship: (VLDDiabetesMealRelationship)mealRelationship;
Swift
class func name(for mealRelationship: VLDDiabetesMealRelationship) -> String
Parameters
mealRelationship
The VLDDiabetesMealRelationship value to get the name for.
-
Set the associated diabetes event.
Declaration
Objective-C
- (void)setDiabetesEvent:(VLDDiabetesEvent)tag;
Swift
func setDiabetesEvent(_ tag: VLDDiabetesEvent)
Parameters
tag
the event tag to store.
-
Set the associated flag
Declaration
Objective-C
- (void)setOutOfRange:(VLDDiabetesOutOfRange)flag;
Swift
func setOutOfRange(_ flag: VLDDiabetesOutOfRange)
Parameters
flag
the flag to store.