<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKClinicalCoding/init(system:version:code:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKClinicalCoding(im)initWithSystem:version:code:"
  },
  "title" : "init(system:version:code:)"
}
-->

# init(system:version:code:)

Creates a clinical coding with the specified system, version, and code.

```
init(system: String, version: String?, code: String)
```

## Parameters

`system`

The string that identifies the coding system, typically a HL7 URL.

`version`

The version of the system, if applicable.

`code`

The clinical code string that represents the medical concept.

## Discussion

Use when you need to explicitly construct a coding object to associate
a HealthKit concept with a standardized medical code.

---

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)