AvailabilityService
public protocol AvailabilityService
Base Protocol to create, setup, cancel Virtual Visits
-
Search for available providers
- departmentIds: An array of department Identifiers to filter availability on
- options: An optional list of
ProviderAvailabilityOptions
to filter on - success: A closure called with a
ProviderAvailabilityResults
object - failure: A closure called if any FailedReason errors are returned
Declaration
Swift
func getProviderAvailability(departmentIds: [String], options: ProviderAvailabilityOptions?, success: @escaping (ProviderAvailabilityResult) -> Void, failure: @escaping (FailedReason) -> Void)
-
getProviderAvailability(departmentIds:
Asynchronousoptions: ) Search for available providers
- departmentIds: An array of department Identifiers to filter availability on
- options: An optional list of
ProviderAvailabilityOptions
to filter on
Throws
FailedReason
Declaration
Swift
func getProviderAvailability(departmentIds: [String], options: ProviderAvailabilityOptions?) async throws -> ProviderAvailabilityResult
Return Value
ProviderAvailabilityResults
-
Search for available providers
- latitude: Latitude of the location you would like to search
- longitude: Longitude of the location you would like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An optional list of
ProviderAvailabilityOptions
to filter on - success: A closure called with a
ProviderAvailabilityResults
object - failure: A closure called if any FailedReason errors are returned
Declaration
Swift
func getProviderAvailability(latitude: Double, longitude: Double, radius: Int?, options: ProviderAvailabilityOptions?, success: @escaping (ProviderAvailabilityResult) -> Void, failure: @escaping (FailedReason) -> Void)
-
Search for available providers
- latitude: Latitude of the location you would like to search
- longitude: Longitude of the location you would like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An optional list of
ProviderAvailabilityOptions
to filter on
Throws
FailedReason
Declaration
Swift
func getProviderAvailability(latitude: Double, longitude: Double, radius: Int?, options: ProviderAvailabilityOptions?) async throws -> ProviderAvailabilityResult
Return Value
ProviderAvailabilityResults
-
Search for available providers
- zipCode: 5 digit zip code of the location you’d like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An optional list of
ProviderAvailabilityOptions
to filter on - success: A closure called with a
ProviderAvailabilityResults
object - failure: A closure called if any FailedReason errors are returned
Declaration
Swift
func getProviderAvailability(zipCode: String, radius: Int?, options: ProviderAvailabilityOptions?, success: @escaping (ProviderAvailabilityResult) -> Void, failure: @escaping (FailedReason) -> Void)
-
getProviderAvailability(zipCode:
Asynchronousradius: options: ) Search for available providers
- zipCode: 5 digit zip code of the location you’d like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An optional list of
ProviderAvailabilityOptions
to filter on
Throws
FailedReason
Declaration
Swift
func getProviderAvailability(zipCode: String, radius: Int?, options: ProviderAvailabilityOptions?) async throws -> ProviderAvailabilityResult
Return Value
ProviderAvailabilityResults
-
getProviderAvailabilitySlots(departmentIds:
Asynchronousoptions: ) Search for provider aggregated time slots
- departmentIds: An array of department Identifiers to filter availability slots on
- options: An list of
ProviderAvailabilityOptions
to filter on. Note:ProviderAvailabilityOptions.visitTypeNames
is required.
Throws
FailedReason
Declaration
Swift
func getProviderAvailabilitySlots(departmentIds: [String], options: ProviderAvailabilityOptions) async throws -> ProviderSlotAvailability
Return Value
-
Search for provider aggregated time slots
- departmentIds: An array of department Identifiers to filter availability slots on
- options: An list of
ProviderAvailabilityOptions
to filter on. Note:ProviderAvailabilityOptions.visitTypeNames
is required. - success: A closure called with a
ProviderSlotAvailability
object - failure: A closure called if any FailedReason errors are returned
Declaration
Swift
func getProviderAvailabilitySlots(departmentIds: [String], options: ProviderAvailabilityOptions, success: @escaping (ProviderSlotAvailability) -> Void, failure: @escaping (FailedReason) -> Void)
-
Search for provider aggregated time slots
- zipCode: 5 digit zip code of the location you’d like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An list of
ProviderAvailabilityOptions
to filter on. Note:ProviderAvailabilityOptions.visitTypeNames
is required.
Throws
FailedReason
Declaration
Swift
func getProviderAvailabilitySlots(zipCode: String, radius: Int?, options: ProviderAvailabilityOptions) async throws -> ProviderSlotAvailability
Return Value
-
Search for provider aggregated time slots
- zipCode: 5 digit zip code of the location you’d like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An list of
ProviderAvailabilityOptions
to filter on. Note:ProviderAvailabilityOptions.visitTypeNames
is required. - success: A closure called with a
ProviderSlotAvailability
object - failure: A closure called if any FailedReason errors are returned
Declaration
Swift
func getProviderAvailabilitySlots(zipCode: String, radius: Int?, options: ProviderAvailabilityOptions, success: @escaping (ProviderSlotAvailability) -> Void, failure: @escaping (FailedReason) -> Void)
-
Search for provider aggregated time slots
- latitude: Latitude of the location you would like to search
- longitude: Longitude of the location you would like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An list of
ProviderAvailabilityOptions
to filter on. Note:ProviderAvailabilityOptions.visitTypeNames
is required.
Throws
FailedReason
Declaration
Swift
func getProviderAvailabilitySlots(latitude: Double, longitude: Double, radius: Int?, options: ProviderAvailabilityOptions) async throws -> ProviderSlotAvailability
Return Value
-
Search for provider aggregated time slots
- latitude: Latitude of the location you would like to search
- longitude: Longitude of the location you would like to search
- radius: An optional radius around the location you would like to search in miles. Minimum is 1. Maximum is 100
- options: An list of
ProviderAvailabilityOptions
to filter on. Note:ProviderAvailabilityOptions.visitTypeNames
is required. - success: A closure called with a
ProviderSlotAvailability
object - failure: A closure called if any FailedReason errors are returned
Declaration
Swift
func getProviderAvailabilitySlots(latitude: Double, longitude: Double, radius: Int?, options: ProviderAvailabilityOptions, success: @escaping (ProviderSlotAvailability) -> Void, failure: @escaping (FailedReason) -> Void)