Case studyHospital managementIraqWeb app

Ishtar HMS: Integrated Hospital Management System

A bilingual, configurable hospital management platform that connects patients, doctors, nurses, diagnostics, pharmacy and finance on a single patient record, with every clinical action flowing automatically into accurate billing, doctor earnings and revenue reporting.

Ishtar HMS · web app
Ishtar HMSPatientsOPDIPDBillingNew patient
One patient record, every department.OPD · IPD · OT · Lab · Pharmacy · BillingRegister patient →
OPD & IPD
Billing & cashier
Doctor earnings
CountryBaghdad, Iraq
PlatformWeb Application (React frontend with Laravel REST API)
IndustryHealthcare / Hospital Management
Team Size5 Specialists (4 developers + 1 QA)
Project Overview

About Ishtar HMS

In many hospitals, registration, consultation, lab, radiology, wards, operation theatres, pharmacy and billing run as separate tools or paper registers. Patient information is re-entered at every step, charges are missed or calculated by hand, and doctors’ earnings are reconciled long after the patient has gone home.

Ishtar HMS replaces that with one connected system. It covers patient registration, appointments, OPD, IPD and bed management, operation theatre scheduling, laboratory, radiology, billing and cashier, accounts and settlements, a hospital wallet, inventory and pharmacy, and specialised birth and NICU management. Built on a React 18 frontend and a Laravel 10 API, it includes roughly 380 lazy-loaded screens, more than 100 feature modules and a permission system spanning about 116 modules, in both English and Arabic with full right-to-left layout.

Project Team

Team Composition

A focused team of 5 specialists built the platform as one product over roughly 1.5 to 2 years, so that clinical screens, billing logic and permissions moved in step on every release.

Frontend Developer1
Backend Developer1
Full-Stack Developer2
QA Engineer1
Active Developmentapproximately 1.5 to 2 years
CodebasesWeb Frontend (React 18, TypeScript) and Backend API (Laravel 10)
Client Requirements

What the Client Needed

The hospital needed more than patient records; it needed one platform that follows a patient from first registration to final payment and accounts for every payment transparently. Based on the scope, the requirements centered on:

Complete Patient Journey

Registration, appointments, OPD consultation, IPD admission, treatment, discharge and billing linked to the same patient record.

Connected Departments

Doctor orders that reach the lab and radiology instantly, with reports returning to the doctor’s view, and nurses, pharmacists and doctors working on the same IPD record.

Accurate, Traceable Billing

Every chargeable action creating a bill line, with two-level discounts, tax, refunds and server-side verification of totals.

Doctor and Staff Revenue Sharing

Per-service doctor earnings, commissions, settlements and staff and hospital wallets, not just invoicing.

Operation Theatre Management

Scheduling, multi-doctor teams and automatic splitting of operation revenue between surgeon, assistants, anaesthetist and hospital.

Inventory and Pharmacy

A full procure-to-issue chain with approvals, reorder levels and near-expiry tracking.

Role-Based Access and Auditability

Fine-grained permissions for every role, protected patient data and a complete audit trail.

Bilingual Experience

English and Arabic interfaces with full right-to-left support.

Engineering Challenges

Challenges & Solutions

A hospital system carries clinical, financial and security demands well beyond a typical business application. Here is what came up, and how it was addressed.

01

One Billing System for Every Module

Challenge

Appointments, OPD, IPD, bed transfers, discharge, operations and inventory issues all create charges, and each had to appear correctly in one consolidated bill.

Solution

Every bill line stores a module source reference and the record ID that created it. The billing screen can show earnings by source and link back to the origin. Each clinical record and its charges are saved inside a single database transaction, so data is never half-saved.

02

Keeping Financial Calculations Identical on Frontend and Backend

Challenge

Hospital and staff discounts (flat or percentage), tax, cancelled lines and partial refunds must produce the same totals everywhere, including rounding.

Solution

Subtotals, discounts, tax and receivable amounts are calculated automatically on screen, and the server recalculates every bill line and rejects any request whose totals do not match. Discounts are capped at the subtotal, tax is applied after discounts, and changing discounts needs a special permission.

03

Splitting Operation Revenue Fairly Among Many Parties

Challenge

