Contents

predicateForMedicationDoseEvent(medicationConceptIdentifier:)

Declaration

class func predicateForMedicationDoseEvent(medicationConceptIdentifier: HKHealthConceptIdentifier) -> NSPredicate

Parameters

  • medicationConceptIdentifier:

    The identifier of the medication that a dose event was created for.

Discussion

Creates a predicate for use with HKQuery subclasses.

Creates a query predicate that matches HKMedicationDoseEvent samples that match a medication’s concept identifier.