How ishaq-bm/patient-management-system works
Main Components
A. Frontend (Angular Application):
• Authentication Module
• Administrative Dashboard
• Doctor Dashboard
• Pharmacy Dashboard
• Patient Management Module
• Consultation Module
• Base Module (Shared Components)
B. Backend (Django Application):
• Authentication Service
• Medical Patient Management
• Care & Examinations Management
• DPI (Patient Digital Record) Management
Client Layer (Top)
↓
API Layer (Middle)
↓
Data Layer (Bottom)
Component Relationships to Highlight
Frontend Architecture:
• Clean architecture implementation with:
• Presentation Layer (Components)
• Domain Layer (Use Cases)
• Data Layer (Repositories)
• Entity Layer (Models)
Backend Architecture:
• Django Apps Structure:
• Authentication
• Med_Patient
• Soins_Exams_Patient
• Core Application
Specific Elements
a) Frontend Section:
• Module structure (Auth, Admin, Doctor, Pharmacy)
• Clean architecture layers
• Routing flow
• Shared services and components
b) Backend Section:
• Django apps and their relationships
• Model relationships
• API endpoints
• Authentication flow
c) Database Section:
• Main entities (User, Patient, Consultation, Medication)
• Relationships between entities
• Data flow directions
Additional Details
Specific notations for:
• REST API endpoints
• Authentication tokens flow
• User role permissions
• Data validation points
• Error handling paths
Implementation Notes
Use standardized symbols:
• Rectangles: Components/Modules
• Diamonds: Decision Points
• Clouds: External Services
Architectural Patterns to Highlight
• Clean Architecture in Frontend
• MVT Pattern in Django Backend
• Repository Pattern
• Use Case Pattern
• Service Layer Pattern