<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKFHIRVersion/init(fromVersionString:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKFHIRVersion(cm)versionFromVersionString:error:"
  },
  "title" : "init(fromVersionString:)"
}
-->

# init(fromVersionString:)

Creates an FHIR version object from a string representation of the version.

```
convenience init(fromVersionString versionString: String) throws
```

## Parameters

`versionString`

A string representing the version.

## Discussion

The string must be in the following format: `<major>.<minor>.<patch>`.

---

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)