<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKFHIRResource/identifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKFHIRResource(py)identifier"
  },
  "title" : "identifier"
}
-->

# identifier

The value from the FHIR resource’s `id` field.

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

## 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`](/documentation/HealthKit/HKFHIRResource/identifier) and [`resourceType`](/documentation/HealthKit/HKFHIRResource/resourceType) properties from the [`HKFHIRResource`](/documentation/HealthKit/HKFHIRResource) object and the [`bundleIdentifier`](/documentation/HealthKit/HKSource/bundleIdentifier) property from the clinical record’s [`source`](/documentation/HealthKit/HKObject/source).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)