VisitStatus
public struct VisitStatus : RawRepresentable, Codable, Equatable
A status of a Virtual Visit
A RawRepresentable
structure representing the status a visit could have
Note
AVisitStatus
in this context is simply a String
. You can exchange a VisitStatus
with a string without issue.
-
Declaration
Swift
public typealias RawValue = String
-
Declaration
Swift
public var rawValue: String
-
visit has been requested
Declaration
Swift
public static let requested: VisitStatus
-
visit is in the waiting room
Declaration
Swift
public static let waitingRoom: VisitStatus
-
visit is currently in a virtual visit
Declaration
Swift
public static let inVisit: VisitStatus
-
visit has completed
Declaration
Swift
public static let done: VisitStatus
-
visit was cancelled
Declaration
Swift
public static let cancelled: VisitStatus
-
visit was declined by the staff before seeing a provider
Declaration
Swift
public static let staffDeclined: VisitStatus
-
The patient is waiting offline for a notification before rejoining the visit
Declaration
Swift
public static let waitOffline: VisitStatus
-
A caregiver is already assigned and is ready to start a visit immediately
Declaration
Swift
public static let caregiverAssigned: VisitStatus
-
Declaration
Swift
public init(rawValue: `Self`.RawValue)
-
A helper function to tell you whether or not a visit is classified as expired.
Note
When this is true, you must start a new virtual visit and cannot resume.Declaration
Swift
public func isActive() -> Bool