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

# dataRepresentation

A raw representation of the record’s data.

```
var dataRepresentation: Data { get }
```

## Discussion

The data’s format varies based on its [`sourceType`](/documentation/HealthKit/HKVerifiableClinicalRecord/sourceType):

- SMART Health Card: The raw representation corresponds to the compact JSON Web Signatures (JWS) serialization. For more information, see [SMART Health Card Framework](https://spec.smarthealth.cards/#health-cards-are-encoded-as-compact-serialization-json-web-signatures-jws).
- EU-DCC Records: The raw representation corresponds to the CBOR Web Tokens (CWT) of the Electronic Health Certificate (HCERT). For more information, see [Electronic Health Certificates](https://github.com/ehn-dcc-development/hcert-spec).

> Important:
> To ensure that the data is authentic and that no one has tampered with it, decompress the data and then use a public key from the issuer to verify their signature.

---

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)