---
title: patientName
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkcdadocument/patientname
---

# patientName

The patient’s name.

## Declaration

```swift
var patientName: String { get }
```

## Discussion

Discussion HealthKit automatically extracts the patient’s name from the CDA’s XML data.

## See Also

### Accessing the Document’s Data

- [authorName](healthkit/hkcdadocument/authorname.md)
- [custodianName](healthkit/hkcdadocument/custodianname.md)
- [documentData](healthkit/hkcdadocument/documentdata.md)
- [title](healthkit/hkcdadocument/title.md)
