---
title: "init(_:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkdocumenttype/init(_:)"
---

# init(_:)

Creates a document type using the provided identifier.

## Declaration

```swift
convenience init(_ identifier: HKDocumentTypeIdentifier)
```

## Parameters

- `identifier`: An identifier that specifies the type of document to store in the sample. For a complete list of document type identifiers, see doc://com.apple.healthkit/documentation/HealthKit/HKDocumentTypeIdentifier.
