About data models

The following section gives you an overview of data models used by the iOS SDK.

Using the Record data model

The Record data model holds resource and additional metadata. FHIRResource is typealias of the HCFHIR.DomainResource type.

struct Record<R: FHIRResource> {
    public var id: String
    public var resource: R
    public var metadata: Metadata
}
The Record.id is mapped to the FHIRResource.id for easier interaction with the SDK when working with resources. Don’t use the FHIRResource.id property in any other way. For more information, see how to store custom identifiers.)

Using the Metadata data model

The Metadata data model holds read-only information about records.

struct Metadata {
    var updatedDate: Date
    var createdDate: Date
}

With your consent, we will analyze your behaviour on the website to improve the website for all users. If you consent to the transmission of analysis data, click “Accept”. You can use the website without giving consent to analyze your behaviour. For further information, visit the privacy policy.