---
title: HKPredicateKeyPathECGClassification
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathecgclassification
---

# HKPredicateKeyPathECGClassification

The key path for the sample’s classification.

## Declaration

```swift
let HKPredicateKeyPathECGClassification: String
```

## Discussion

Discussion Use this constant whenever you want to include the ECG’s classification in a predicate format string. Add a %K placeholder to the format string, and then pass this constant as an argument.

## See Also

### Related Documentation

- [HKElectrocardiogram.Classification](healthkit/hkelectrocardiogram/classification-swift.enum.md)

### Specifying Predicate Key Paths

- [HKPredicateKeyPathECGSymptomsStatus](healthkit/hkpredicatekeypathecgsymptomsstatus.md)
- [HKPredicateKeyPathAverageHeartRate](healthkit/hkpredicatekeypathaverageheartrate.md)
