A comprehensive Hospital Management System (HMS) built with React (Vite) for the frontend and Node.js (Express) with Oracle Database for the backend.
- Ward Management: Real-time monitoring and management of hospital wards.
- Doctor & Staff Tracking: Comprehensive database of medical professionals.
- Patient Admissions: Streamlined process for admitting and tracking patients.
- Automatic Discharge Monitor: Background service to handle expired admissions automatically.
- RBAC (Role-Based Access Control): (Infrastructure present for role management).
- Responsive UI: Modern dashboard built with React and Lucide icons.
- Framework: React 19 (Vite)
- Routing: React Router 7
- Styling: CSS (Modular) / Tailwind (configured)
- Icons: Lucide-React
- API Client: Axios
- Runtime: Node.js
- Framework: Express
- Database: Oracle Database (via
oracledbdriver) - Middleware: CORS, JSON parser
- Node.js: v18.x or higher
- Oracle Database: Access to an Oracle instance (e.g., Oracle XE, 19c, or 21c).
- Oracle Instant Client: Required for the
oracledbdriver.
git clone https://github.com/kartikramanuj/Hospital-Data-Management-system.git
cd Hospital-Data-Management-system- Navigate to the backend directory:
cd hospital-backend - Install dependencies:
npm install
- Configure Database:
- Update
config/db.jswith your Oracle Database credentials (User, Password, Connect String). - Ensure your Oracle instance is running.
- Update
- Run the server:
The backend will run on
node app.js
http://localhost:5001.
- Navigate to the frontend directory:
cd ../hospital-frontend - Install dependencies:
npm install
- Start the development server:
The frontend will be available at
npm run dev
http://localhost:5173.
The project includes a schema.sql file in the hospital-backend directory to help you set up the necessary tables and triggers in your Oracle Database.
Hospital-Data-Management-system/
├── hospital-backend/ # Express server & API logic
│ ├── config/ # DB connection config
│ ├── controllers/ # Business logic
│ ├── models/ # Data structures
│ └── routes/ # API endpoints
├── hospital-frontend/ # React + Vite application
│ ├── src/ # Components & Hooks
│ └── public/ # Static assets
└── README.md
Feel free to fork this project, report issues, or submit pull requests to improve the system!
This project is licensed under the ISC License.