Project Showcase

MediCore — Hospital Management System

Enterprise healthcare ERP platform with 16 integrated modules for full-spectrum hospital operations including patient management, EHR, pharmacy, laboratory, billing, blood bank, and real-time analytics.

0 views·3 min read·
- Patient registration time
35 min → 3.8 min (89% reduction)
- Pharmacy stockouts
18/month → 7/month (60% reduction)
- Billing error rate
12% → 1.8% (85% reduction)
- Bed location time
5+ min → 28 seconds (90% reduction)
analytics dashbaord hms.png

Tech Stack

🎸Django
Django REST Framework
Celery
Redis
🐘PostgreSQL
Tailwind CSS
Alpine.js
Chart.js
Django Channels
WebSocket

Why This Stack?

Django 4.2 was chosen for its robust ORM, built-in admin interface, and mature ecosystem of third-party packages (DRF, Channels, Celery).
Tailwind CSS + Alpine.js provide a lightweight, responsive UI without the overhead of a full SPA framework.
Django Channels with Redis enables real-time queue management and WebSocket notifications critical for hospital operations.
PostgreSQL ensures ACID compliance for financial and clinical data integrity.

Gallery

analytics dashbaord hms.png
analytics dashbaord hms.png
hms dashboard.png
hms dashboard.png
blood reuenst form hms.png
blood reuenst form hms.png
pharamacy hms.png
pharamacy hms.png

MediCore HMS — Enterprise Healthcare Management System


Project Overview

MediCore HMS is a comprehensive, enterprise‑grade healthcare management platform designed to digitize and streamline all hospital operations. The system consolidates 16 specialized modules into a single unified ecosystem — enabling healthcare facilities to manage patient care, administrative workflows, clinical documentation, and financial operations from one central interface.

The platform is purpose‑built for modern hospitals that need reliable, secure, and scalable digital infrastructure to serve high patient volumes while maintaining regulatory compliance and clinical safety standards.


Core Modules

Patient Management

  • Centralised patient records with demographics, medical history, allergies, and immunizations
  • Secure document storage for reports, consent forms, and imaging results
  • Patient timeline with chronological view of all interactions and clinical events

📅 Appointments & Scheduling

  • Online booking with real‑time slot availability and conflict prevention
  • Interactive calendar views (day / week / month) with drag‑and‑drop rescheduling
  • Real‑time patient queue management with estimated wait times
  • Automated email and SMS reminders with confirmation tracking

Electronic Health Records (EHR)

  • Structured clinical notes with ICD‑10 diagnosis coding and procedure tracking
  • E‑prescribing with drug interaction checking and allergy alerts
  • Laboratory test ordering, sample tracking, result entry, and verification workflows

💊 Pharmacy & Laboratory

  • Real‑time medication stock tracking with batch numbers and expiry monitoring
  • Automated purchase order generation based on reorder thresholds
  • Comprehensive test catalog with reference ranges and specimen requirements

Billing & Insurance

  • Automated invoice generation for consultations, procedures, admissions, and pharmacy
  • Complete insurance claim management with EDI support and status tracking
  • Revenue analytics, AR aging reports, and collection rate dashboards

🏨 Inpatient & Bed Management

  • Full admission workflow with diagnosis, doctor assignment, and bed allocation
  • Real‑time bed occupancy tracking with ward‑level visualization
  • Structured discharge planning with medication reconciliation

🩸 Blood Bank & Ambulance

  • Donor management, eligibility screening, and donation scheduling
  • Blood component tracking with FIFO / FEFO expiry management and crossmatching
  • Ambulance fleet tracking, GPS‑based dispatch, and trip logging

📊 Analytics & Reporting

  • Executive KPI dashboard: revenue, occupancy rates, patient satisfaction
  • Customizable drag‑and‑drop widgets per user role
  • Scheduled PDF / Excel reports with email delivery

🔒 Security Features

FeatureTechnology Used
AuthenticationJWT + Two‑Factor Authentication (TOTP)
Brute‑force protectionDjango‑Axes
Object‑level permissionsDjango‑Guardian
Complete audit trailDjango‑Simple‑History

🏆 Key Achievement

Successfully integrated 16 modules into a cohesive platform capable of managing 500+ daily patient encounters with sub‑second response times.


🛠️ Tech Stack at a Glance

LayerTechnology
BackendDjango 4.2.7
APIDjango REST Framework 3.14.0
FrontendReact, TypeScript, Tailwind CSS
DatabasePostgreSQL
Caching / QueueRedis, Celery
AuthenticationJWT, django‑allauth
SecurityDjango‑Axes, Django‑Guardian
Audit TrailDjango‑Simple‑History
StorageAWS S3 (django‑storages)
MonitoringSentry SDK
DeploymentDocker, Gunicorn, Whitenoise

Project Gallery

analytics dashbaord hms.png
analytics dashbaord hms.png
hms dashboard.png
hms dashboard.png
blood reuenst form hms.png
blood reuenst form hms.png
pharamacy hms.png
pharamacy hms.png

Dependencies

Django==4.2
djangorestframework==3.14.0
celery==5.3.0
redis==5.0.0
channels==4.0.0
django-otp==1.2.0
django-axes==6.1.0
psycopg2-binary==2.9.5
gunicorn==21.2.0

Case Study

Problem

Kenyan mid-sized hospitals relied on fragmented paper-based systems and disconnected digital tools (separate Excel sheets for pharmacy, manual billing ledgers, physical patient files). This caused: (1) 25–40 minute patient registration queues during peak hours, (2) medication stockouts from lack of real-time inventory visibility, (3) billing errors averaging 12% monthly from manual invoice calculations, and (4) inability to track bed occupancy in real-time, leading to admission delays in emergency cases. Hospital administrators lacked a unified dashboard to monitor revenue, patient flow, and clinical outcomes.

Solution

Designed and developed a monolithic Django application with 16 integrated modules using a modular app structure for maintainability. Implemented Django Channels with Redis for real-time queue management and bed occupancy tracking — enabling instant updates across all connected clients. Integrated Celery for asynchronous tasks: automated appointment reminders via email/SMS, scheduled report generation (PDF/Excel), and drug expiry alerts. Built role-based dashboards: Administrator (KPIs, revenue, occupancy), Doctor (patient queue, EHR), Pharmacist (stock levels, reorder alerts), Accountant (AR aging, collections). Used Tailwind CSS with Alpine.js for a responsive, lightweight frontend that works on hospital workstations and tablets. Enforced security with JWT + TOTP 2FA, Axes brute-force protection, and Guardian object-level permissions to comply with Kenya's Data Protection Act.

Results

Deployed at a pilot hospital in Nairobi serving 200+ daily patients. Patient registration time reduced from 35 minutes to under 4 minutes. Pharmacy stockouts dropped by 60% through automated reorder threshold alerts. Billing errors fell from 12% to under 2% with automated invoice generation linked to consultation and pharmacy records. Real-time bed occupancy dashboard enabled emergency department to locate available beds in under 30 seconds, down from 5+ minutes of phone calls. Hospital administrator reported 25% improvement in monthly revenue collection due to accurate, timely invoicing and insurance claim tracking.

- Monthly revenue collection
+25% improvement
- System uptime
99.7% over 6-month pilot period
- Daily active users
40+ hospital staff across 5 departments

Discussion

Join the conversation and share your feedback.

💬0Comments
👥0Contributors

No comments yet. Be the first to share your thoughts!

Leave a comment

💬 Join the Discussion

Share your thoughts with other developers.