Far Initial Search
Use Far Initial Search when the patient selects an address that differs from the address used for the initial search.
The Air Doctor app requires a new search for the updated address.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Address message | Explains why a new search is required |
| 2 | OK action | Starts a new search |
| 3 | Close action | Dismisses the popup |
Workflow
- Compare the selected address with the initial search address.
- Detect an address change.
- Call
PUT /api/v3/appointments/book/error/asap-unavailable-in-location. - Display the Far Initial Search popup.
- Select OK.
- Start a new search for the updated address.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| Selected address differs from the initial address | Display the popup | Page object |
| Selected address matches the initial address | Continue the current search | No error page |
Request returns 405 | Display an application error | Error response |
| Session is invalid | Reject the request | Authentication error |
Actions
| Scenario | App behavior | SDK output |
|---|---|---|
| OK selected | Start a new search for the updated address | Navigation event |
| Close selected | Dismiss the popup | Close event |
Endpoint Resources
Far Initial Search
PUT
v3/appointments/book/error/asap-unavailable-in-location
Returns a popup when the selected address differs from the initial search address and a new search is required.