Enterprise Hospital ERP

MED PROJEKTI
Hospital Management System

A comprehensive, enterprise-grade ERP platform designed for hospitals. Manage HR, payroll, attendance, leave, pharmacy, OPD, inventory, and more — all in one unified, secure system.

Next.js Frontend Laravel API PostgreSQL JWT Auth RBAC v2.0 · 2025
6+
Core Modules
175+
Employees Managed
100%
REST API
RBAC
Role-Based Access

Technology Stack

Frontend
Client-side application
Framework Next.js 14
Runtime Node.js
UI Library Tailwind CSS
State React Context / Zustand
Backend
API & database layer
API Framework Laravel 11
Database PostgreSQL
Auth JWT / Laravel Sanctum
Architecture REST API
JWT Authentication Role-Based Access Control Real-time Data Advanced Reporting PDF / Excel Export Cloud / VPS Ready Multi-Department Mobile Responsive

System Architecture

Presentation Layer

Next.js SSR/CSR hybrid, Tailwind CSS, Responsive UI components

API Layer

Laravel REST API, JWT Auth, RBAC Middleware, Business Logic

Data Layer

PostgreSQL, Eloquent ORM, Migrations, Optimized Queries

Authentication & Login

Secure, role-based authentication ensures only authorized medical professionals can access the system. JWT tokens provide stateless, scalable session management across all modules.

localhost:3000/login
Login Page
Secure Login Portal
Insaf Barakah Kidney & General Hospital — Medical Professionals Only
JWT Secured
JWT Token Auth

Stateless authentication with secure token refresh cycles

Mobile APK

Download the companion Android app for on-the-go access

Role Enforcement

Permissions enforced at every API endpoint and UI route

HRM Dashboard

The central command center for Human Resource Management. Real-time KPIs give managers instant visibility into workforce status, attendance, and pending actions.

HRM Dashboard — My Dashboard
HRM Dashboard
HRM Overview Dashboard
Live metrics: Present, Absent, Leave, Overtime, New Joiners
140
Total Present
190
Total Absent
175
Total Employees
22
Salary Pending
Salary Management Menu
Salary Management Sub-Menu
Generate Monthly Salary · Payslips · Salary Sheet

Employee Management

Full lifecycle management of hospital staff — from onboarding to resignation. Advanced filtering by department, blood group, designation, and searchable by ID, name, or phone.

Employee List
Employee List
Employee Directory
60 Total · 50 Active · 10 Inactive · Paginated 50/page
Edit View
Staff Information Form — Print Preview
Staff Information Form
Staff Information Form
Full employee profile: Personal, Contact, Job Info — with PDF Export
Export PDF
Employee Management Features
Multi-field search (ID, Name, Phone, Designation)
Department & Blood Group filters
PDF Staff Information Form export
Active / Inactive status tracking
NID, DOB, Address, Emergency Contacts
Paginated list (50/page) with fullscreen view

User Profile & Role-Based Access

Each user has a profile with granular permission assignments. RBAC ensures each role sees and can do only what they're authorized for — enforced on both frontend routes and API endpoints.

My Profile — Roles & Permissions
User Profile & RBAC
User Profile & Permissions
Admin (IT) role with granular permission flags across all modules
Sample Permission Set — Admin (IT)
view my leave
create my leave
edit permission
view department
edit document
view weekly roster
view leave settings
edit monthly roster
view organogram

Leave Management

A complete leave lifecycle system supporting multiple leave types with balance tracking, approval workflows, and formal leave application documents in Bangla.

My Leave — Leave Request & Balance
Leave Management
Leave Request & Balance Tracker
Casual · Earning · Sick · Without Pay · Replace · Maternity Leave types
Casual Leave (CL)
30 days · 14 consumed · 16 balance
Earning Leave (EL)
15 days · 3 consumed · 12 balance
Sick Leave (SL)
7 days · 0 consumed · 7 balance
Without Pay (WP)
50 days allowed
Replace Leave (RL)
70 days allowed
Maternity (ML)
100 days allowed
ছুটির আবেদনপত্র — Leave Application PDF
Leave Application PDF
Official Leave Application (Bangla)
Formal leave form addressed to Managing Director — printable PDF
PDF Export
Leave Applications — Admin View
Leave Application Report
Leave Applications Report
Filter by Employee · Department · Month · Year · Status — May 2026: 6 total, 13 days

Roster & Shift Scheduling

Flexible weekly roster management supporting Day and Night shifts. Assign, edit, and save shift times per employee per day — with off-day designation and historical tracking.

Weekly Roster — Shift Schedule
Weekly Roster
Weekly Shift Roster
Day In/Out · Night In/Out · Off Day checkbox · Last Update timestamp per employee
Individual Report
Individual Roster Report
Per-employee daily attendance vs roster
Individual Report PDF
Individual Report — PDF Preview
Printable format with shift details & remarks

