You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
4.9 KiB
88 lines
4.9 KiB
//
|
|
// SrEcgAlgorithmResults.h
|
|
// sr01sdkProject
|
|
//
|
|
// Created by Linktop on 2024/3/5.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSUInteger, ECG_Arrhythmia) {
|
|
|
|
//心律失常检查未完成,没有结果。The arrhythmia test is incomplete and has no results.
|
|
Arrhythmia_NO_FINNISH = 0,
|
|
//心律失常检查完成,未发现异常事件。The arrhythmia test was completed and no abnormal events were found.
|
|
Arrhythmia_NORMAL = 1,
|
|
// 心律失常检查完成,没有收集到足够好的心电图来做出任何决定.Arrhythmia workup was completed and no good enough ECG was collected to make any decisions.
|
|
Arrhythmia_NOT_ENOUGH_DATA = 2,
|
|
//心律失常检查完成,检测到心动过缓。Arrhythmia test completed, bradycardia detected.
|
|
Arrhythmia_Bradycardia = 3,
|
|
//心律失常检查完成,检测到心房颤动(AFib)。Arrhythmia workup was completed and atrial fibrillation (AFib) was detected.
|
|
Arrhythmia_AFib = 4,
|
|
// 心动过速.Tachycardia
|
|
Arrhythmia_Tachycardia = 5,
|
|
// 心律失常检查完成,有异常,但无法确认心动过缓、心房颤动、心动过速。The arrhythmia test was completed and there were abnormalities, but bradycardia, atrial fibrillation, and tachycardia could not be confirmed.
|
|
Arrhythmia_Abnormal_unknowReason = 6,
|
|
};
|
|
|
|
|
|
typedef NS_ENUM(NSUInteger, ECG_Signal_Quality) {
|
|
ECG_SQ_NO_SIGNAL = 0, // The ECG signal is not present. That is, the user is not connected to the ECG device.
|
|
|
|
/*The user is connected to an ECG device, but the ECG signal quality is poor and the heartbeat cannot be determined. This may be due to excessive noise on the ECG signal. No ECG algorithm can operate at this level of signal quality.*/
|
|
ECG_SQ_TOO_MUSH_NOISE_NO_HR = 1,
|
|
|
|
/* This status indicates that the heartbeat can be determined in the ECG signal, but a large amount of noise is detected in the signal. In this kind of
|
|
User authentication/identification is not possible at signal quality level.*/
|
|
ECG_SQ_NOISE = 2,
|
|
|
|
ECG_SQ_GOOD = 3, // The signal is very good
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, SrecgResProgressType) {
|
|
PRG_HEART_RATE = 1 << 0, // Heart rate(心率)
|
|
PRG_HRV = 1 << 1, // HRV
|
|
PRG_Arrhythmias = 1 << 2, // Arrhythmia test(心率失常检查)
|
|
PRG_STRESS = 1 << 3, // Stress Index( 压力指数)
|
|
PRG_Energy_Consumption = 1 << 4, //energy consumption( 能量消耗)
|
|
};
|
|
|
|
/// ecg measurement results
|
|
@interface SrEcgAlgorithmResults : NSObject
|
|
|
|
@property(assign, nonatomic)int heartRate; // Heart rate 0-invalid, 1-heart rate lower than 40, 254-heart rate higher than 200
|
|
@property(assign, nonatomic, readonly)ECG_Arrhythmia arrhythmia; // 心率检查结果.Heart rate check results
|
|
@property(assign, nonatomic, readonly)ECG_Signal_Quality ecgSq; // 信号质量.Signal quality
|
|
// 心电图信号振幅很低,请确保接触面清洁,然后重试。The ECG signal amplitude is very low, please make sure the contact surfaces are clean and try again.
|
|
@property(assign, nonatomic, readonly)BOOL low_amplitude;
|
|
//心电图信号有明显的噪音,请确保设备没有握得太紧,然后重试。There is noticeable noise in the ECG signal, please make sure you are not holding the device too tightly and try again.
|
|
@property(assign, nonatomic, readonly)BOOL significant_noise;
|
|
|
|
//心电图信号似乎不稳定,请确保您保持静止,然后重试。The EKG signal seems unstable, make sure you remain still and try again.
|
|
@property(assign, nonatomic, readonly)BOOL unstable_signal;
|
|
|
|
//没有足够的数据,请确保遵循心电图记录指南,然后重试。Not enough data, please make sure to follow the ECG recording guidelines and try again.
|
|
@property(assign, nonatomic, readonly)BOOL not_enough_data;
|
|
|
|
@property(assign, nonatomic, readonly)uint16_t rmssd, sdnn;
|
|
|
|
@property(assign, nonatomic, readonly)uint8_t stress; // 压力指数 0-100有效 0XFF表示无效.Pressure index 0-100 is valid, 0XFF means invalid
|
|
|
|
@property(assign, nonatomic, readonly)uint16_t bmr; // basal metabolic rate, Unit: Kcal/m(基础代谢率, 单位:卡每分钟)
|
|
|
|
@property(assign, nonatomic, readonly)uint16_t activeCal; // Active energy consumption, Unit: Kcal/m(有功能量消耗, 单位:卡每分钟)
|
|
|
|
@property(assign, nonatomic, readonly)BOOL present;// 如果用户连接到心电图设备上则为真,否则为假。True if the user is connected to an EKG device, false otherwise.
|
|
|
|
@property(assign, nonatomic, readonly)BOOL alive;// 如果检测到用户心跳则为真,否则为假。True if the user's heartbeat is detected, false otherwise.
|
|
|
|
@property(assign, nonatomic, readonly) int avgHeartrate;// heartrate in average
|
|
|
|
@property(assign, nonatomic, readonly) SrecgResProgressType progressType;
|
|
@property(assign, nonatomic, readonly) int progress;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|