Type Method

predicateForClinicalRecords(from:fhirResourceType:identifier:)

Returns a predicate for a specific FHIR resource.

Declaration

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

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