How marcelhassankassem-dev/carepharm works
CarePharm is a Django pharmacy application for staff and patients. Staff manage patient records, inventory, prescription dispensing, counter sales, safety decisions and reports; patients have accounts, and the owner manages staff. The graph separates domain services from their persistent records. Some views and reports are named in the source index but not excerpted, so their connections are included only where the index or README supports them; no external integrations are documented.
Main entry points: prescriptions/services.py Prescription Workflow · safety/services.py Safety Checks · sales/services.py Sales · passport/services.py Patient Records
Components 17
Accounts and Patients
- Accounts
accounts/views.py - Account Services
accounts/services.py - Patient Records
passport/services.py - Patient Data
passport/models.py
Pharmacy Operations
- Inventory
inventory/services.py - Medicine and Batches
inventory/models.py - Sales
sales/services.py - Sale Records
sales/models.py
Clinical Workflow
- Prescription Workflow
prescriptions/services.py - Prescription Records
prescriptions/models.py - Safety Checks
safety/services.py - Safety Overrides
safety/models.py
Reporting and Audit
- Reports
reports/services.py - Activity and Notifications
core/services.py - Audit Records
core/models.py
Other components
- Staff
- Patients
Connections 21
- Staff → Accounts: signs in
README.md - Patients → Accounts: signs in
README.md - Staff → Accounts: manages staff
README.md - Accounts → Account Services: uses
- Patient Records → Account Services: creates patient login
passport/services.py - Patient Records → Patient Data: creates and queries
passport/services.py - Inventory → Medicine and Batches: queries and updates
inventory/services.py - Sales → Inventory: checks and takes stock
sales/services.py - Sales → Sale Records: records sales
sales/services.py - Sales → Activity and Notifications: logs sale
sales/services.py - Prescription Workflow → Prescription Records: manages status and items
prescriptions/services.py - Prescription Workflow → Inventory: takes or returns stock
prescriptions/services.py - Prescription Workflow → Sales: records collection sale
prescriptions/services.py - Prescription Workflow → Patient Records: updates long-term medicines
prescriptions/services.py - Safety Checks → Patient Records: checks allergies and medicines
safety/services.py - Safety Checks → Prescription Workflow: adds prescription item
safety/services.py - Safety Checks → Safety Overrides: stores overrides
safety/services.py - Safety Checks → Activity and Notifications: logs decision
safety/services.py - Reports → Inventory: uses stock services
reports/services.py - Reports → Prescription Workflow: uses prescription services
reports/services.py - Activity and Notifications → Audit Records: creates and queries
core/services.py