---
title: majorVersion
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkfhirversion/majorversion
---

# majorVersion

The standard’s major version number.

## Declaration

```swift
var majorVersion: Int { get }
```

## See Also

### Accessing Version Data

- [minorVersion](healthkit/hkfhirversion/minorversion.md)
- [patchVersion](healthkit/hkfhirversion/patchversion.md)
- [stringRepresentation](healthkit/hkfhirversion/stringrepresentation.md)
