# dc-exe/health_and_doctor_appointment architecture

> Architecture diagram of the GitHub repository dc-exe/health_and_doctor_appointment, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dc-exe/health_and_doctor_appointment
- Repository: https://github.com/dc-exe/health_and_doctor_appointment

## Overview

Medic.ly is a Flutter UI model for doctor appointments, with Firebase authentication and data storage. Its documented user-facing areas include sign-in/registration, doctor and disease browsing, booking, appointment history, and user profile/settings. The README also identifies Firestore collections for users, doctors, diseases, and appointments. Source excerpts do not cover the Dart runtime, so screen-to-screen calls and specific Firebase operations cannot be verified; those links are omitted or marked unverified.

Main entry points: [`lib/main.dart`](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/main.dart) (App entry), [`lib/screens/firebaseAuth.dart`](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/firebaseAuth.dart) (Authentication), [`lib/mainPage.dart`](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/mainPage.dart) (Main navigation), [`lib/screens/signIn.dart`](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/signIn.dart) (Sign in)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["App entry<br/>[main.dart]"]
  node_mainpage["Main navigation<br/>[mainPage.dart]"]
end

subgraph group_access["Account access"]
  node_auth["Authentication<br/>[firebaseAuth.dart]"]
  node_signin["Sign in<br/>[signIn.dart]"]
  node_register["Registration<br/>[register.dart]"]
end

subgraph group_care["Care discovery"]
  node_home["Home<br/>[homePage.dart]"]
  node_doctorlist["Doctor search<br/>[doctorsList.dart]"]
  node_explore["Explore<br/>[exploreList.dart]"]
  node_doctorprofile["Doctor profile<br/>[doctorProfile.dart]"]
  node_disease["Disease browsing<br/>[disease.dart]"]
  node_diseasedetail["Disease details<br/>[diseasedetail.dart]"]
end

subgraph group_appointments["Appointments and profile"]
  node_booking["Appointment booking<br/>[bookingScreen.dart]"]
  node_myappointments["My appointments"]
  node_profile["User profile<br/>[userProfile.dart]"]
  node_settings["User settings<br/>[userSettings.dart]"]
end

subgraph group_backend["Firebase data"]
  node_firebase{{"Firebase services"}}
  node_firestore[("Firestore collections")]
end

node_user(("App user"))

node_user -->|"uses"| node_entry
node_entry -.->|"opens"| node_mainpage
node_user -.->|"signs in"| node_signin
node_user -.->|"registers"| node_register
node_auth -.->|"authenticates"| node_firebase
node_user -.->|"browses"| node_home
node_user -.->|"searches"| node_doctorlist
node_user -.->|"explores"| node_explore
node_user -.->|"views"| node_doctorprofile
node_user -.->|"browses"| node_disease
node_user -.->|"views"| node_diseasedetail
node_user -.->|"books"| node_booking
node_user -.->|"reviews"| node_myappointments
node_user -.->|"manages"| node_profile
node_user -.->|"configures"| node_settings
node_entry -->|"uses"| node_firebase
node_firebase -->|"stores data"| node_firestore

click node_entry "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/main.dart"
click node_mainpage "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/mainPage.dart"
click node_auth "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/firebaseAuth.dart"
click node_signin "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/signIn.dart"
click node_register "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/register.dart"
click node_home "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/homePage.dart"
click node_doctorlist "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/doctorsList.dart"
click node_explore "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/exploreList.dart"
click node_doctorprofile "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/doctorProfile.dart"
click node_disease "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/disease.dart"
click node_diseasedetail "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/diseasedetail.dart"
click node_booking "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/bookingScreen.dart"
click node_myappointments "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/myAppointments.dart"
click node_profile "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/userProfile.dart"
click node_settings "https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/userSettings.dart"
click node_firestore "https://github.com/dc-exe/health_and_doctor_appointment/tree/main/lib/firestore-data"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_mainpage,node_user toneBlue
class node_auth,node_signin,node_register toneAmber
class node_home,node_doctorlist,node_explore,node_doctorprofile,node_disease,node_diseasedetail toneMint
class node_booking,node_myappointments,node_profile,node_settings toneRose
class node_firebase,node_firestore toneIndigo
```

## Components

### App shell

- [App entry](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/main.dart): `lib/main.dart`
- [Main navigation](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/mainPage.dart): `lib/mainPage.dart`

### Account access

- [Authentication](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/firebaseAuth.dart): `lib/screens/firebaseAuth.dart`
- [Sign in](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/signIn.dart): `lib/screens/signIn.dart`
- [Registration](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/register.dart): `lib/screens/register.dart`

### Care discovery

- [Home](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/homePage.dart): `lib/screens/homePage.dart`
- [Doctor search](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/doctorsList.dart): `lib/screens/doctorsList.dart`
- [Explore](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/exploreList.dart): `lib/screens/exploreList.dart`
- [Doctor profile](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/doctorProfile.dart): `lib/screens/doctorProfile.dart`
- [Disease browsing](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/disease.dart): `lib/screens/disease.dart`
- [Disease details](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/diseasedetail.dart): `lib/screens/diseasedetail.dart`

### Appointments and profile

- [Appointment booking](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/bookingScreen.dart): `lib/screens/bookingScreen.dart`
- [My appointments](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/myAppointments.dart): `lib/screens/myAppointments.dart`
- [User profile](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/userProfile.dart): `lib/screens/userProfile.dart`
- [User settings](https://github.com/dc-exe/health_and_doctor_appointment/blob/main/lib/screens/userSettings.dart): `lib/screens/userSettings.dart`

### Firebase data

- **Firebase services**
- [Firestore collections](https://github.com/dc-exe/health_and_doctor_appointment/tree/main/lib/firestore-data): `lib/firestore-data`

### Other components

- **App user**

## Connections

- App user → App entry: uses (evidence: `README.md`)
- App entry → Main navigation: opens
- App user → Sign in: signs in
- App user → Registration: registers
- Authentication → Firebase services: authenticates (evidence: `README.md`)
- App user → Home: browses
- App user → Doctor search: searches
- App user → Explore: explores
- App user → Doctor profile: views
- App user → Disease browsing: browses
- App user → Disease details: views
- App user → Appointment booking: books
- App user → My appointments: reviews
- App user → User profile: manages
- App user → User settings: configures
- App entry → Firebase services: uses (evidence: `README.md`)
- Firebase services → Firestore collections: stores data (evidence: `README.md`)
