How irfankazitech/hospital-management-system-c works
This is a single-file, menu-driven dispensary inventory program. The user selects an operation; the main loop displays the menu and dispatches to medicine add, display, search, sale, deletion, or low-stock alert logic. Those operations read or modify a shared in-memory stock array and interact directly with the console. The README documents these capabilities and the 100-record, non-persistent limit; the supplied source confirms their implementation.
Main entry points: dispensary.c Menu loop
Components 11
Inventory operations
- Add medicine
dispensary.c - Display stock
dispensary.c - Search medicine
dispensary.c - Sell medicine
dispensary.c - Delete medicine
dispensary.c - Low-stock alert
dispensary.c
In-memory state
- Medicine stock
dispensary.c
Other components
- User
- Console
Connections 22
- User → Menu loop: chooses option
- Menu loop → Show menu: calls
- Show menu → Console: prints menu
- Menu loop → Console: reads choice
- Menu loop → Add medicine: dispatches
- Menu loop → Display stock: dispatches
- Menu loop → Search medicine: dispatches
- Menu loop → Sell medicine: dispatches
- Menu loop → Delete medicine: dispatches
- Menu loop → Low-stock alert: dispatches
- Add medicine → Console: reads and prints
- Display stock → Console: prints stock
- Search medicine → Console: reads and prints
- Sell medicine → Console: reads and prints
- Delete medicine → Console: reads and prints
- Low-stock alert → Console: reads and prints
- Add medicine → Medicine stock: appends record
- Display stock → Medicine stock: reads records
- Search medicine → Medicine stock: searches records
- Sell medicine → Medicine stock: reads and updates
- Delete medicine → Medicine stock: removes record
- Low-stock alert → Medicine stock: checks quantities