How microwavetuesday/idsc-clinic-system-clean works
IDSC Clinic System is a Django REST API for Clinic-owned health records, consultations, health-status projections, dispensations, reports, and Clinic accounts. The principal workflow is an authenticated HTTP request routed to a Clinic view, which delegates domain work to ClinicService and the in-memory Clinic repository; student validation and medicine stock actions cross Registrar and Inventory boundaries. README documentation establishes those integration responsibilities and the read-only Faculty and Student Portal projections. The frontend is explicitly a React/Vite starter, not the Clinic product UI. Some view-to-service and service-to-repository calls are supported by the source index and excerpts; unsampled route details are not inferred.
Main entry points: clinic/views.py Clinic endpoints · clinic.py ClinicService · authentication/views.py Session and staff endpoints · registrar.py Registrar boundary
Components 20
Clinic API
- Clinic endpoints
backend/clinic/views.py - Health check
backend/clinic/views.py - Clinic dashboard
backend/clinic/views.py - Clinic reports
backend/clinic/views.py
Clinic Domain
- ClinicService
backend/clinic/services/clinic.py - Mock clinic repository
backend/clinic/data/clinic.py - Health records
backend/clinic/services/clinic.py - Consultations
backend/clinic/services/clinic.py - Health status
backend/clinic/services/clinic.py - Medicine dispensations
backend/clinic/services/clinic.py
Integrations
- Registrar boundary
backend/clinic/services/registrar.py - Registrar
- Inventory boundary
backend/clinic/services/inventory.py - Inventory
Authentication
- Session and staff endpoints
backend/authentication/views.py - Auth serializers
backend/authentication/serializers.py - Clinic permissions
backend/authentication/permissions.py
Other components
- API client
- Faculty
- Student Portal
Connections 22
- API client → Clinic endpoints: requests
README.md - API client → Health check: checks health
README.md - Clinic endpoints → ClinicService: delegates domain work
backend/clinic/views.py - Clinic endpoints → Registrar boundary: lists students
backend/clinic/views.py - Clinic endpoints → Inventory boundary: lists medicines
backend/clinic/views.py - Clinic endpoints → Clinic permissions: uses permissions
backend/clinic/views.py - ClinicService → Mock clinic repository: reads and writes
backend/clinic/services/clinic.py - ClinicService → Registrar boundary: validates students
backend/clinic/services/clinic.py - ClinicService → Inventory boundary: coordinates stock
backend/clinic/services/clinic.py - Registrar boundary → Registrar: mock boundary
- Inventory boundary → Inventory: mock boundary
- Clinic endpoints → Health records: serves record operations
README.md - Clinic endpoints → Consultations: serves consultation operations
README.md - Clinic endpoints → Health status: serves status projections
README.md - Clinic endpoints → Medicine dispensations: serves dispensation operations
README.md - Clinic endpoints → Clinic dashboard: serves dashboard
backend/clinic/views.py - Clinic endpoints → Clinic reports: serves reports
README.md - Faculty → Health status: reads projections
README.md - Student Portal → Health status: reads projections
README.md - API client → Session and staff endpoints: authenticates
README.md - Session and staff endpoints → Auth serializers: serializes requests
backend/authentication/views.py - Session and staff endpoints → Clinic permissions: uses access rules
backend/authentication/views.py