The application is developed for and is verified to work on Ubuntu LTS 20.04 and 20.10 Go to source directory and run
cmake .
make
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.
- SQLite3
- Installation:
sudo apt-get install libsqlite3-dev
- Installation:
- Qt5 - QtWidget and QtCharts:
- Installation:
- Install QtCreator community with widgets and charts
sudo apt-get install libqt5charts5-dev
- Installation:
- casablanca for REST SDK
- Installation:
- lcurses
- Installation:
sudo apt-get install libncurses5-dev libncursesw5-dev
- Installation:
- UUID
- Installation:
sudo apt-get install uuid-dev
- Installation:
Project built using CMake, and programming languages used are C++ and C. REST service is used for communication and SQLite is used for database.
- Start hospitalBeds -s
- Start hospitalBeds -h
- Add hospital and beds from the Hospital UI
- Wait for changes to fully propagate. This should take 10-20 seconds, this waiting period is only required when first adding a hospital.
- Start hospitalBeds -d. The application is now fully functional.