Clinic Only
Use Clinic Only when the specified address supports clinic appointments but does not support home visits.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Availability message | States that only clinic appointments are available |
| 2 | OK action | Continues with clinic appointments |
| 3 | Close action | Dismisses the popup |
Workflow
- Validate the specified address.
- Detect that only clinic appointments are available.
- Call
PUT /api/v3/appointments/book/error/clinic-only. - Display the Clinic Only popup.
- Select OK to continue with clinic appointments.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| Address supports clinic appointments only | Display the popup | Page object |
| Home visits are available | Continue the current flow | 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 | Continue with clinic appointments | Navigation event |
| Close selected | Dismiss the popup | Close event |
Endpoint Resources
Clinic Only
PUT
v3/appointments/book/error/clinic-only
Returns a popup when the specified address supports clinic appointments only.