<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuery/predicateForMedicationDoseEvent(statuses:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKQuery(cm)predicateForMedicationDoseEventWithStatuses:"
  },
  "title" : "predicateForMedicationDoseEvent(statuses:)"
}
-->

# predicateForMedicationDoseEvent(statuses:)

```
class func predicateForMedicationDoseEvent(statuses: Set<NSNumber>) -> NSPredicate
```

## Parameters

`statuses`

The logged statuses of the medication dose event to match.

## Discussion

\abstract Creates a predicate for use with HKQuery subclasses.
\discussion Creates a query predicate that matches HKMedicationDoseEvent samples that have any of the statuses specified.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)