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

# HealthKit Functions

## Topics

### Functions

[`extern NSNumber *HKStateOfMindValenceClassificationForValence(double valence);`](/documentation/HealthKit/HKStateOfMindValenceClassificationForValence)

[`extern NSInteger HKMaximumScoreForGAD7AssessmentRisk(HKGAD7AssessmentRisk risk);`](/documentation/HealthKit/HKMaximumScoreForGAD7AssessmentRisk)

Returns the upper bound of the score range for the given GAD-7 risk classification.

[`extern NSInteger HKMaximumScoreForPHQ9AssessmentRisk(HKPHQ9AssessmentRisk risk);`](/documentation/HealthKit/HKMaximumScoreForPHQ9AssessmentRisk)

Returns the upper bound of the score range for the given PHQ-9 risk classification.

[`extern NSInteger HKMinimumScoreForGAD7AssessmentRisk(HKGAD7AssessmentRisk risk);`](/documentation/HealthKit/HKMinimumScoreForGAD7AssessmentRisk)

Returns the lower bound of the score range for the given GAD-7 risk classification.

[`extern NSInteger HKMinimumScoreForPHQ9AssessmentRisk(HKPHQ9AssessmentRisk risk);`](/documentation/HealthKit/HKMinimumScoreForPHQ9AssessmentRisk)

Returns the lower bound of the score range for the given PHQ-9 risk classification.



---

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)