# anmol8070/mulkmed architecture

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

- Interactive diagram: https://gitdiagram.com/anmol8070/mulkmed
- Repository: https://github.com/anmol8070/mulkmed

## Overview

This is a Laravel healthcare platform with patient and tourist APIs, doctor and appointment management, an admin portal, and health-service integrations. A central user journey is finding a doctor and managing an appointment, with separate tourist-appointment, AI health analysis, and social-content capabilities. The graph also retains documented reels, chatbot, reminders, and payment capabilities. Source excerpts establish several model and service relationships; route dispatch and unsampled subsystems are not assumed, so uncertain entry links are dashed.

Main entry points: [`app/Models/Appointments.php`](https://github.com/anmol8070/mulkmed/blob/main/app/Models/Appointments.php) (Appointments), [`app/Http/Controllers/v1/UsersController.php`](https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/v1/UsersController.php) (Patient API), [`app/Services/SenoclockAiService.php`](https://github.com/anmol8070/mulkmed/blob/main/app/Services/SenoclockAiService.php) (Health AI Service), [`app/Models/Doctors.php`](https://github.com/anmol8070/mulkmed/blob/main/app/Models/Doctors.php) (Doctor Records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Admin"]
  node_api["API Routing<br/>[api.php]"]
  node_web["Web Routing<br/>[web.php]"]
  node_userapi["Patient API"]
  node_doctoradmin["Doctor Management"]
  node_smo["Care Finder Admin<br/>[SMOController.php]"]
end

subgraph group_care["Care and Appointments"]
  node_doctorrecords[("Doctor Records<br/>[Doctors.php]")]
  node_appointments[("Appointments<br/>[Appointments.php]")]
  node_users[("User Records<br/>[Users.php]")]
  node_addedpatients[("Patient Profiles<br/>[AddedPatients.php]")]
  node_doctorlogin[("Doctor Identity<br/>[Doctor.php]")]
end

subgraph group_travel["Tourist Care"]
  node_touristapi["Tourist API"]
  node_touristrecords[("Tourist Appointments")]
end

subgraph group_health["Health Intelligence"]
  node_senoclock["Health AI Service"]
  node_biomarkers["Biomarker Analysis"]
  node_senoclockapi["Senoclock Service"]
  node_airesult[("Vital Records<br/>[AI_Vital.php]")]
end

subgraph group_platform["Platform Features"]
  node_reels["Reels<br/>[ReelController.php]"]
  node_reminders[("Appointment Reminders")]
  node_shared["Shared Functions<br/>[GlobalFunction.php]"]
end

node_patient(("Patient"))
node_admin(("Admin User"))
node_externalhealth{{"Health API"}}
node_payments{{"Payment Gateway"}}

node_patient -.->|"requests"| node_api
node_admin -.->|"uses portal"| node_web
node_api -.->|"routes to"| node_userapi
node_web -.->|"routes to"| node_doctoradmin
node_web -.->|"routes to"| node_smo
node_userapi -->|"queries"| node_appointments
node_userapi -->|"queries"| node_doctorrecords
node_userapi -->|"queries"| node_users
node_userapi -->|"queries"| node_addedpatients
node_doctoradmin -->|"queries"| node_appointments
node_doctoradmin -->|"queries"| node_doctorrecords
node_doctorrecords -->|"loads identity"| node_doctorlogin
node_appointments -->|"relates user"| node_users
node_appointments -->|"relates doctor"| node_doctorrecords
node_appointments -->|"relates patient"| node_addedpatients
node_users -->|"lists patients"| node_addedpatients
node_touristapi -->|"queries"| node_touristrecords
node_senoclock -->|"sends requests"| node_externalhealth
node_senoclock -->|"uses analyzer"| node_biomarkers
node_senoclock -->|"uses service"| node_senoclockapi
node_senoclock -->|"stores results"| node_airesult
node_shared -->|"uses reminders"| node_reminders
node_patient -.->|"views content"| node_reels
node_patient -.->|"uses health bot"| node_senoclock
node_appointments -.->|"notifies"| node_reminders
node_patient -.->|"pays"| node_payments

click node_api "https://github.com/anmol8070/mulkmed/blob/main/routes/v1/api.php"
click node_web "https://github.com/anmol8070/mulkmed/blob/main/routes/web.php"
click node_userapi "https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/v1/UsersController.php"
click node_doctoradmin "https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/DoctorController.php"
click node_smo "https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/SMOController.php"
click node_doctorrecords "https://github.com/anmol8070/mulkmed/blob/main/app/Models/Doctors.php"
click node_appointments "https://github.com/anmol8070/mulkmed/blob/main/app/Models/Appointments.php"
click node_users "https://github.com/anmol8070/mulkmed/blob/main/app/Models/Users.php"
click node_addedpatients "https://github.com/anmol8070/mulkmed/blob/main/app/Models/AddedPatients.php"
click node_doctorlogin "https://github.com/anmol8070/mulkmed/blob/main/app/Models/Doctor.php"
click node_touristapi "https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/v2/TouristController.php"
click node_touristrecords "https://github.com/anmol8070/mulkmed/blob/main/app/Models/TouristAppointments.php"
click node_senoclock "https://github.com/anmol8070/mulkmed/blob/main/app/Services/SenoclockAiService.php"
click node_biomarkers "https://github.com/anmol8070/mulkmed/blob/main/app/Services/LabReportBiomarkerAnalyzerService.php"
click node_senoclockapi "https://github.com/anmol8070/mulkmed/blob/main/app/Services/SenoclockService.php"
click node_airesult "https://github.com/anmol8070/mulkmed/blob/main/app/Models/AI_Vital.php"
click node_reels "https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/ReelController.php"
click node_reminders "https://github.com/anmol8070/mulkmed/blob/main/app/Models/AppointmentReminders.php"
click node_shared "https://github.com/anmol8070/mulkmed/blob/main/app/Models/GlobalFunction.php"

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_api,node_web,node_userapi,node_doctoradmin,node_smo,node_admin toneBlue
class node_doctorrecords,node_appointments,node_users,node_addedpatients,node_doctorlogin toneAmber
class node_touristapi,node_touristrecords,node_externalhealth toneMint
class node_senoclock,node_biomarkers,node_senoclockapi,node_airesult toneRose
class node_reels,node_reminders,node_shared,node_patient,node_payments toneIndigo
```

## Components

### Access and Admin

- [API Routing](https://github.com/anmol8070/mulkmed/blob/main/routes/v1/api.php): `routes/v1/api.php`
- [Web Routing](https://github.com/anmol8070/mulkmed/blob/main/routes/web.php): `routes/web.php`
- [Patient API](https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/v1/UsersController.php): `app/Http/Controllers/v1/UsersController.php`
- [Doctor Management](https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/DoctorController.php): `app/Http/Controllers/DoctorController.php`
- [Care Finder Admin](https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/SMOController.php): `app/Http/Controllers/SMOController.php`

### Care and Appointments

- [Doctor Records](https://github.com/anmol8070/mulkmed/blob/main/app/Models/Doctors.php): `app/Models/Doctors.php`
- [Appointments](https://github.com/anmol8070/mulkmed/blob/main/app/Models/Appointments.php): `app/Models/Appointments.php`
- [User Records](https://github.com/anmol8070/mulkmed/blob/main/app/Models/Users.php): `app/Models/Users.php`
- [Patient Profiles](https://github.com/anmol8070/mulkmed/blob/main/app/Models/AddedPatients.php): `app/Models/AddedPatients.php`
- [Doctor Identity](https://github.com/anmol8070/mulkmed/blob/main/app/Models/Doctor.php): `app/Models/Doctor.php`

### Tourist Care

- [Tourist API](https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/v2/TouristController.php): `app/Http/Controllers/v2/TouristController.php`
- [Tourist Appointments](https://github.com/anmol8070/mulkmed/blob/main/app/Models/TouristAppointments.php): `app/Models/TouristAppointments.php`

### Health Intelligence

- [Health AI Service](https://github.com/anmol8070/mulkmed/blob/main/app/Services/SenoclockAiService.php): `app/Services/SenoclockAiService.php`
- [Biomarker Analysis](https://github.com/anmol8070/mulkmed/blob/main/app/Services/LabReportBiomarkerAnalyzerService.php): `app/Services/LabReportBiomarkerAnalyzerService.php`
- [Senoclock Service](https://github.com/anmol8070/mulkmed/blob/main/app/Services/SenoclockService.php): `app/Services/SenoclockService.php`
- [Vital Records](https://github.com/anmol8070/mulkmed/blob/main/app/Models/AI_Vital.php): `app/Models/AI_Vital.php`

### Platform Features

- [Reels](https://github.com/anmol8070/mulkmed/blob/main/app/Http/Controllers/ReelController.php): `app/Http/Controllers/ReelController.php`
- [Appointment Reminders](https://github.com/anmol8070/mulkmed/blob/main/app/Models/AppointmentReminders.php): `app/Models/AppointmentReminders.php`
- [Shared Functions](https://github.com/anmol8070/mulkmed/blob/main/app/Models/GlobalFunction.php): `app/Models/GlobalFunction.php`

### Other components

- **Patient**
- **Admin User**
- **Health API**
- **Payment Gateway**

## Connections

- Patient → API Routing: requests
- Admin User → Web Routing: uses portal
- API Routing → Patient API: routes to
- Web Routing → Doctor Management: routes to
- Web Routing → Care Finder Admin: routes to
- Patient API → Appointments: queries (evidence: `app/Http/Controllers/v1/UsersController.php`)
- Patient API → Doctor Records: queries (evidence: `app/Http/Controllers/v1/UsersController.php`)
- Patient API → User Records: queries (evidence: `app/Http/Controllers/v1/UsersController.php`)
- Patient API → Patient Profiles: queries (evidence: `app/Http/Controllers/v1/UsersController.php`)
- Doctor Management → Appointments: queries (evidence: `app/Http/Controllers/DoctorController.php`)
- Doctor Management → Doctor Records: queries (evidence: `app/Http/Controllers/DoctorController.php`)
- Doctor Records → Doctor Identity: loads identity (evidence: `app/Models/Doctors.php`)
- Appointments → User Records: relates user (evidence: `app/Models/Appointments.php`)
- Appointments → Doctor Records: relates doctor (evidence: `app/Models/Appointments.php`)
- Appointments → Patient Profiles: relates patient (evidence: `app/Models/Appointments.php`)
- User Records → Patient Profiles: lists patients (evidence: `app/Models/Users.php`)
- Tourist API → Tourist Appointments: queries (evidence: `app/Http/Controllers/v2/TouristController.php`)
- Health AI Service → Health API: sends requests (evidence: `app/Services/SenoclockAiService.php`)
- Health AI Service → Biomarker Analysis: uses analyzer (evidence: `app/Services/SenoclockAiService.php`)
- Health AI Service → Senoclock Service: uses service (evidence: `app/Services/SenoclockAiService.php`)
- Health AI Service → Vital Records: stores results (evidence: `app/Services/SenoclockAiService.php`)
- Shared Functions → Appointment Reminders: uses reminders (evidence: `app/Models/GlobalFunction.php`)
- Patient → Reels: views content
- Patient → Health AI Service: uses health bot
- Appointments → Appointment Reminders: notifies
- Patient → Payment Gateway: pays
