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

# predicateForMedicationDoseEvent(status:)

## Declaration

```swift
class func predicateForMedicationDoseEvent(status: HKMedicationDoseEvent.LogStatus) -> NSPredicate
```

## Parameters

- `status`: The logged status 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 the status specified.
