Skip to main content

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

  1. From the doctor details screen or clinic list, the client provides a valid clinicId.
  2. The SDK requests clinic profile, availability, working hours, and location metadata.
  3. The backend returns a structured clinic payload.
  4. The SDK renders the date selector, working hours, and map.

If availability is empty:

  1. The SDK renders the date selector disabled.
  2. The user cannot proceed to booking.

Validations

ConditionRendering Rule
Valid authenticated sessionRender screen.
Missing or invalid sessionReturn authorization error. Do not render content.
clinicId existsRender clinic data.
clinicId invalidRender error state.
Availability entries presentEnable selectable dates.
Availability entries emptyDisable date selection.
Selected date matches enabled entryAllow continuation.
Selected date not enabledReject selection.
Working hours presentRender hours table.
Working hours missingRender hours section empty state.
Coordinates presentRender map preview.
Coordinates missingOmit map component.
Address visibility restrictedDisplay privacy notice.

Actions

TriggerResult
Screen loadExecute clinic details request.
Successful responseRender payload as received.
Date selectedUpdate local state with selected date.
Map initializedCenter map using returned coordinates.
Backend errorPreserve state. Display error.