# mariamabumajd/afyatech architecture

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

- Interactive diagram: https://gitdiagram.com/mariamabumajd/afyatech
- Repository: https://github.com/mariamabumajd/afyatech

## Overview

Afyatech appears to be a Flutter healthcare app for finding doctors, booking and paying for appointments, checking in, and managing medical records and patient services. The likely primary journey runs from app entry and authentication through doctor discovery, booking, payment, and appointment confirmation. The tree also shows distinct tracking, records, wallet/rewards, profile, and support capabilities. Dart implementation files were not excerpted and the README is only a Flutter-project starter, so workflow links are dashed and unverified; the graph reflects the visible file organization, not inspected call paths.

Main entry points: [`lib/home_screen.dart`](https://github.com/mariamabumajd/afyatech/blob/main/lib/home_screen.dart) (Home), [`lib/booking_screen.dart`](https://github.com/mariamabumajd/afyatech/blob/main/lib/booking_screen.dart) (Appointment booking), [`lib/profile_screen.dart`](https://github.com/mariamabumajd/afyatech/blob/main/lib/profile_screen.dart) (Patient profile), [`lib/backend/auth_service.dart`](https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/auth_service.dart) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_patient_flow["Patient journey"]
  node_onboarding["Onboarding"]
  node_authentication["Authentication<br/>[auth_service.dart]"]
  node_home["Home<br/>[home_screen.dart]"]
  node_doctor_search["Doctor search"]
  node_doctor_details["Doctor details"]
  node_booking["Appointment booking"]
  node_priority_request["Priority request"]
  node_payment["Payment"]
  node_confirmation["Booking confirmation"]
end

subgraph group_care_services["Care services"]
  node_check_in["Check-in"]
  node_check_in_success["Check-in confirmation"]
  node_tracking["Appointment tracking"]
  node_medical_records["Medical records"]
  node_record_search["Record search"]
  node_medical_preferences["Medical preferences"]
end

subgraph group_account_tools["Patient account"]
  node_profile["Patient profile"]
  node_profile_edit["Personal information"]
  node_password_change["Password change"]
  node_wallet["Wallet"]
  node_rewards["Rewards"]
  node_notifications["Notifications"]
  node_support["Support chatbot"]
end

subgraph group_app_foundation["App foundation"]
  node_app_entry["App entry<br/>[main.dart]"]
  node_firestore["Firestore service"]
  node_storage["Storage service"]
  node_ai_service["Dify service<br/>[dify_service.dart]"]
  node_native_host["Desktop host<br/>[flutter_window.cpp]"]
end

node_patient(("Patient"))

node_patient -.->|"opens"| node_app_entry
node_app_entry -.->|"starts"| node_onboarding
node_onboarding -.->|"continues to"| node_authentication
node_authentication -.->|"enters"| node_home
node_home -.->|"searches"| node_doctor_search
node_doctor_search -.->|"selects"| node_doctor_details
node_doctor_details -.->|"books"| node_booking
node_booking -.->|"proceeds to"| node_payment
node_payment -.->|"confirms"| node_confirmation
node_booking -.->|"may request"| node_priority_request
node_confirmation -.->|"checks in"| node_check_in
node_check_in -.->|"confirms"| node_check_in_success
node_confirmation -.->|"tracks"| node_tracking
node_home -.->|"opens"| node_medical_records
node_medical_records -.->|"searches"| node_record_search
node_profile -.->|"manages"| node_medical_preferences
node_home -.->|"opens"| node_profile
node_profile -.->|"edits"| node_profile_edit
node_profile -.->|"changes"| node_password_change
node_home -.->|"opens"| node_wallet
node_home -.->|"opens"| node_rewards
node_home -.->|"views"| node_notifications
node_home -.->|"opens"| node_support
node_support -.->|"may use"| node_ai_service
node_authentication -.->|"may access"| node_firestore
node_booking -.->|"may access"| node_firestore
node_medical_records -.->|"may access"| node_storage
node_native_host -.->|"hosts"| node_app_entry

click node_app_entry "https://github.com/mariamabumajd/afyatech/blob/main/lib/main.dart"
click node_onboarding "https://github.com/mariamabumajd/afyatech/blob/main/lib/onboarding_screen.dart"
click node_authentication "https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/auth_service.dart"
click node_home "https://github.com/mariamabumajd/afyatech/blob/main/lib/home_screen.dart"
click node_doctor_search "https://github.com/mariamabumajd/afyatech/blob/main/lib/doctors_screen.dart"
click node_doctor_details "https://github.com/mariamabumajd/afyatech/blob/main/lib/doctor_details_screen.dart"
click node_booking "https://github.com/mariamabumajd/afyatech/blob/main/lib/booking_screen.dart"
click node_priority_request "https://github.com/mariamabumajd/afyatech/blob/main/lib/priority_request_flow.dart"
click node_payment "https://github.com/mariamabumajd/afyatech/blob/main/lib/payment_screen.dart"
click node_confirmation "https://github.com/mariamabumajd/afyatech/blob/main/lib/appointment_success_screen.dart"
click node_check_in "https://github.com/mariamabumajd/afyatech/blob/main/lib/check_in_screen.dart"
click node_check_in_success "https://github.com/mariamabumajd/afyatech/blob/main/lib/check_in_success_screen.dart"
click node_tracking "https://github.com/mariamabumajd/afyatech/blob/main/lib/tracking_screen.dart"
click node_medical_records "https://github.com/mariamabumajd/afyatech/blob/main/lib/medical_records_screen.dart"
click node_record_search "https://github.com/mariamabumajd/afyatech/blob/main/lib/search_records_screen.dart"
click node_medical_preferences "https://github.com/mariamabumajd/afyatech/blob/main/lib/medical_preferences_screen.dart"
click node_profile "https://github.com/mariamabumajd/afyatech/blob/main/lib/profile_screen.dart"
click node_profile_edit "https://github.com/mariamabumajd/afyatech/blob/main/lib/edit_personal_info_screen.dart"
click node_password_change "https://github.com/mariamabumajd/afyatech/blob/main/lib/change_password_screen.dart"
click node_wallet "https://github.com/mariamabumajd/afyatech/blob/main/lib/my_wallet_screen.dart"
click node_rewards "https://github.com/mariamabumajd/afyatech/blob/main/lib/rewards_screen.dart"
click node_notifications "https://github.com/mariamabumajd/afyatech/blob/main/lib/notification_screen.dart"
click node_support "https://github.com/mariamabumajd/afyatech/blob/main/lib/support_chatbot_screen.dart"
click node_firestore "https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/firestore_service.dart"
click node_storage "https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/storage_service.dart"
click node_ai_service "https://github.com/mariamabumajd/afyatech/blob/main/lib/dify_service.dart"
click node_native_host "https://github.com/mariamabumajd/afyatech/blob/main/windows/runner/flutter_window.cpp"

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_onboarding,node_authentication,node_home,node_doctor_search,node_doctor_details,node_booking,node_priority_request,node_payment,node_confirmation toneBlue
class node_check_in,node_check_in_success,node_tracking,node_medical_records,node_record_search,node_medical_preferences toneAmber
class node_profile,node_profile_edit,node_password_change,node_wallet,node_rewards,node_notifications,node_support toneMint
class node_app_entry,node_firestore,node_storage,node_ai_service,node_native_host toneRose
class node_patient toneIndigo
```

## Components

### Patient journey

- [Onboarding](https://github.com/mariamabumajd/afyatech/blob/main/lib/onboarding_screen.dart): `lib/onboarding_screen.dart`
- [Authentication](https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/auth_service.dart): `lib/backend/auth_service.dart`
- [Home](https://github.com/mariamabumajd/afyatech/blob/main/lib/home_screen.dart): `lib/home_screen.dart`
- [Doctor search](https://github.com/mariamabumajd/afyatech/blob/main/lib/doctors_screen.dart): `lib/doctors_screen.dart`
- [Doctor details](https://github.com/mariamabumajd/afyatech/blob/main/lib/doctor_details_screen.dart): `lib/doctor_details_screen.dart`
- [Appointment booking](https://github.com/mariamabumajd/afyatech/blob/main/lib/booking_screen.dart): `lib/booking_screen.dart`
- [Priority request](https://github.com/mariamabumajd/afyatech/blob/main/lib/priority_request_flow.dart): `lib/priority_request_flow.dart`
- [Payment](https://github.com/mariamabumajd/afyatech/blob/main/lib/payment_screen.dart): `lib/payment_screen.dart`
- [Booking confirmation](https://github.com/mariamabumajd/afyatech/blob/main/lib/appointment_success_screen.dart): `lib/appointment_success_screen.dart`

### Care services

- [Check-in](https://github.com/mariamabumajd/afyatech/blob/main/lib/check_in_screen.dart): `lib/check_in_screen.dart`
- [Check-in confirmation](https://github.com/mariamabumajd/afyatech/blob/main/lib/check_in_success_screen.dart): `lib/check_in_success_screen.dart`
- [Appointment tracking](https://github.com/mariamabumajd/afyatech/blob/main/lib/tracking_screen.dart): `lib/tracking_screen.dart`
- [Medical records](https://github.com/mariamabumajd/afyatech/blob/main/lib/medical_records_screen.dart): `lib/medical_records_screen.dart`
- [Record search](https://github.com/mariamabumajd/afyatech/blob/main/lib/search_records_screen.dart): `lib/search_records_screen.dart`
- [Medical preferences](https://github.com/mariamabumajd/afyatech/blob/main/lib/medical_preferences_screen.dart): `lib/medical_preferences_screen.dart`

### Patient account

- [Patient profile](https://github.com/mariamabumajd/afyatech/blob/main/lib/profile_screen.dart): `lib/profile_screen.dart`
- [Personal information](https://github.com/mariamabumajd/afyatech/blob/main/lib/edit_personal_info_screen.dart): `lib/edit_personal_info_screen.dart`
- [Password change](https://github.com/mariamabumajd/afyatech/blob/main/lib/change_password_screen.dart): `lib/change_password_screen.dart`
- [Wallet](https://github.com/mariamabumajd/afyatech/blob/main/lib/my_wallet_screen.dart): `lib/my_wallet_screen.dart`
- [Rewards](https://github.com/mariamabumajd/afyatech/blob/main/lib/rewards_screen.dart): `lib/rewards_screen.dart`
- [Notifications](https://github.com/mariamabumajd/afyatech/blob/main/lib/notification_screen.dart): `lib/notification_screen.dart`
- [Support chatbot](https://github.com/mariamabumajd/afyatech/blob/main/lib/support_chatbot_screen.dart): `lib/support_chatbot_screen.dart`

### App foundation

- [App entry](https://github.com/mariamabumajd/afyatech/blob/main/lib/main.dart): `lib/main.dart`
- [Firestore service](https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/firestore_service.dart): `lib/backend/firestore_service.dart`
- [Storage service](https://github.com/mariamabumajd/afyatech/blob/main/lib/backend/storage_service.dart): `lib/backend/storage_service.dart`
- [Dify service](https://github.com/mariamabumajd/afyatech/blob/main/lib/dify_service.dart): `lib/dify_service.dart`
- [Desktop host](https://github.com/mariamabumajd/afyatech/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`

### Other components

- **Patient**

## Connections

- Patient → App entry: opens
- App entry → Onboarding: starts
- Onboarding → Authentication: continues to
- Authentication → Home: enters
- Home → Doctor search: searches
- Doctor search → Doctor details: selects
- Doctor details → Appointment booking: books
- Appointment booking → Payment: proceeds to
- Payment → Booking confirmation: confirms
- Appointment booking → Priority request: may request
- Booking confirmation → Check-in: checks in
- Check-in → Check-in confirmation: confirms
- Booking confirmation → Appointment tracking: tracks
- Home → Medical records: opens
- Medical records → Record search: searches
- Patient profile → Medical preferences: manages
- Home → Patient profile: opens
- Patient profile → Personal information: edits
- Patient profile → Password change: changes
- Home → Wallet: opens
- Home → Rewards: opens
- Home → Notifications: views
- Home → Support chatbot: opens
- Support chatbot → Dify service: may use
- Authentication → Firestore service: may access
- Appointment booking → Firestore service: may access
- Medical records → Storage service: may access
- Desktop host → App entry: hosts
