---
title: identifier
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkfhirresource/identifier
---

# identifier

The value from the FHIR resource’s id field.

## Declaration

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

## Mentioned in

Accessing Health Records

## Discussion

Discussion This identifier is only unique for a particular resource type from a given source. To uniquely identify a FHIR resource, you must compare the identifier and resourceType properties from the HKFHIRResource object and the bundleIdentifier property from the clinical record’s source.

## See Also

### Accessing FHIR Data

- [fhirVersion](healthkit/hkfhirresource/fhirversion.md)
- [HKFHIRVersion](healthkit/hkfhirversion.md)
- [resourceType](healthkit/hkfhirresource/resourcetype.md)
- [HKFHIRResourceType](healthkit/hkfhirresourcetype.md)
- [sourceURL](healthkit/hkfhirresource/sourceurl.md)
- [data](healthkit/hkfhirresource/data.md)
