How mamun417/prescription-management-system works
This CakePHP application is a prescription-management system for doctors. Its documented workflow centers on creating prescriptions and scheduling appointments, with patient history as a related capability. The sampled code shows prescription viewing and editing, patient lookup and persistence, diagnosis-template management, and shared authentication. Several listed admin controllers indicate additional product areas, but their behavior and wiring were not sampled; those branches are represented without inferred call relationships.
Main entry points: PrescriptionsController.php Prescriptions · UsersController.php Patient accounts · AppController.php Shared controller · DiagnosisController.php Diagnosis templates
Components 19
Clinical workflow
- Prescriptions
src/Controller/Admin/PrescriptionsController.php - Prescription record
src/Model/Entity/Prescription.php - Appointments
src/Controller/Admin/AppointmentsController.php - Dashboard
src/Controller/Admin/DashboardController.php - Prescription persistence
src/Model/Table/PrescriptionsTable.php
Patient management
- Patient accounts
src/Controller/Admin/UsersController.php - User record
src/Model/Entity/User.php - User persistence
src/Model/Table/UsersTable.php
Clinical catalog
- Diagnosis templates
src/Controller/Admin/DiagnosisController.php - Diagnosis lists
src/Controller/Admin/DiagnosisListsController.php - Medicines
src/Controller/Admin/MedicinesController.php - Medicine record
src/Model/Entity/Medicine.php - Tests catalog
src/Controller/Admin/TestsController.php
Application platform
- Shared controller
src/Controller/AppController.php - HTTP application
src/Application.php - PDF generation
src/Controller/Component/PdfHandlerComponent.php - Settings
src/Controller/Admin/SettingsController.php - Library
src/Controller/Admin/LibraryController.php
Other components
- Doctor
Connections 16
- Doctor → Prescriptions: creates prescriptions
README.md - Doctor → Appointments: schedules appointments
README.md - Doctor → Patient accounts: tracks patient history
README.md - Prescriptions → Prescription record: loads and edits
src/Controller/Admin/PrescriptionsController.php - Prescriptions → Prescription persistence: queries and saves
- Prescriptions → Patient accounts: looks up patients
src/Controller/Admin/PrescriptionsController.php - Prescriptions → Shared controller: inherits from
src/Controller/Admin/PrescriptionsController.php - Patient accounts → User record: loads and updates
src/Controller/Admin/UsersController.php - Patient accounts → User persistence: queries and saves
- Patient accounts → Prescriptions: retrieves history
src/Controller/Admin/UsersController.php - Patient accounts → Shared controller: inherits from
src/Controller/Admin/UsersController.php - Diagnosis templates → Shared controller: inherits from
src/Controller/Admin/DiagnosisController.php - Diagnosis templates → Medicine record: matches medicines
src/Controller/Admin/DiagnosisController.php - Prescriptions → Shared controller: inherits from
src/Controller/Admin/PrescriptionsController.php - HTTP application → Shared controller: routes requests
- HTTP application → PDF generation: enables PDF output