OpenMHealthHeartRate class

Represents a heart rate measurement according to the OpenMHealth schema (v2.0).

Extends OpenMHealthSchema to provide a standardized representation of heart rate measurements, including the heart rate value, time frame, and optional context such as relationship to physical activity and sleep.

Inheritance

Constructors

OpenMHealthHeartRate({required UnitValue heartRate, required TimeFrame effectiveTimeFrame, String? descriptiveStatistic, String? temporalRelationshipToPhysicalActivity, String? temporalRelationshipToSleep})
Creates a new heart rate measurement.

Properties

descriptiveStatistic String?
Optional statistical context if this value represents an aggregate of measurements.
final
effectiveTimeFrame TimeFrame
The time frame when this measurement was taken.
final
hashCode int
The hash code for this object.
no setterinherited
heartRate UnitValue
The heart rate value with its unit (typically "beatsPerMinute").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaId String
The schema identifier for OpenMHealth heart rate measurements (version 2.0).
no setteroverride
temporalRelationshipToPhysicalActivity String?
Optional relationship of this measurement to physical activity.
final
temporalRelationshipToSleep String?
Optional relationship of this measurement to the subject's sleep cycle.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this heart rate measurement to its JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited