---
title: HKDocumentTypeIdentifier
framework: healthkit
role: symbol
role_heading: Structure
path: healthkit/hkdocumenttypeidentifier
---

# HKDocumentTypeIdentifier

The identifiers for documents.

## Declaration

```swift
struct HKDocumentTypeIdentifier
```

## Overview

Overview To create an HKDocumentType instance, pass an HKDocumentTypeIdentifier value to the documentType(forIdentifier:) method. For the complete list of quantity type identifiers, see Document Types.

## Topics

### Document Types

- [CDA](healthkit/hkdocumenttypeidentifier/cda.md)

### Initializers

- [init(rawValue:)](healthkit/hkdocumenttypeidentifier/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating document types

- [documentType(forIdentifier:)](healthkit/hkobjecttype/documenttype(foridentifier:).md)
