Back to Selected Projects
Enterprise Freelance — Institut Teknologi Bandung

ITB Healthcare Reservation & Quota Engine

Modernized and engineered an institutional-scale clinic booking and clinical screening infrastructure for Institut Teknologi Bandung (UPT Layanan Kesehatan ITB / Bumi Medika Ganesha). Architected high-concurrency doctor-shift quota matching, automated BPJS PCare API bridging, Azure AD SSO integration, and multi-profile patient workflows handling 73,000+ patient records and 58,000+ transactional logs across 47 relational tables.

Project Type Enterprise Freelance
Institution Institut Teknologi Bandung (ITB)
My Role Full-Stack & Systems Engineer
Core Focus Concurrency, Quota Matcher & API Bridging
reservasi.itb.ac.id :: clinical-engine-v2 Live Booking Engine
ITB Healthcare System Preview
Mesin Reservasi & Kalender Interaktif: Antarmuka terpadu FullCalendar untuk pemilihan poli pratama/spesialis, pencocokan jadwal dokter, dan kuota slot real-time dengan perlindungan race condition.
73,104
Pasien Terdaftar
58,741+
Log Transaksi Reservasi & MCU
47
Tabel Relasional Ternormalisasi
19,029
Civitas ITB (Dosen, Mhs, Tendik)
Challenge & Context

The Problem

UPT Layanan Kesehatan ITB (Bumi Medika Ganesha / BMG) serves tens of thousands of active students, lecturers, academic staff, and their families across Ganesha and Jatinangor campuses. During peak academic medical check-up (MCU) cycles and routine consultations, the legacy system experienced severe booking concurrency bottlenecks, slot overbooking, and synchronization delays with national health insurance services.

The operational challenge required modernizing the reservation pipeline with strict transactional concurrency to prevent race conditions during slot bookings, automating real-time participant eligibility checks via the BPJS PCare API, and establishing enterprise single sign-on (SSO) with Microsoft Azure AD while maintaining complete audit trails across 73,000+ patient records.

Institutional Bottlenecks
High-concurrency race conditions leading to quota overbooking during peak morning hours
Manual patient BPJS verification causing long queues at on-site clinic reception
Disjointed multi-profile dependencies for academic staff families and dependents
Role & Responsibilities

My Contribution

I engineered the full-stack architecture, database models, and external bridging integrations for the modernized Reservasi V2 platform.

Dynamic Quota & Shift Engine

Architected concurrency-safe slot allocation matching doctor shifts, daily quotas, and branch locations
Implemented database transaction locks to eliminate race conditions and zero-quota booking anomalies

BPJS PCare API Bridging

Integrated REST client with HMAC-SHA256 timestamp signature authentication for BPJS PCare endpoints
Built automated participant NIK verification and clinic specialty mapping routines

Enterprise Identity & SSO

Implemented Microsoft Azure AD OAuth 2.0 and ITB Centralized SSO for seamless single sign-on
Structured two-factor email OTP validation and role-based permissions (Dosen, Mahasiswa, Tendik, Peneliti)

Clinical Screening & Documents

Built SRQ-20 mental health assessment scoring engine with automatic clinical risk indexing
Engineered tamper-proof QR code verification and PDF exporters for MCU, radiology, and EKG medical reports
Engineering Deep Dive

System Architecture & Database Integrity

A deep breakdown of the high-throughput architecture supporting 73,000+ patient records, zero-race-condition quota matching, and external interoperability.

ITB Healthcare Enterprise UML Architecture Specification 5-Layer Architecture
ITB Healthcare System Architecture UML Diagram
Diagram Arsitektur 5 Lapis: (1) Client & Auth Gateway (Azure AD SSO, ITB SSO, OTP), (2) Quota & Schedule Engine dengan concurrency lock, (3) Clinical Assessment Core (SRQ-20 & Family unit), (4) External Healthcare Bridging (BPJS PCare REST API & QR verification), dan (5) Relational Enterprise DB (47 tabel MySQL menangani 73k+ pasien dan 58k+ transaksi).

Concurrency & Atomic Quota

