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

# predicateForMedicationDoseEvent(scheduledDates:)

## Declaration

```swift
class func predicateForMedicationDoseEvent(scheduledDates: Set<Date>) -> NSPredicate
```

## Parameters

- `scheduledDates`: The exact scheduled dates of any 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 exact scheduled dates specified.
