ErxConsent

public struct ErxConsent : Identifiable, Hashable, Codable

Represents a record of a healthcare consumer’s choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time.

  • ErxConsent default initializer

    Declaration

    Swift

    public init(
        identifier: String,
        insuranceId: String,
        timestamp: String,
        scope: Scope = .patientPrivacy,
        category: Category = .chargcons,
        policyRule: Act = .optIn
    )
  • id

    Id of the consent

    Declaration

    Swift

    public var id: String { get }
  • Identifier of the consent

    Declaration

    Swift

    public let identifier: String
  • Health card insurance identifier a.k.a. kvnr (e.g: X764228533)

    Declaration

    Swift

    public let insuranceId: String
  • Timestamp of the consent

    Declaration

    Swift

    public let timestamp: String
  • A selector of the type of consent being presented

    Declaration

    Swift

    public let scope: Scope
  • The associated category of a consent

    Declaration

    Swift

    public let category: Category
  • Declaration

    Swift

    public let policyRule: Act
  • Declaration

    Swift

    public enum Category : String, Equatable, Codable
  • Declaration

    Swift

    public enum Scope : String, Equatable, Codable
  • Act

    A code specifying the particular kind of Act

    See more

    Declaration

    Swift

    public enum Act : String, Equatable, Codable
  • Declaration

    Swift

    public enum Error : Swift.Error