UNPKG

@kingstinct/react-native-healthkit

Version:
30 lines (29 loc) 1.51 kB
import type { QueryOptionsWithAnchor, QueryOptionsWithSortOrder } from '../types/QueryOptions'; import type { BaseSample, DeletedSample } from './Shared'; export type ElectrocardiogramClassification = 'notSet' | 'sinusRhythm' | 'atrialFibrillation' | 'inconclusiveLowHeartRate' | 'inconclusiveHighHeartRate' | 'inconclusivePoorReading' | 'inconclusiveOther'; export type ElectrocardiogramSymptomsStatus = 'notSet' | 'none' | 'present'; export type ElectrocardiogramLead = 'appleWatchSimilarToLeadI' | 'unknown'; export interface ElectrocardiogramVoltage { readonly timeSinceSampleStart: number; readonly voltage: number; readonly lead: ElectrocardiogramLead; } export interface ElectrocardiogramSample extends BaseSample { readonly classification: ElectrocardiogramClassification; readonly symptomsStatus: ElectrocardiogramSymptomsStatus; readonly averageHeartRateBpm?: number; readonly samplingFrequencyHz?: number; readonly numberOfVoltageMeasurements: number; readonly voltages?: readonly ElectrocardiogramVoltage[]; } export interface ElectrocardiogramSamplesWithAnchorResponse { readonly samples: readonly ElectrocardiogramSample[]; readonly deletedSamples: readonly DeletedSample[]; readonly newAnchor: string; } export interface ECGQueryOptionsWithSortOrder extends QueryOptionsWithSortOrder { readonly includeVoltages?: boolean; } export interface ECGQueryOptionsWithAnchor extends QueryOptionsWithAnchor { readonly includeVoltages: boolean; }