Git Product home page Git Product logo

hospitalbeds's Introduction

Build Instructions

The application is developed for and is verified to work on Ubuntu LTS 20.04 and 20.10 Go to source directory and run

  1. cmake .
  2. make

Hospital Beds

hospitalBeds is an executable with 3 different operating modes. These modes are as follows:

  • doctor: Displays the doctor window which allows for the user to request a hospital bed for a patient in the following locations: Christiansburg, Roanoke, Lynchburg, Princeton, Bristol. The user is required to select at least one ailment for their patient. These ailments are given in a checkbox panel and multiple ailments may be selected. The doctor sends POST request to the server which will then register and store individual hospitals in the database. To run this ui type hospitalBeds -d.

  • server: This establishes the connection from the doctor to the database as well as the hospital to the database and listens for POST requests sent from either the doctor or hospital. It is configured at port 8080 of
    localhost. To run this executable type hospitalBeds -s.

  • hospital: Displays the hospital window which allows for the hospital to request bed data and populate charts for each hospital that display the number of occupied beds for each specific hospital. To run this executable type hospitalBeds -h at the command line.

Required Libraries

  • SQLite3
    • Installation:
      • sudo apt-get install libsqlite3-dev
  • Qt5 - QtWidget and QtCharts:
    • Installation:
      • Install QtCreator community with widgets and charts
      • sudo apt-get install libqt5charts5-dev
  • casablanca for REST SDK
  • lcurses
    • Installation:
      • sudo apt-get install libncurses5-dev libncursesw5-dev
  • UUID
    • Installation:
      • sudo apt-get install uuid-dev

Other Installation Details

Project built using CMake, and programming languages used are C++ and C. REST service is used for communication and SQLite is used for database.

Running

  1. Start hospitalBeds -s
  2. Start hospitalBeds -h
  3. Add hospital and beds from the Hospital UI
  4. Wait for changes to fully propagate. This should take 10-20 seconds, this waiting period is only required when first adding a hospital.
  5. Start hospitalBeds -d. The application is now fully functional.

hospitalbeds's People

Contributors

ccranson27 avatar braeden-muller avatar mattl485 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.