---
title: "predicateForClinicalRecords(from:fhirResourceType:identifier:)"
framework: healthkit
role: symbol
role_heading: Type Method
path: "healthkit/hkquery/predicateforclinicalrecords(from:fhirresourcetype:identifier:)"
---

# predicateForClinicalRecords(from:fhirResourceType:identifier:)

Returns a predicate for a specific FHIR resource.

## Declaration

```swift
class func predicateForClinicalRecords(from source: HKSource, fhirResourceType resourceType: HKFHIRResourceType, identifier: String) -> NSPredicate
```

## Mentioned in

Accessing Health Records

## Discussion

Discussion The FHIR resource identifier is only unique for a particular resource type from a given source. To uniquely identify a FHIR resource, you must compare the identifier, the resource type, and the source.

## See Also

### Creating clinical record predicates

- [predicateForClinicalRecords(withFHIRResourceType:)](healthkit/hkquery/predicateforclinicalrecords(withfhirresourcetype:).md)
- [predicateForVerifiableClinicalRecords(withRelevantDateWithin:)](healthkit/hkquery/predicateforverifiableclinicalrecords(withrelevantdatewithin:).md)
