<!--
{
  "documentType" : "article",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/healthkit-variables",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "HealthKit Variables"
}
-->

# HealthKit Variables

## Topics

### Variables

[`static let bleedingAfterPregnancy: HKCategoryTypeIdentifier`](/documentation/HealthKit/HKCategoryTypeIdentifier/bleedingAfterPregnancy)

A category type that records bleeding after pregnancy as a symptom.

[`static let bleedingDuringPregnancy: HKCategoryTypeIdentifier`](/documentation/HealthKit/HKCategoryTypeIdentifier/bleedingDuringPregnancy)

A category type that records bleeding during pregnancy as a symptom.

[`static let sleepApneaEvent: HKCategoryTypeIdentifier`](/documentation/HealthKit/HKCategoryTypeIdentifier/sleepApneaEvent)

[`let HKDevicePropertyKeyFirmwareVersion: String`](/documentation/HealthKit/HKDevicePropertyKeyFirmwareVersion)

The device’s firmware version.

[`let HKDevicePropertyKeyHardwareVersion: String`](/documentation/HealthKit/HKDevicePropertyKeyHardwareVersion)

The device’s hardware version.

[`let HKDevicePropertyKeyLocalIdentifier: String`](/documentation/HealthKit/HKDevicePropertyKeyLocalIdentifier)

A unique identifier for the device on the hardware running the app. For more information, see [`localIdentifier`](/documentation/HealthKit/HKDevice/localIdentifier).

[`let HKDevicePropertyKeyManufacturer: String`](/documentation/HealthKit/HKDevicePropertyKeyManufacturer)

The device’s manufacturer.

[`let HKDevicePropertyKeyModel: String`](/documentation/HealthKit/HKDevicePropertyKeyModel)

The device’s model.

[`let HKDevicePropertyKeyName: String`](/documentation/HealthKit/HKDevicePropertyKeyName)

The device’s name.

[`let HKDevicePropertyKeySoftwareVersion: String`](/documentation/HealthKit/HKDevicePropertyKeySoftwareVersion)

The device’s software version.

[`let HKDevicePropertyKeyUDIDeviceIdentifier: String`](/documentation/HealthKit/HKDevicePropertyKeyUDIDeviceIdentifier)

The device’s UDI Device Identifier.

[`let HKPredicateKeyPathCount: String`](/documentation/HealthKit/HKPredicateKeyPathCount)

A key path for the sample’s count.

[`static let GAD7: HKScoredAssessmentTypeIdentifier`](/documentation/HealthKit/HKScoredAssessmentTypeIdentifier/GAD7)

[`static let PHQ9: HKScoredAssessmentTypeIdentifier`](/documentation/HealthKit/HKScoredAssessmentTypeIdentifier/PHQ9)

[`let HKSourceRevisionAnyOperatingSystem: OperatingSystemVersion`](/documentation/HealthKit/HKSourceRevisionAnyOperatingSystem)

A constant that matches any operating system.

[`let HKSourceRevisionAnyProductType: String`](/documentation/HealthKit/HKSourceRevisionAnyProductType)

A constant that matches any product type.

[`let HKSourceRevisionAnyVersion: String`](/documentation/HealthKit/HKSourceRevisionAnyVersion)

A constant that matches any version.

[`let HKDataTypeIdentifierUserAnnotatedMedicationConcept: String`](/documentation/HealthKit/HKDataTypeIdentifierUserAnnotatedMedicationConcept)

The user annotated medication type that represents a medication concept.

[`let HKMedicationDoseEventTypeIdentifierMedicationDoseEvent: String`](/documentation/HealthKit/HKMedicationDoseEventTypeIdentifierMedicationDoseEvent)

A medication dose event type that represents a single dose administration for a medication.

[`let HKPredicateKeyPathLogOrigin: String`](/documentation/HealthKit/HKPredicateKeyPathLogOrigin)

The key path you use to create predicates that query by the dose event’s medication log origin.

[`let HKPredicateKeyPathMedicationConceptIdentifier: String`](/documentation/HealthKit/HKPredicateKeyPathMedicationConceptIdentifier)

The key path you use to create predicates that query by the dose event’s medication concept identifier.

[`let HKPredicateKeyPathScheduledDate: String`](/documentation/HealthKit/HKPredicateKeyPathScheduledDate)

The key path you use to create predicates that query by the dose event’s scheduled date.

[`let HKPredicateKeyPathStatus: String`](/documentation/HealthKit/HKPredicateKeyPathStatus)

The key path you use to create predicates that query by a dose event’s log status.

[`let HKUserAnnotatedMedicationPredicateKeyPathHasSchedule: String`](/documentation/HealthKit/HKUserAnnotatedMedicationPredicateKeyPathHasSchedule)

The key path you use to create predicates for whether or not a medication has a schedule.

[`let HKUserAnnotatedMedicationPredicateKeyPathIsArchived: String`](/documentation/HealthKit/HKUserAnnotatedMedicationPredicateKeyPathIsArchived)

The key path you use to create predicates for the medication’s archived status.



---

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)