<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKUserAnnotatedMedication",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKUserAnnotatedMedication"
  },
  "title" : "HKUserAnnotatedMedication"
}
-->

# HKUserAnnotatedMedication

A reference to the tracked medication and the details a person can customize.

```
class HKUserAnnotatedMedication
```

## Overview

The details are relevant to the medication tracking experience.

## Topics

### Initializers

[`init?(coder: NSCoder)`](/documentation/HealthKit/HKUserAnnotatedMedication/init(coder:))

### Instance Properties

[`var hasSchedule: Bool`](/documentation/HealthKit/HKUserAnnotatedMedication/hasSchedule)

A Boolean value that indicates whether a medication has a schedule set up.

[`var isArchived: Bool`](/documentation/HealthKit/HKUserAnnotatedMedication/isArchived)

A Boolean value that indicates whether a medication is archived.

[`var medication: HKMedicationConcept`](/documentation/HealthKit/HKUserAnnotatedMedication/medication)

A reference to the specific medication a person is tracking.

[`var nickname: String?`](/documentation/HealthKit/HKUserAnnotatedMedication/nickname)

The nickname that a person added to a medication during the entry experience.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)