Contents

predicateForObjectsAssociated(electrocardiogram:)

Returns a predicate that matches symptom samples associated with the specified electrocardiogram.

Declaration

class func predicateForObjectsAssociated(electrocardiogram: HKElectrocardiogram) -> NSPredicate

Parameters

  • electrocardiogram:

    The target electrocardiogram.

Return Value

A predicate that matches symptom samples associated with the specified electrocardiogram.

Discussion

If the HKElectrocardiogram sample’s symptomsStatus property is HKElectrocardiogram.SymptomsStatus.present, you can query for symptom samples associated with the electrocardiogram. See Symptom Type Identifiers for a complete list of symptom types.

See Also

Creating electrocardiogram predicates