---
title: "predicateForMedicationDoseEvent(statuses:)"
framework: healthkit
role: symbol
role_heading: Type Method
path: "healthkit/hkquery/predicateformedicationdoseevent(statuses:)"
---

# predicateForMedicationDoseEvent(statuses:)

## Declaration

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

## Parameters

- `statuses`: The logged statuses of the medication dose event to match.

## Discussion

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