This project includes both a desktop application and a terminal/console version for generating and recording prescriptions based on the patient's age, pregnancy status, allergy status, and weight. The desktop app is built using the tkinter library in Python, while the terminal/console version is a text-based interface.
==Owing to the limitation of time, the destrop version has some bugs which are still not solved :|==
- Easy-to-use graphical user interface (GUI) for the desktop app
- Text-based terminal/console interface for those who prefer command-line interaction
- Generate prescription based on user's input
- Save prescription records to a CSV file
- Display previous prescriptions from the CSV file
- Logging functionality for debugging and development purposes
- Ensure you have Python 3.6 or higher installed on your system.
- Download or clone this repository to your local machine.
- Install the required libraries by running
pip install -r requirements.txt
in your terminal/command prompt.
- Navigate to the project directory in your terminal/command prompt.
- Run the command
python CDSApp.py
to start the application. - Fill out the input fields in the app with appropriate values.
- Click the "Submit" button to generate a prescription.
- The generated prescription will be displayed on the screen and saved in the
prescriptions.csv
file. - Click the "Record" button to view previously saved prescriptions.
- Navigate to the project directory in your terminal/command prompt.
- Run the command
python CDSTerminal.py
to start the terminal/console version of the application. - Follow the prompts and enter the required information.
- The generated prescription will be displayed on the screen and saved in the
prescriptions.csv
file. - Type "history" to view previously saved prescriptions.
Prescription App
|
├── CDSApp.py - Main script for the desktop application
├── CDSTerminal.py - Main script for the terminal/console application
├── requirements.txt - Required libraries for the project
├── common
│ ├── config.py - Configuration file containing paths and constants
│ └── constants.py - File containing text labels and geometry dimensions for the app
├── log
│ ├── logger.py - Logging functionality
│ └── function_log.log - Log file generated by the logger
├── resource
│ ├── data
│ │ └── prescriptions.csv - CSV file to store generated prescriptions
│ └── images
│ └── icon
│ ├── icon.ico - Application icon for Windows
│ └── icon.png - Application icon for other platforms
└── utils
├── algorithm.py - Algorithm for generating prescriptions
└── csv_util.py - Utility functions for reading and writing CSV files
Feel free to contribute to this project by submitting pull requests or reporting issues. We appreciate any feedback and suggestions to improve the application.
This project is licensed under the MIT License.