# makkesamine/novamedica architecture

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

- Interactive diagram: https://gitdiagram.com/makkesamine/novamedica
- Repository: https://github.com/makkesamine/novamedica

## Overview

Doxaria is a medical-support product with a React frontend for prescription management, prescription digitization, health summaries, and AI-assisted recommendations and consultation. Users enter through the public site and account screens, then use authenticated feature pages; the README describes a FastAPI backend and MongoDB-backed records. The supplied excerpts do not show frontend request wiring or backend source, so those service connections are shown only as unverified. The graph preserves documented AI capabilities without implying their implementation paths are present in this tree.

Main entry points: [`Doxaria-Project-deployment/frontend/app/(authenticated)/dashboard/page.tsx`](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/dashboard/page.tsx) (Health dashboard), [`Doxaria-Project-deployment/frontend/app/(authenticated)/prescriptions/page.tsx`](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/prescriptions/page.tsx) (Prescriptions), [`Doxaria-Project-deployment/frontend/app/(authenticated)/medications/page.tsx`](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/medications/page.tsx) (Medication catalog), [`Doxaria-Project-deployment/frontend/app/(authenticated)/scan/page.tsx`](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/scan/page.tsx) (Prescription scan)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and access"]
  node_landing["Product site<br/>[page.tsx]"]
  node_login["Sign in<br/>[page.tsx]"]
  node_signup["Account creation<br/>[page.tsx]"]
  node_workspace["Authenticated shell<br/>[layout.tsx]"]
end

subgraph group_care["Patient workspace"]
  node_dashboard["Health dashboard<br/>[page.tsx]"]
  node_prescriptions["Prescriptions<br/>[page.tsx]"]
  node_medications["Medication catalog<br/>[page.tsx]"]
  node_profile["Health profile<br/>[page.tsx]"]
  node_pharmacies["Pharmacies<br/>[page.tsx]"]
  node_contact["Contact<br/>[page.tsx]"]
end

subgraph group_ai["AI assistance"]
  node_scan["Prescription scan<br/>[page.tsx]"]
  node_analysis["AI analysis<br/>[page.tsx]"]
  node_recommendations["Drug alternatives<br/>[page.tsx]"]
  node_chat["Medical chatbot<br/>[page.tsx]"]
end

subgraph group_services["Backend services"]
  node_backend["FastAPI backend"]
  node_models["AI models"]
  node_database[("MongoDB")]
end

node_patient(("Patient"))

node_patient -->|"visits"| node_landing
node_patient -->|"signs in"| node_login
node_patient -->|"creates account"| node_signup
node_patient -->|"views health"| node_dashboard
node_patient -->|"manages"| node_prescriptions
node_patient -->|"manages"| node_medications
node_patient -.->|"maintains"| node_profile
node_patient -.->|"browses"| node_pharmacies
node_patient -.->|"contacts"| node_contact
node_patient -->|"submits prescription"| node_scan
node_patient -->|"reviews extraction"| node_analysis
node_patient -->|"requests alternatives"| node_recommendations
node_patient -.->|"consults"| node_chat
node_prescriptions -.->|"manages records"| node_backend
node_medications -.->|"manages records"| node_backend
node_dashboard -.->|"loads summary"| node_backend
node_scan -.->|"uploads image"| node_backend
node_analysis -.->|"requests analysis"| node_backend
node_backend -.->|"runs AI tasks"| node_models
node_recommendations -.->|"requests alternatives"| node_backend
node_chat -.->|"sends consultation"| node_backend
node_backend -.->|"stores records"| node_database

click node_landing "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/page.tsx"
click node_login "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/login/page.tsx"
click node_signup "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/signup/page.tsx"
click node_workspace "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/layout.tsx"
click node_dashboard "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/dashboard/page.tsx"
click node_prescriptions "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/prescriptions/page.tsx"
click node_medications "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/medications/page.tsx"
click node_profile "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/profile/page.tsx"
click node_pharmacies "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/pharmacies/page.tsx"
click node_contact "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/contact/page.tsx"
click node_scan "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/scan/page.tsx"
click node_analysis "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/ai-analysis/page.tsx"
click node_recommendations "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/recommendations/page.tsx"
click node_chat "https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/chat/page.tsx"

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_landing,node_login,node_signup,node_workspace toneBlue
class node_dashboard,node_prescriptions,node_medications,node_profile,node_pharmacies,node_contact toneAmber
class node_scan,node_analysis,node_recommendations,node_chat toneMint
class node_backend,node_models,node_database toneRose
class node_patient toneIndigo
```

## Components

### Entry and access

- [Product site](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/page.tsx): `Doxaria-Project-deployment/frontend/app/page.tsx`
- [Sign in](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/login/page.tsx): `Doxaria-Project-deployment/frontend/app/login/page.tsx`
- [Account creation](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/signup/page.tsx): `Doxaria-Project-deployment/frontend/app/signup/page.tsx`
- [Authenticated shell](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/layout.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/layout.tsx`

### Patient workspace

- [Health dashboard](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/dashboard/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/dashboard/page.tsx`
- [Prescriptions](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/prescriptions/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/prescriptions/page.tsx`
- [Medication catalog](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/medications/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/medications/page.tsx`
- [Health profile](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/profile/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/profile/page.tsx`
- [Pharmacies](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/pharmacies/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/pharmacies/page.tsx`
- [Contact](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/contact/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/contact/page.tsx`

### AI assistance

- [Prescription scan](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/scan/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/scan/page.tsx`
- [AI analysis](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/ai-analysis/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/ai-analysis/page.tsx`
- [Drug alternatives](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/recommendations/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/recommendations/page.tsx`
- [Medical chatbot](https://github.com/makkesamine/novamedica/blob/main/Doxaria-Project-deployment/frontend/app/(authenticated)/chat/page.tsx): `Doxaria-Project-deployment/frontend/app/(authenticated)/chat/page.tsx`

### Backend services

- **FastAPI backend**
- **AI models**
- **MongoDB**

### Other components

- **Patient**

## Connections

- Patient → Product site: visits
- Patient → Sign in: signs in
- Patient → Account creation: creates account
- Patient → Health dashboard: views health
- Patient → Prescriptions: manages
- Patient → Medication catalog: manages
- Patient → Health profile: maintains
- Patient → Pharmacies: browses
- Patient → Contact: contacts
- Patient → Prescription scan: submits prescription
- Patient → AI analysis: reviews extraction (evidence: `Doxaria-Project-deployment/frontend/app/(authenticated)/ai-analysis/page.tsx`)
- Patient → Drug alternatives: requests alternatives
- Patient → Medical chatbot: consults
- Prescriptions → FastAPI backend: manages records
- Medication catalog → FastAPI backend: manages records
- Health dashboard → FastAPI backend: loads summary
- Prescription scan → FastAPI backend: uploads image
- AI analysis → FastAPI backend: requests analysis
- FastAPI backend → AI models: runs AI tasks
- Drug alternatives → FastAPI backend: requests alternatives
- Medical chatbot → FastAPI backend: sends consultation
- FastAPI backend → MongoDB: stores records
