ASAP Unavailable
Use ASAP Unavailable when the first available doctor request cannot continue. The app returns the patient to the Home screen to start a new search.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Error message | States that the request failed |
| 2 | Recovery instruction | Directs the patient to start a new search |
| 3 | Close actions | Dismiss the popup |
Workflow
- Request the first available doctor.
- Detect that the request cannot continue.
- Call
PUT /api/v3/appointments/book/error/asap-no-available-doctors. - Display the ASAP Unavailable popup.
- Select OK or the close action.
- Return to the Home screen.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| ASAP request cannot continue | Display the popup | Page object |
Request returns 200 | Render the returned page | Page object |
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 | Return to the Home screen | Navigation event |
| Close selected | Return to the Home screen | Navigation event |
Endpoint Resources
PUT ASAP Unavailable
ASAP Unavailable
PUT
v3/appointments/book/error/asap-no-available-doctors
Returns a popup when the first available doctor request cannot continue.