Giter VIP home page Giter VIP logo

ucl_dss's Introduction

CDS

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 :|==

Features

  • 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

Installation

  1. Ensure you have Python 3.6 or higher installed on your system.
  2. Download or clone this repository to your local machine.
  3. Install the required libraries by running pip install -r requirements.txt in your terminal/command prompt.

Usage

Desktop Application

  1. Navigate to the project directory in your terminal/command prompt.
  2. Run the command python CDSApp.py to start the application.
  3. Fill out the input fields in the app with appropriate values.
  4. Click the "Submit" button to generate a prescription.
  5. The generated prescription will be displayed on the screen and saved in the prescriptions.csv file.
  6. Click the "Record" button to view previously saved prescriptions.

Terminal/Console Application

  1. Navigate to the project directory in your terminal/command prompt.
  2. Run the command python CDSTerminal.py to start the terminal/console version of the application.
  3. Follow the prompts and enter the required information.
  4. The generated prescription will be displayed on the screen and saved in the prescriptions.csv file.
  5. Type "history" to view previously saved prescriptions.

Application Structure

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

Contributing

Feel free to contribute to this project by submitting pull requests or reporting issues. We appreciate any feedback and suggestions to improve the application.

License

This project is licensed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.