Overview
Narayan Hospital (Naubatpur) and its sister branch Gopal Hospital required a complete digital transformation. Historically, their entire clinical and operational pipeline — from pharmacy inventory and retailing to doctor scheduling, patient medical records, and nurse assistance — was completely paper-based.
SAMYORA was engaged to build a comprehensive, end-to-end, paperless Hospital Management System (HMS) that digitizes every aspect of the hospital's operations, alongside a lightning-fast public-facing web presence.
The Challenge
Running a high-traffic hospital on paper introduced significant operational friction:
- Pharmacy & Stock: Tracking inventory, purchase prices, and batch expiries manually was error-prone, making stock reconciliation nearly impossible.
- Patient Records: Finding a patient's historical treatments or tracking a doctor's ward rounds relied entirely on physical files.
- Multiple Branches: Managing staff, doctors' rotating schedules, and inventory across two separate hospital brands required a unified but strictly access-controlled digital environment.
Our Solution
We engineered a bespoke, three-part software ecosystem to replace the paper trails entirely. The project is currently in active development, rolling out in phases to ensure seamless adoption by the medical staff.
1. The Core Backend Engine
A robust Node.js and MongoDB backend serves as the single source of truth for all clinical and administrative data. It features:
- 7-Tier Role-Based Access Control (RBAC): Strict data segregation between Super Admins, Branch Admins, Doctors, Nurses, Pharmacists, General Staff, and Patients. A single user can hold multiple roles and seamlessly switch workspaces.
- Multi-Branch Tenancy: Doctors and stock are dynamically mapped to either Narayan Hospital or Gopal Hospital, with schedules and branch-specific access automatically enforced.
2. The Clinical & Pharmacy Admin Portal
A responsive React SPA empowering hospital staff to manage operations from their desks, tablets, or phones on the ward.
- Pharmacy Operations MVP: Fully digital master data management for drug combinations, item SKUs, dynamic dosage forms, and batch stock intake.
- Retail & Dues Management: Integrated billing at the pharmacy counter, with smart allocation of payments against outstanding bills.
- AI-Powered Bill Scanning: To accelerate stock intake from suppliers, we integrated Google Gemini 2.5 Flash Vision. The system can visually scan bulk physical purchase bills and automatically extract line items, quantities, and pricing directly into the inventory system, eliminating hours of manual data entry.
3. The Public Marketing & Booking Website
A static, SEO-optimized public website.
- Extreme Performance: Built to a strict performance budget (under 100 KB total page weight). It loads instantly even on slow 3G mobile networks, critical for patients in rural areas who need fast responses.
- Live Sync: Doctor timings and availability are never hardcoded. They are dynamically synced directly from the backend's master
DoctorSchedulerecords, ensuring patients only see accurate, bookable slots.
Technical Stack
- Public Website: Astro (for sub-100KB ultra-fast static rendering)
- Admin & Clinical Panel: React, MUI (Mantis UI framework)
- Backend Core: Node.js, Express, TypeScript
- Database: MongoDB (Mongoose)
- AI Vision: Google Gemini 2.5 Flash
The Result (Ongoing)
The Narayan Hospital digital transformation is systematically converting a chaotic paper-based facility into a modern, data-driven hospital. The pharmacy module has already established strict inventory controls and AI-assisted stock updates. As the clinical modules (doctors, nurses, patient timelines) roll out, the hospital will achieve a 100% paperless workflow, drastically reducing administrative overhead and improving patient care outcomes.