BloodPressureRecord


class BloodPressureRecord : Record


Captures the blood pressure of a user. Each record represents a single instantaneous blood pressure reading.

Summary

Public companion properties

AggregateMetric<Pressure>

Metric identifier to retrieve average diastolic from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Pressure>

Metric identifier to retrieve maximum diastolic from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Pressure>

Metric identifier to retrieve minimum diastolic from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Pressure>

Metric identifier to retrieve average systolic from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Pressure>

Metric identifier to retrieve maximum systolic from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Pressure>

Metric identifier to retrieve minimum systolic from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

BloodPressureRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    systolic: Pressure,
    diastolic: Pressure,
    bodyPosition: Int,
    measurementLocation: Int,
    metadata: Metadata
)

Public functions

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

Public properties

Int

The user's body position when the measurement was taken.

Pressure

Diastolic blood pressure measurement, in Pressure unit.

Int

The arm and part of the arm where the measurement was taken.

open Metadata

Set of common metadata associated with the written record.

Pressure

Systolic blood pressure measurement, in Pressure unit.

open Instant

Time the record happened.

open ZoneOffset?

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

Constants

BODY_POSITION_LYING_DOWN

const val BODY_POSITION_LYING_DOWN = 3: Int

BODY_POSITION_RECLINING

const val BODY_POSITION_RECLINING = 4: Int

BODY_POSITION_SITTING_DOWN

const val BODY_POSITION_SITTING_DOWN = 2: Int

BODY_POSITION_STANDING_UP

const val BODY_POSITION_STANDING_UP = 1: Int

BODY_POSITION_UNKNOWN

const val BODY_POSITION_UNKNOWN = 0: Int

MEASUREMENT_LOCATION_LEFT_UPPER_ARM

const val MEASUREMENT_LOCATION_LEFT_UPPER_ARM = 3: Int

MEASUREMENT_LOCATION_LEFT_WRIST

const val MEASUREMENT_LOCATION_LEFT_WRIST = 1: Int

MEASUREMENT_LOCATION_RIGHT_UPPER_ARM

const val MEASUREMENT_LOCATION_RIGHT_UPPER_ARM = 4: Int

MEASUREMENT_LOCATION_RIGHT_WRIST

const val MEASUREMENT_LOCATION_RIGHT_WRIST = 2: Int

MEASUREMENT_LOCATION_UNKNOWN

const val MEASUREMENT_LOCATION_UNKNOWN = 0: Int

Public companion properties

DIASTOLIC_AVG

val DIASTOLIC_AVGAggregateMetric<Pressure>

Metric identifier to retrieve average diastolic from androidx.health.connect.client.aggregate.AggregationResult.

DIASTOLIC_MAX

val DIASTOLIC_MAXAggregateMetric<Pressure>

Metric identifier to retrieve maximum diastolic from androidx.health.connect.client.aggregate.AggregationResult.

DIASTOLIC_MIN

val DIASTOLIC_MINAggregateMetric<Pressure>

Metric identifier to retrieve minimum diastolic from androidx.health.connect.client.aggregate.AggregationResult.

SYSTOLIC_AVG

val SYSTOLIC_AVGAggregateMetric<Pressure>

Metric identifier to retrieve average systolic from androidx.health.connect.client.aggregate.AggregationResult.

SYSTOLIC_MAX

val SYSTOLIC_MAXAggregateMetric<Pressure>

Metric identifier to retrieve maximum systolic from androidx.health.connect.client.aggregate.AggregationResult.

SYSTOLIC_MIN

val SYSTOLIC_MINAggregateMetric<Pressure>

Metric identifier to retrieve minimum systolic from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

BloodPressureRecord

Added in 1.1.0-alpha10
BloodPressureRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    systolic: Pressure,
    diastolic: Pressure,
    bodyPosition: Int = BODY_POSITION_UNKNOWN,
    measurementLocation: Int = MEASUREMENT_LOCATION_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

bodyPosition

Added in 1.1.0-alpha10
val bodyPositionInt

The user's body position when the measurement was taken. Optional field. Allowed values: BodyPosition.

diastolic

Added in 1.1.0-alpha10
val diastolicPressure

Diastolic blood pressure measurement, in Pressure unit. Required field. Valid range: 10-180 mmHg.

measurementLocation

Added in 1.1.0-alpha10
val measurementLocationInt

The arm and part of the arm where the measurement was taken. Optional field. Allowed values: MeasurementLocation.

metadata

Added in 1.1.0-alpha10
open val metadataMetadata

Set of common metadata associated with the written record.

systolic

Added in 1.1.0-alpha10
val systolicPressure

Systolic blood pressure measurement, in Pressure unit. Required field. Valid range: 20-200 mmHg.

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.