---
title: "init(system:version:code:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkclinicalcoding/init(system:version:code:)"
---

# init(system:version:code:)

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

## Declaration

```swift
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

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