Operation pricing combines procedure cost, tax, external company bills, extra-hour charges and additional charges, and the shares of several doctors must add up exactly.

Solution

The operation finance module splits earnings between the surgeon, assistants, anaesthetist and hospital, and validates that assistant and anaesthetist shares fit within the remaining after-discount amount. An interactive ReactFlow graph shows the money flow visually, and the OT end time is calculated automatically from start time and duration.

04

Clinical Screens That Change Without New Code

Challenge

Different departments need different forms, and hospitals keep adding clinical sections. Hard-coded screens would mean a developer for every change.

Solution

A Dynamic Form Builder and Dynamic Tabs engine lets administrators configure forms and the order and visibility of OPD and appointment tabs from the backend. The frontend renders them at runtime, so new sections, including history and examination forms with file uploads, can be added without code changes.

05

Access Control Across Hundreds of Screens and Buttons

Challenge

Doctors, nurses, receptionists, cashiers and administrators must each see only what they should, across about 116 modules.

Solution

Each role gets view, add, edit and delete rights per module, checked by permission middleware on the backend and by protected routes, tabs and buttons on the frontend. Department managers get full access, non-manager IPD staff see only their assigned patients, and permissions reload live when a role changes.

06

Fast, Reliable Very Large Clinical Forms

Challenge

OPD, IPD and appointment screens carry many tabs and thousands of lines of logic, and hospital staff cannot wait on slow pages or lose work after a release.

Solution

About 380 screens are lazy-loaded, lists use server-side pagination with eager loading and database indexes, and requests are cancelled when no longer needed. A chunk-error handler reloads the app once if a new release changes file names, and discharge drafts are saved on the server and locally.

07

Identifying Patients and Tracking Their Journey

Challenge

Staff need to pull up the right patient instantly and see everything that happened to them across departments.

Solution

Registration generates a unique patient number with a QR code and barcode stored on AWS S3, so a scan opens the record. A treatment timeline records each significant event with who did it and in what role, and every bed assignment and transfer is stored with timestamps and a reason. Vitals automatically produce a TEWS (age 12 and above) or PEWS (under 12) early-warning score, colour-coded from Green to Red.

08

A Bilingual Interface and Reusable Documents

Challenge

The product had to work in English and Arabic with right-to-left layout, and produce many printable documents, including thermal receipts.

Solution

i18next powers the English and Arabic interface with full RTL layout. One reusable PDF and thermal print engine produces bills, OPD tickets, prescriptions, lab and radiology reports, certificates and discharge summaries in 58, 80 and 112 mm formats, and Excel export is available on about 110 list screens.

Web Application

Web App Design

ishtar-hms/patients/new
Ishtar HMSPatientsOPDIPDBillingEN | ع
Register a patient
Scan QR or search patient
Patient no. generatedQR code & barcode on AWS S3
Save patient
AppointmentTomorrow · Reminder by email & WhatsApp●
Treatment timelineEvery event, who and in what role→
LanguageEnglish / Arabic (RTL)✓
Patient registration
ishtar-hms/opd
Ishtar HMSPatientsOPDIPDBillingEN | ع
OPD consultation
HistoryExaminationOrders
Dynamic form
Save consultation
Lab orderSent to laboratory●
Radiology orderReport returns to doctor→
Consultation chargePre-attached to bill✓
OPD consultation with dynamic tabs
ishtar-hms/ipd/beds
Ishtar HMSPatientsOPDIPDBillingEN | ع
Ward · bed allocation
B1B2B3B4B5B6B7B8
Assign bed
TEWS · Green
Bed transferTimestamp & reason stored→
Assigned nurseSees assigned patients only●
IPD & visual bed management
ishtar-hms/ot
Ishtar HMSPatientsOPDIPDBillingEN | ع
Operation finance
Surgeon
Assistants
Anaesthetist
Hospital
Confirm split
OT scheduleEnd time from start + duration✓
Multi-doctor teamSurgeon, assistants, anaesthetist●
Money flowInteractive ReactFlow graph→
Operation theatre & revenue split
ishtar-hms/billing
Ishtar HMSPatientsOPDIPDBillingEN | ع
Consolidated bill
Bill lines by sourceOPD · IPD · OT · Pharmacy
Hospital discountFlat or percentage●
TaxApplied after discounts✓
Collect payment
Server-verified totalTotals match ✓
RefundPartial refund supported→
Print58 / 80 / 112 mm thermal→
Billing & cashier
ishtar-hms/inventory
Ishtar HMSPatientsOPDIPDBillingEN | ع
Procure to issue
Purchase requestAwaiting approval●
Reorder levelBelow threshold!
Approve request
Near-expiryTracked by batch!
Issue to IPDCharged to patient bill✓
Goods receivedStock updated✓
Inventory & pharmacy
Ishtar HMS AdminRevenueDoctor earningsSettlementsPermissionsAudit trail
Revenue dashboard
Revenue by source
Doctor earnings
Settlements
Admin dashboard · Revenue, doctor earnings, settlements and permissions
1 / 7
Impact & Outcomes