To prevent overbooking during high-demand doctor shifts, slot allocations are wrapped in transactional atomic queries with pessimistic row locking. If multiple users attempt to reserve the final remaining quota simultaneously, requests are serialized safely without data corruption.

BPJS Signature & API Fallback

Bridging communications with BPJS PCare use cryptographic HMAC authorization headers generated per-request with UTC timestamp validation. Network timeouts or service downtimes trigger automated retry queues and graceful offline logging to prevent user booking blockage.

Normalized 47-Entity Schema

Structured 47 relational tables separating identity (`pengguna`), patient medical masters (`pasien`), family hierarchies (`keluarga_pasien`), doctor shifts (`shift`, `jadwal_layanan`), and transactional event logs (`log_reservasi`, `log_reservasi_mcu`, `log_srq20`) to maintain 3NF normalization.

Interactive Showcase

System Features & User Journeys

Explore the core functional modules of the ITB healthcare platform through live UI captures.

Platform Showcase: Core Modules Poli & Kalender
ITB Healthcare Feature Showcase
Pemesanan Layanan Poli & Kalender Interaktif: Tampilan kalender FullCalendar dengan filter poli spesialis, pemilihan dokter jaga, dan ketersediaan kuota real-time per shift layanan.
FullCalendar Quota Slot Doctor Shift Real-time
System Artifacts

Interface & Architecture Gallery

Comprehensive system screenshots capturing administrative controls, clinical workflows, and multi-user modules. Click any image to view in full resolution.

Auditability & Architecture

Engineering Decisions, Data Validation & Access Governance

Institutional single-source-of-truth (SSOT) validation, concurrency protection across 47 MySQL tables, and strict healthcare privacy boundaries.

Data Validation & Unification Rules

SSOT Integrity
Multi-Source Identity Reconciliation: Reconciles institutional ITB SSO profiles, 16-digit NIK family dependents, and external BPJS PCare eligibility responses into a unified 73K+ patient master.
Atomic Concurrency & Anti-Double Booking: Executes database transaction locks on doctor shift quotas so parallel peak-hour requests never exceed available clinic capacity.
Automated Clinical Scoring & Barcode Verification: Deterministic SRQ-20 risk scoring rules plus signed QR codes verify authentic MCU/SKS certificates.

Key Engineering Decisions

Trade-Offs
HMAC-Signed REST Bridging with Local Caching: Validates external BPJS PCare membership via HMAC-SHA256 headers at registration checkpoints without blocking every UI interaction on external API latency.
Dual SSO + Email OTP Fallback: Supports both Microsoft Azure AD OAuth 2.0 and ITB SSO with OTP recovery so diverse campus stakeholders (students, lecturers, staff dependents) maintain verified access.
Partitioned 47-Table Schema: Separates operational booking logs (58K+ rows) from master patient identities and SRQ-20 clinical notices to preserve referential integrity and fast analytics.

Access Governance & Patient Privacy Matrix

SSO & Clinical RBAC
Institutional Role Authorized Data Scope Access Restriction & Data Sovereignty
Civitas ITB / Pasien Own profile, registered family dependents, personal queue tickets & medical PDFs Authenticated via Azure AD / ITB SSO + Email OTP; strict ownership check prevents viewing other patients' records
Dokter & Tenaga Medis Assigned polyclinic queue, SRQ-20 screening risk indicators & medical notices Scoped to scheduled shift patients only; prohibited from altering system quota policies or cross-unit admin configs
Admin Poli / UPT Kesehatan Shift quota orchestration, BPJS sync audit logs & MCU/SKS institutional reporting Audited administrative trace across reservations without raw SSO password exposure

Why This Matters for Machine Learning & Applied AI Engineering

In real-world enterprise environments, machine learning systems do not operate in a vacuum. A model is only as effective as the software infrastructure that feeds it data, enforces concurrency, and integrates its predictions into production workflows.

Developing and maintaining the ITB healthcare platform gave me hands-on mastery over transactional consistency across 47 relational tables, high-throughput slot matching algorithms, and enterprise API bridging (BPJS & Azure AD). This provides the exact foundation required of a T-Shaped Machine Learning Engineer: the rare ability to build sophisticated predictive systems while possessing the software engineering rigor to deploy and scale them reliably for tens of thousands of real users.