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

# predicateForMedicationDoseEvent(medicationConceptIdentifiers:)

## Declaration

```swift
class func predicateForMedicationDoseEvent(medicationConceptIdentifiers: Set<HKHealthConceptIdentifier>) -> NSPredicate
```

## Parameters

- `medicationConceptIdentifiers`: Any identifier of a medication that a dose event was created for.

## Discussion

Discussion Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKMedicationDoseEvent samples generated by any medication in a set of medication concept identifiers.
