---
title: HKAppleECGAlgorithmVersion.version2
framework: healthkit
role: symbol
role_heading: Case
path: healthkit/hkappleecgalgorithmversion/version2
---

# HKAppleECGAlgorithmVersion.version2

The version 2 algorithm.

## Declaration

```swift
case version2
```

## Discussion

Discussion Version 2 of the ECG algorithm includes the following changes: The ECG app can check for atrial fibrillation for heart rates up to 150 BPM. The ECG app now distinguishes between poor recordings and inconclusive results. Apple Watch reports a poor recording when circumstances cause the watch to collect insufficient or inaccurate data, such as when the user wears the watch too loosely on their wrist, or if the user’s arm isn’t resting on a firm surface. The user can make another attempt at measuring their ECG after fixing the issue. An inconclusive reading indicates the system can’t interpret the data, for instance if the user wears a pacemaker, or if they exhibit an arrhythmia the app doesn’t recognize.

## See Also

### Versions

- [HKAppleECGAlgorithmVersion.version1](healthkit/hkappleecgalgorithmversion/version1.md)
