---
title: "result(for:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkuserannotatedmedicationquerydescriptor/result(for:)"
---

# result(for:)

Returns the user annotated medications given the query descriptor configuration. Returns the empty array if no HKUserAnnotatedMedication objects match.

## Declaration

```swift
func result(for healthStore: HKHealthStore) async throws -> [HKUserAnnotatedMedication]
```
