Welcome to the HospitalManagementSystem(HMS), a simple Rails application that provides receptionists and doctors with the ability to manage patient records and view patient registration trends.
- Backend: Ruby on Rails
- Database: PostgreSQL
- Authentication: Devise
- Graph implentation: Chartkick
- Two user roles: Receptionist and Doctor
- Authentication for both roles using Devise
- Graphical representation of patient registrations
- Proper user role-based redirection after login/signup
- Clone the repository
- Install required gems:
bundle install - Set up the database:
rails db:create && rails db:migrate - Start the Rails server:
rails server
- Receptionist: Can register new patients, perform CRUD operations on patient records.
- Doctor: Can view patient records and see a graph of patient registrations.
- Access the application in your web browser:
http://localhost:3000 - Sign up using your email, password, and select your role (Receptionist/Doctor).
- Log in with your credentials.
- Based on your role, you'll be directed to either the receptionist or doctor page.
- Receptionists can register new patients and manage patient records.
- Doctors can view patient records and see a graph representing patient registrations.