---
title: documentType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkdocumentsample/documenttype
---

# documentType

The type of document represented by the sample.

## Declaration

```swift
var documentType: HKDocumentType { get }
```
