ECG – Định dạng xuất JSON
Cấu trúc ECG trong bản xuất JSON
Last updated: March 31, 2026
Trên trang này
ECG (điện tâm đồ)
Dữ liệu ECG gồm các lần đo từ thiết bị Apple tương thích (ví dụ Apple Watch từ Series 4). Phân tích nhịp tim chi tiết; có thể hỗ trợ phát hiện rung nhĩ. Trong JSON nằm trong mảng ecg.
Cấu trúc
Mỗi mục gồm kết quả phân loại, nhịp tim trung bình, điện thế và tần số lấy mẫu:
{
"start": "2024-02-06 14:30:00 -0800",
"end": "2024-02-06 14:30:30 -0800",
"classification": "Sinus Rhythm",
"severity": "Not Set",
"averageHeartRate": 72,
"numberOfVoltageMeasurements": 512,
"voltageMeasurements": [
{
"date": "2024-02-06 14:30:00.000 -0800",
"voltage": 0.123,
"units": "V"
}
],
"samplingFrequency": 512,
"source": "Apple Watch"
}
Trường
Bắt buộc
start,end: Thời đoạn đo,yyyy-MM-dd HH:mm:ss Zclassification: Phân loại nhịp (xem dưới — giá trị chuỗi giữ nguyên tiếng Anh như trong dữ liệu)averageHeartRate: Nhịp trung bình (lần/phút)numberOfVoltageMeasurements: Số điểm điện thếvoltageMeasurements: Mảng đo điện thếsamplingFrequency: Hz (Apple Watch thường 512 Hz)source: Thiết bị hoặc app ghi
Tùy chọn
severity: Mức độ kết quả; có thể"Not Set"
Phân loại ECG (classification)
Giá trị từ hệ thống (giữ nguyên trong JSON):
"Sinus Rhythm"— nhịp xoang bình thường"Atrial Fibrillation"— rung nhĩ"High Heart Rate""Inconclusive Low Heart Rate""Inconclusive High Heart Rate""Inconclusive""Inconclusive Poor Recording""Unrecognized"
Đo điện thế
{
"voltageMeasurements": [
{
"date": "2024-02-06 14:30:00.000 -0800",
"voltage": 0.123,
"units": "V"
},
{
"date": "2024-02-06 14:30:00.002 -0800",
"voltage": 0.125,
"units": "V"
}
]
}
date: Mốc thời gian (có mili giây)voltage: Voltunits: Thường"V"
Lấy mẫu theo samplingFrequency (512 Hz ≈ 512 điểm/giây).
Ví dụ
Nhịp xoang bình thường
{
"start": "2024-02-06 14:30:00 -0800",
"end": "2024-02-06 14:30:30 -0800",
"classification": "Sinus Rhythm",
"severity": "Not Set",
"averageHeartRate": 72,
"numberOfVoltageMeasurements": 15360,
"voltageMeasurements": [
{
"date": "2024-02-06 14:30:00.000 -0800",
"voltage": 0.123,
"units": "V"
}
],
"samplingFrequency": 512,
"source": "Apple Watch"
}
Phát hiện rung nhĩ
{
"start": "2024-02-06 16:45:00 -0800",
"end": "2024-02-06 16:45:30 -0800",
"classification": "Atrial Fibrillation",
"severity": "Not Set",
"averageHeartRate": 95,
"numberOfVoltageMeasurements": 15360,
"voltageMeasurements": [
{
"date": "2024-02-06 16:45:00.000 -0800",
"voltage": 0.145,
"units": "V"
}
],
"samplingFrequency": 512,
"source": "Apple Watch"
}
Đo không kết luận
{
"start": "2024-02-06 18:00:00 -0800",
"end": "2024-02-06 18:00:30 -0800",
"classification": "Inconclusive Poor Recording",
"severity": "Not Set",
"averageHeartRate": 68,
"numberOfVoltageMeasurements": 15360,
"voltageMeasurements": [
{
"date": "2024-02-06 18:00:00.000 -0800",
"voltage": 0.098,
"units": "V"
}
],
"samplingFrequency": 512,
"source": "Apple Watch"
}
Hiểu dữ liệu ECG
Tần số lấy mẫu
512 Hz: 30 giây ≈ 15.360 điểm; mỗi điển cách ~2 ms.
Ý nghĩa điện thế
Giá trị dương/âm và dạng sóng phản ánh kích thích/thư giãn cơ tim; dùng phân tích nhịp.
Phân loại
- Sinus Rhythm — nhịp bình thường
- AFib — cần lưu ý y tế
- Inconclusive — tín hiệu kém, cử động, v.v.
- Nhịp cao/thấp — ngoài vùng phân loại tin cậy
Tương thích thiết bị
Apple Watch Series 4+ (app ECG), iPhone đôi 12.1.1+, đã thiết lập ECG.
Ứng dụng
Theo dõi nhịp; phát hiện AFib; hồ sơ y tế; xu hướng; tương quan triệu chứng.
Lưu ý quan trọng
ECG trên Apple Watch không thay chẩn đoán chuyên môn. Kết quả bất thường — tham vấn bác sĩ. Tệp xuất đầy đủ điện thế có thể rất lớn.
Mẹo
Đo đều đặn; đeo chặt và giữ yên; chọn khoảng ngày hợp lý khi xuất.