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

# predicateForMedicationDoseEvent(medicationConceptIdentifier:)

## Declaration

```swift
class func predicateForMedicationDoseEvent(medicationConceptIdentifier: HKHealthConceptIdentifier) -> NSPredicate
```

## Parameters

- `medicationConceptIdentifier`: The identifier of the 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 that match a medication’s concept identifier.
