Index of work

Case study · Pl. 01 of 03

Matab Health Care

Modern Healthcare Solutions

Stack
Python, Django, Django REST Framework, PostgreSQL, React, Next.js, AWS EC2, AWS RDS, Git
Links
Chapters
01 Problem 02 Solution 03 Outcome
Interface of Matab Health Care
Fig. 1 — Matab Health Care, interface.

The problem

Healthcare clinics often struggle with fragmented management systems, leading to double-booked appointments, unauthorized data access, and operational bottlenecks. Matab Health Care needed a centralized, highly reliable platform to seamlessly manage daily clinic workflows. The core challenges were handling high-volume, real-time patient scheduling without errors and ensuring strict, secure isolation of sensitive medical and operational data among varying levels of clinic staff.

The solution

I engineered a highly secure and scalable backend infrastructure to support the clinic’s complex operational logic.

Stack: Python, Django, Django REST Framework (DRF), and AWS (EC2).

Concurrency-Safe Scheduling: A major architectural requirement was preventing scheduling conflicts. I built a real-time appointment booking engine utilizing database-level locking and concurrency-safe transactional logic. This ensured that simultaneous booking requests for the same time slot would not result in double-booking or race conditions.

Advanced Authorization Layer (RBAC & ABAC): Because the system handled sensitive healthcare operations, standard user roles were insufficient. I designed a hybrid Role-Based Access Control (RBAC) and Attribute-Based Access Control (ABAC) layer. This allowed for hyper-granular permission separation across 10 distinct role types (e.g., system admins, doctors, front desk staff), ensuring users could only access data and perform actions strictly relevant to their role and specific clinic context.

Cloud Infrastructure & DevOps: To ensure reliability and streamline updates, I provisioned and configured the cloud infrastructure using AWS EC2. I implemented environment-based configuration management (securely separating dev, staging, and production secrets) and wrote automated deployment scripts to facilitate continuous, error-free rollouts.

The outcome

Flawless Execution at Scale: Successfully managed 50+ daily real-time appointment bookings with zero race conditions or double-booking errors, significantly improving patient experience and front-desk efficiency.

Operational Security: The robust 10-role RBAC/ABAC system successfully compartmentalized clinic operations, ensuring data privacy and operational security for both patients and staff.

Streamlined Engineering Cycle: The automated deployment pipeline and AWS infrastructure eliminated manual server configuration, reducing deployment times and minimizing downtime for clinic operations.