clinicalRecord(type:predicate:)
Returns a sample predicate that matches clinical record samples.
Declaration
static func clinicalRecord(type clinicalType: HKClinicalType, predicate: NSPredicate? = nil) -> HKSamplePredicate<HKClinicalRecord>Parameters
- clinicalType:
A type that matches samples that contain clinical record data.
- predicate:
An optional predicate that further restricts the results that the query returns.
Discussion
Use this method to create an HKSamplePredicate instance that you can use to query for HKClinicalRecord objects.