Clinic Details
The Clinic Details screen shows clinic availability, address privacy status, and a map preview for a selected clinic. Patients open this screen from the doctor details flow or clinic lists.
The Clinic Details screen renders availability, working hours, and location metadata for a given clinic.
This screen includes
- Date selector: buttons for available dates (for example, Today, Sep 10, Sep 11). Disabled dates are not interactive.
- Working hours: day rows with open and close times.
- Location: privacy note that defers the exact address until confirmation.
- Map preview: embedded map with zoom controls and the clinic area marker.
- Navigation: back button and settings icon in the header.
Workflow
- From the doctor details screen or clinic list, the client provides a valid
clinicId. - The SDK requests clinic profile, availability, working hours, and location metadata.
- The backend returns a structured clinic payload.
- The SDK renders the date selector, working hours, and map.
If availability is empty:
- The SDK renders the date selector disabled.
- The user cannot proceed to booking.
Validations
| Condition | Rendering Rule |
|---|---|
| Valid authenticated session | Render screen. |
| Missing or invalid session | Return authorization error. Do not render content. |
clinicId exists | Render clinic data. |
clinicId invalid | Render error state. |
| Availability entries present | Enable selectable dates. |
| Availability entries empty | Disable date selection. |
| Selected date matches enabled entry | Allow continuation. |
| Selected date not enabled | Reject selection. |
| Working hours present | Render hours table. |
| Working hours missing | Render hours section empty state. |
| Coordinates present | Render map preview. |
| Coordinates missing | Omit map component. |
| Address visibility restricted | Display privacy notice. |
Actions
| Trigger | Result |
|---|---|
| Screen load | Execute clinic details request. |
| Successful response | Render payload as received. |
| Date selected | Update local state with selected date. |
| Map initialized | Center map using returned coordinates. |
| Backend error | Preserve state. Display error. |
