NightCoders
Portfolio

5/3/2026

RSJ Aceh: The Hospital Management System That Cut Administrative Time by 60%

See how NightCoders built a hospital management system for RSJ Aceh that reduced administrative time by 60% with role-based access.

By fathin@nightcoders.id

RSJ Aceh: The Hospital Management System That Cut Administrative Time by 60%

The Problem

RSJ (Rumah Sakit Jiwa) Aceh is a psychiatric hospital serving the Aceh province of Indonesia. With hundreds of active patients, multiple wards, and strict healthcare reporting requirements, their paper-based system was creating dangerous bottlenecks.

Every patient file was a physical folder. Every discharge was a manual process. Every report was a spreadsheet.

The staff were dedicated to patient care but drowning in paperwork.

The Challenge

Healthcare administration is life-critical. The existing system had serious gaps:

Patient Files

Physical files were hard to locate, update, and secure

Lost or misplaced files delayed care

No backup - if a file was lost, the data was gone

Discharge Processes

Manual and error-prone checkout process

Bed turnover delays meant patients waited for hours

No tracking of who approved what

Data Visibility

No centralized view of patient history across departments

Disconnected notebooks and spreadsheets

No longitudinal tracking of treatment progress

Security & Access

Everyone saw everything - no role-based access

Privacy risks with sensitive patient data

No audit trail for compliance

Peak Hours

Admission backlogs during busy periods

Data entry delays lasting days

Staff overtime for simple tasks

Nurses and doctors were spending more time on paperwork than patient care. This is a psychiatric hospital - patients need attention, not bureaucratic delays.

Our Approach

Workflow Mapping First

We shadowed nurses, doctors, and admin staff for a full week:

Mapped every step from admission to discharge

Identified bottlenecks and pain points

Understood the actual workflow, not the theoretical one

We discovered that the discharge workflow was the biggest bottleneck. Fixing it would:

Free up beds faster

Reduce staff overtime

Improve patient flow

Role-Based by Design

We designed the system with five distinct roles, each with precisely scoped permissions:

Doctor - Full patient history, treatment plans, prescriptions

Nurse - Vitals, medication, daily notes

Admin - Admissions, discharges, bed management

Support - Scheduling, records retrieval

Superadmin - System configuration, reporting

No one sees more than they need. This is healthcare - privacy is not optional.

Mobile-Ready for Ward Rounds

Nurses carry tablets during rounds. We optimized for that reality:

Touch-friendly buttons (minimum 44px tap targets)

Offline-capable forms for areas with poor connectivity

Quick-scan patient lookup (QR code or ID number)

Large text for readability at bedside

What We Built

Patient Management

Digital Patient Registry Complete patient list with advanced filtering by:

Status (admitted, discharged, transfer)

Ward (male, female, intensive)

Admission date range

Diagnosis category

Find any patient in under 3 seconds. No more searching through folders.

Profile Management Complete patient profiles including:

Medical history

Guardian/contact information

Admission details

Insurance information

Emergency contacts

Structured Discharge Workflow Step-by-step discharge process:

Doctor marks discharge approval

Nurse completes final checklist

Admin processes bed release

Family/guardian pickup confirmation

Bed marked available

No steps skipped. No papers lost.

Evaluation Tracking Create, schedule, and review patient evaluations:

Scheduled follow-ups

Chronological history views

Treatment progress over time

Outcome tracking

Dashboard & Analytics

Overview Cards Key metrics at a glance:

Total patients currently admitted

Admissions today

Pending discharges

Critical cases requiring attention

Trend Charts Visualizations for:

Admission patterns over time

Ward occupancy rates

Average length of stay

Evaluation outcomes

Real-Time Notifications Alerts for:

New admissions

Pending tasks requiring action

Discharge approvals

System events

Security & Access

JWT Authentication Secure login with:

Session management

Password requirements

Automatic logout on inactivity

Role-Based Access Control Different permissions for different roles:

Doctors see full history

Nurses see vitals and medication

Admins see operational metrics

Audit Trail All data changes logged with:

User who made the change

Timestamp of change

What was changed

Previous value

Technical Implementation

Layer

Technology

Frontend

Next.js, React, Tailwind

Charts

Recharts

Notifications

Sonner

Auth

JWT with bcrypt

Database

PostgreSQL

Deployment

Docker Compose

Key Features

Offline-ready - works during connectivity issues

Quick lookup - find patients by ID, name, or ward

Bed management - real-time bed availability

Reporting - automated compliance reports to government

The Results

Efficiency

60% reduction in administrative time per patient admission

40% faster bed turnover through structured discharge workflows

3-second patient lookup instead of minutes searching

Data Integrity

Zero lost patient files since go-live

Complete audit trail for compliance

Real-time accuracy - everyone sees current data

User Experience

Tablet-optimized UI for bedside data entry

Reduced cognitive load for staff

More time for patient care and less for paperwork

Business Impact

Faster patient flow - more patients served

Lower administrative costs - fewer overtime hours

Compliance ready - audit-ready documentation

RSJ Aceh vs Manual Process

Metric

Manual

RSJ System

Patient Lookup

Minutes

3 seconds

Discharge Time

Hours

Minutes

Data Backup

None

Automatic

Audit Trail

Manual logs

Automatic

Administrative Time

Full role

60% reduction

What This Proves About NightCoders

We build systems where accuracy and speed save lives.

Healthcare software is not like other software:

A wrong data entry has consequences

A delayed discharge affects care

A lost file is a privacy violation

We understand the gravity of these workflows. We design interfaces that reduce cognitive load while increasing data integrity.

Need an MVP like this?

NightCoders helps founders ship real MVPs in 4 weeks. Book a free 15-minute fit call and we will map your sprint.

Related posts