Interface HealthSample

Single sample returned by readSamples.

Hierarchy

  • HealthSample

Properties

id: string

Native identifier. Stable across reads — useful as a key for deduplication across paginated queries.

dataType: HealthDataType
startDate: string

ISO-8601 instant in UTC (e.g. "2026-05-17T10:00:00Z").

endDate: string

ISO-8601 instant in UTC (e.g. "2026-05-17T10:00:00Z").

value: number

Sample value in the canonical unit declared by unit.

unit: string

Canonical unit of value (e.g. "count", "m", "kcal", "bpm", "kg", "°C"). See the table in HealthDataType for the unit per data type.

Generated using TypeDoc