Results & Achievements

Ishtar HMS gives the hospital one connected system in which every clinical action produces a correctly calculated, traceable charge that flows through to doctor earnings, settlements and revenue reports.

A Complete Clinical-to-Financial Pipeline

Appointments, OPD, IPD, operations and inventory issues create charges that feed doctor earnings, settlements, wallets and revenue dashboards, with every amount validated on the server.

Less Manual Work for Staff

Appointment-to-OPD hand-off, pre-attached consultation charges, visual bed allocation, automatic OT end times and discharge draft saving remove repeated data entry.

Automatic Patient Reminders

A daily 10:00 job sends tomorrow’s appointment reminders to both patient and doctor by email and WhatsApp, using editable templates.

Faster Clinical Decisions

Early-warning scores, a connected lab and radiology order flow and a patient timeline put the right information in front of clinicians as it happens.

Transparent Revenue Sharing

Per-doctor flat or percentage earnings, commissions, settlement requests and staff and hospital wallets replace manual reconciliation.

Controlled Access and Accountability

Role-based permissions, about 65 audited data models, login records with IP and permission-gated medical record tabs protect sensitive patient information.

Built for Local Users

A fully bilingual English and Arabic experience with right-to-left layout across the application.

Configurable and Ready to Grow

Dynamic forms and tabs let the hospital adapt clinical screens without rebuilding the platform.

Technology Stack

Technologies We Used

A stack chosen to deliver configurable clinical screens, accurate financial processing and strict access control at hospital scale.

Frontend

React 18TypeScriptViteMUI v6Ant DesignRedux ToolkitReact Router v7FormikYupi18nextAxiosReactFlow

Backend API

PHP 8.1Laravel 10Eloquent ORMJWT authenticationSpatie Laravel PermissionOwen-it AuditingLaravel Scheduler

Database

MySQL

File Storage

AWS S3 (documents, QR codes and barcodes)

Notifications

Email and WhatsApp integration with editable templates

Documents and Export

Reusable PDF engine with thermal printer formats (58/80/112 mm)Excel export

Localisation

English and Arabic with right-to-left layout
Development Approach

Engineering Excellence Behind Ishtar HMS

Agile Development

We built the platform module by module in iterative sprints, so that clinical screens, billing, inventory and accounts evolved together. Feedback from hospital workflows shaped the discount rules, operation finance, permissions and dynamic forms over the 1.5 to 2 year build.

Quality Assurance & Deployment

Critical flows, from appointment-to-OPD conversion and lab order lifecycles to billing calculations, refunds and doctor settlements, are protected by Formik and Yup validation (about 85 central schemas), Laravel FormRequests, database transactions and server-side total checks, with a dedicated QA engineer on the team. Soft deletes, an audit trail, API rate limiting, token blacklisting on logout and deploy-safe error handling keep the platform stable and accountable as it grows.

Experience the Platform

Where Every Patient Journey Is Connected

Designed for receptionists, doctors, nurses, cashiers and administrators alike, Ishtar HMS delivers a connected, bilingual and fully auditable hospital experience. Explore a platform built to follow every patient from registration to settlement.

Planning a hospital management system?

Start your project →
Free project estimate

Know the cost and timeline before you commit.

Share your idea and a senior consultant sends you a scope outline with cost and timeline ranges within one business day. No obligation.

Get my free estimate