---
title: HKFHIRVersion
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkfhirversion
---

# HKFHIRVersion

The FHIR version.

## Declaration

```swift
class HKFHIRVersion
```

## Overview

Overview Use an HKFHIRVersion instance to represent the version of the Fast Healthcare Interoperability Resources (FHIR) standard used to create a HKFHIRResource sample.

## Topics

### Creating Version Objects

- [init(fromVersionString:)](healthkit/hkfhirversion/init(fromversionstring:).md)
- [primaryDSTU2()](healthkit/hkfhirversion/primarydstu2().md)
- [primaryR4()](healthkit/hkfhirversion/primaryr4().md)

### Accessing Version Data

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

### Accessing the Release

- [fhirRelease](healthkit/hkfhirversion/fhirrelease.md)
- [HKFHIRRelease](healthkit/hkfhirrelease.md)

### Initializers

- [init(coder:)](healthkit/hkfhirversion/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessing FHIR Data

- [identifier](healthkit/hkfhirresource/identifier.md)
- [fhirVersion](healthkit/hkfhirresource/fhirversion.md)
- [resourceType](healthkit/hkfhirresource/resourcetype.md)
- [HKFHIRResourceType](healthkit/hkfhirresourcetype.md)
- [sourceURL](healthkit/hkfhirresource/sourceurl.md)
- [data](healthkit/hkfhirresource/data.md)
