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

# predicateForMedicationDoseEvent(scheduledDate:)

## Declaration

```swift
class func predicateForMedicationDoseEvent(scheduledDate: Date) -> NSPredicate
```

## Parameters

- `scheduledDate`: The exact scheduled date 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 exact scheduled date specified.
