Clinic Details
The Clinic Details screen displays clinic availability, working hours, and location metadata for a given clinic.
Patients open this screen from the doctor details flow or clinic lists.
This screen includes:
- Date selector — Available booking dates. Disabled dates are not interactive.
- Working hours — Daily open and close times.
- Location — Privacy notice when the exact address is restricted.
- Map preview — Clinic area with zoom controls.
- Navigation — Back button and header controls.
Workflow
- Provide a valid
clinicId. - Request clinic details.
- The platform returns availability, working hours, and location data.
- Render the clinic details screen.
Validations
| Condition | App behavior | SDK output |
|---|---|---|
| Valid authenticated session | Render screen | Successful response |
| Missing or invalid session | Block rendering | Authorization error |
Valid clinicId | Display clinic data | Response with clinic details |
Invalid clinicId | Display error state | Error response |
| Availability present | Enable date selection | Availability entries returned |
| No availability | Disable date selection | Empty availability set |
| Selected date valid | Allow continuation | Valid selection |
| Selected date invalid | Block selection | Validation error |
| Working hours present | Render hours | Working hours returned |
| Working hours missing | Render empty state | No working hours in response |
| Coordinates present | Render map | Location coordinates returned |
| Coordinates missing | Omit map | No coordinates in response |
| Address restricted | Display privacy notice | Visibility flag returned |
Actions
| Condition | App behavior | SDK output |
|---|---|---|
| Screen loads | Request clinic details | Request sent with clinicId |
| Response succeeds | Render clinic data | Response payload |
| Date selected | Update selected date | Local state update |
| Map loads | Center map on location | Coordinates applied |
| Request fails | Display error state | Error response |
