TestSession
public class TestSession: Decodable
The TestSession
struct represents a session of multiple lung function tests.
-
The identifier for the test session.
Declaration
Swift
public var id: String
-
The date/time for when the test session started.
Declaration
Swift
public var startedAt: Date
-
The date/time for when the test session ended.
Declaration
Swift
public var endedAt: Date?
-
The lung function based on the result of the test.
Declaration
Swift
public var lungFunctionZone: LungFunctionZone?
-
The respiratory state based on the result of the test.
Declaration
Swift
public var respiratoryState: RespiratoryState?
-
The metric used to determine the best test candidate.
Declaration
Swift
public var referenceMetric: ReferenceMetric
-
The predicted PEF value for the patient with the demographics given when creating the test session.
Declaration
Swift
public var pefPredicted: Double?
-
The predicted FEV1 value for the patient with the demographics given when creating the test session.
Declaration
Swift
public var fev1Predicted: Double?
-
The latitude of the device at time of session start.
Declaration
Swift
public var latitude: Double?
-
The longitude of the device at time of session start.
Declaration
Swift
public var longitude: Double?
-
The altitude of the device at time of session start.
Declaration
Swift
public var altitude: Double?
-
The estimated floor of the device at time of session start.
Declaration
Swift
public var floor: Double?
-
The test chosen as the best test candidate to derive results from.
Declaration
Swift
public var bestTest: Test?
-
The tests taken during the test session.
Declaration
Swift
public var tests: [Test] = []
-
How the best test was chosen
Declaration
Swift
public var bestTestChoice: BestTestChoice?
-
Undocumented
Declaration
Swift
public class TestSession: Decodable