Attendance Reporting

Powerful attendance analytics with daily status (Present, Absent, Late, Off Day), overtime calculations, working hours tracking, and department-wise aggregated reports.

Attendance Report — Jan 2026
Attendance Report
Monthly Attendance Report
Present(6412) · Absent(3956) · Other(5502) — Jan 2026 · Department-wise breakdown
Export PDF Print
Attendance Processing… 89%
Attendance Processing
Report Processing Screen
Real-time progress indicator while attendance data is computed for large datasets

Salary Management

Automated monthly salary generation with configurable allowances, deductions, PF, overtime calculations, and absence deductions — with Excel export and a full-screen salary sheet view.

Generate Monthly Salary — May 2026
Generate Monthly Salary
Monthly Salary Generator
Basic · House Rent · Medical · Conveyance · Others · Overtime · Absence Deduction · PF
Excel Export
Monthly Salary Sheet — Full View
Salary Sheet Full View
Full-Screen Salary Sheet
Total Payable · Net Pay · Deductions · Loan Installment — 20 rows shown · Page Total: 321,538
Salary Components Explained
Component Type Description
Basic SalaryEarningBase monthly compensation
House RentEarningHousing allowance
Medical AllowanceEarningHealth-related allowance
ConveyanceEarningTransport allowance
Overtime (OT)AdditionExtra duty compensation
PF Office (10%)DeductionProvident fund — employer share
PF Staff (12%)DeductionProvident fund — employee share
Loan InstallmentDeductionMonthly loan repayment

Payslips

Generate, view, and distribute individual payslips. Support for Bank, Cash, or Both payment methods with configurable amounts and printable PDF export.

Payslip List
Payslip List — January 2026
Net Pay · Bank Pay · Cash Pay per employee
Employee Payslip
Individual Payslip — Md. Altaf Hossain
Earnings · Deductions · Net Pay BDT 66,129.20 · Print/PDF
Payslip Features
Monthly payslip per employee
Bank / Cash / Both payment method
Loan remaining balance display
Print / PDF export
Excel export of full payslip list
Save Payment Method per payslip

Loan Management

Employees can apply for loans through the system. Managers approve, reject, or track repayment. Monthly deductions are automatically linked to salary generation.

My Loan — Loan Records
Loan Management
Employee Loan Dashboard
Total Requests · Pending · Approved · Rejected · Total Loan · Remaining Balance
Loan Application

Employee submits loan request with purpose and installment plan

Approval Workflow

Manager reviews and approves or rejects via admin panel

Auto Deduction

Monthly installments auto-deducted during salary generation with remaining balance tracking

All System Modules

MED PROJEKTI is a full-spectrum hospital ERP. Beyond HRM, it covers Pharmacy, Inventory, Hospital (IPD), Canteen, and OPD — all accessible from the top navigation bar.

HRM

Employees, Leave, Roster, Attendance, Salary, Payslips, Loans

Pharmacy

Drug inventory, dispensing, stock alerts, billing integration

Inventory

Medical supplies, equipment tracking, purchase orders, stock management

Hospital (IPD)

Inpatient management, bed allocation, ward management, discharge

Canteen

Staff meal management, orders, billing, dietary tracking

OPD

Outpatient registration, appointment scheduling, doctor assignments

Security & Access Control

Enterprise-grade security with JWT-based authentication, granular role-based permissions, and API-level authorization middleware ensuring data privacy across all modules.

Security Features
  • JWT stateless authentication with configurable token expiry
  • Role-Based Access Control (RBAC) at route and API level
  • Password encryption with bcrypt hashing
  • Audit log trail for all critical operations
  • CORS policy enforcement and rate limiting
Role Hierarchy
Super Admin
Full Access
Admin (IT)
System Admin
HR Manager
HR Module
Department Head
Dept. Scope
Employee
Self Access

Deployment & Infrastructure

Designed for cloud or VPS deployment with a scalable, container-friendly architecture. Supports major cloud providers and on-premise hospital IT infrastructure.

Frontend Deployment
# Build Next.js app
npm run build
# Start production server
npm run start
# Or export static build
npm run export
Backend Deployment
# Install dependencies
composer install --no-dev
# Run migrations
php artisan migrate
# Configure environment
cp .env.example .env
Infrastructure Requirements
Component Minimum Recommended
CPU2 vCPU4+ vCPU
RAM4 GB8 GB+
Storage50 GB SSD200 GB+ SSD
DatabasePostgreSQL 14PostgreSQL 15+ with replication
Node.js18.x LTS20.x LTS
PHP8.28.3