GlucoseSampleValue.swift 742 B

123456789101112131415161718192021222324252627
  1. //
  2. // GlucoseSampleValue.swift
  3. // LoopKit
  4. //
  5. // Created by Nathan Racklyeft on 3/6/16.
  6. // Copyright © 2016 Nathan Racklyeft. All rights reserved.
  7. //
  8. import HealthKit
  9. public protocol GlucoseSampleValue: GlucoseValue {
  10. /// Uniquely identifies the source of the sample.
  11. var provenanceIdentifier: String { get }
  12. /// Whether the glucose value was provided for visual consistency, rather than an actual, calibrated reading.
  13. var isDisplayOnly: Bool { get }
  14. /// Whether the glucose value was entered by the user.
  15. var wasUserEntered: Bool { get }
  16. /// Any condition applied to the sample.
  17. var condition: GlucoseCondition? { get }
  18. /// The trend rate of the sample.
  19. var trendRate: HKQuantity? { get }
  20. }