---
title: "predicateForClinicalRecords(withFHIRResourceType:)"
framework: healthkit
role: symbol
role_heading: Type Method
path: "healthkit/hkquery/predicateforclinicalrecords(withfhirresourcetype:)"
---

# predicateForClinicalRecords(withFHIRResourceType:)

Returns a predicate for a specific FHIR type.

## Declaration

```swift
class func predicateForClinicalRecords(withFHIRResourceType resourceType: HKFHIRResourceType) -> NSPredicate
```

## Mentioned in

Accessing Health Records

## See Also

### Creating clinical record predicates

- [predicateForClinicalRecords(from:fhirResourceType:identifier:)](healthkit/hkquery/predicateforclinicalrecords(from:fhirresourcetype:identifier:).md)
- [predicateForVerifiableClinicalRecords(withRelevantDateWithin:)](healthkit/hkquery/predicateforverifiableclinicalrecords(withrelevantdatewithin:).md)
