---
title: predicate
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkverifiableclinicalrecordquerydescriptor/predicate
---

# predicate

A predicate that limits the results returned by the query.

## Declaration

```swift
var predicate: NSPredicate?
```

## Discussion

Discussion If this property is nil, the query returns all records of the specified type.

## See Also

### Accessing Query Properties

- [recordTypes](healthkit/hkverifiableclinicalrecordquerydescriptor/recordtypes.md)
- [sourceTypes](healthkit/hkverifiableclinicalrecordquerydescriptor/sourcetypes.md)
