Healthcare Technology

SEHA+

Lead Architect & Solo Developer

A multi-tenant clinic EHR built for Seha Indonesia and since handed over to the client. I took it from architecture to clinical UAT in about two weeks (around 690 commits) by running Claude Code inside my own test-gated task loop.

Tech Stack

Next.js 15TypeScriptPostgreSQLRedisPrismaNextAuth.jsRadix UITailwind CSS
SEHA+ Login Preview
Quick Preview
AI-Augmented Engineering

Architecture to UAT
in about two weeks

I ran Claude Code inside my own loop (ralph.sh): it turns the PRD into a task list, waits for my approval of the plan, then takes each task through unit, integration, E2E, edge and chaos tests before it counts as done.

Project Ralph: The Velocity Framework

To achieve extreme development speed without sacrificing quality, I engineered a custom orchestration bridge called ralph.sh.

This Rigorous Autonomous Verification loop leverages Claude Code to handle the heavy lifting: from decomposition of complex PRDs to cascading test suites (Unit → Integration → E2E → Edge → Chaos).

A task only counts as done when every stage passes. When a test fails, a healing session fixes the code and reruns that stage, up to ten attempts per stage before it stops for me.

01 DECOMPOSITION

Input: PRD.md content

Output: prd.json (Tasks, Deps, Test Config)

▼

02 PLAN REVIEW

Human-in-the-loop: User approval gate (y/n/e)

▼

03 CONTRACT DEFINITION

Output: Shared types & Interface contracts

▼

04 ITERATIVE TASK LOOP (PER TASK)

RESEARCH & IMPLEMENT

Exploration → Code Gen by Claude Code

CASCADING VERIFICATION

Unit → Integration → E2E → Edge → Chaos

On Failure: Spawn <heal.md> → Re-verify

The Challenge

Modernizing Indonesian Healthcare Infrastructure

Indonesian clinics still rely on paper-based medical records — leading to data loss, retrieval delays, and storage issues. Workflows between registration, examination, and billing are disconnected, and no digital solution exists for dental condition tracking.

With the Ministry of Health's SATUSEHAT mandate requiring all healthcare facilities to digitize and sync records, SEHA+ was built to bridge this gap — a modern, compliant clinic management system with end-to-end digital workflows.

Key Requirements

  • SATUSEHAT Integration for national health data exchange
  • Multi-tenant architecture for clinic chains
  • HIPAA-inspired security with field-level encryption
  • Full compliance with UU PDP and MOH Regulation 24/2022
  • Dental-specific features (Odontogram)
  • Real-time queue management system
Feature 01

Secure Authentication System

Role-Based Access Control

A clean login portal built with NextAuth.js v5, featuring email/password authentication with hardened hashing. The interface displays partner logos — BPJS Kesehatan, SATUSEHAT, Kemenkes RI, SNOMED CT, and HL7 FHIR — signaling compliance and interoperability. A language selector supports Bahasa Indonesia as the primary locale.

  • Six user roles: Super Admin, Admin, Doctor, Dentist, Nurse, Cashier
  • Industry-standard password hashing (OWASP recommended)
  • Partner integrations: BPJS, SATUSEHAT, SNOMED CT, HL7 FHIR
  • Bahasa Indonesia-first interface with language selector
  • Session management with configurable timeout
SEHA+ Login Page
Secure Login Portal
Feature 02

Multi-Tenant Clinic Management

Platform-Level Tenant Oversight

The Super Admin panel provides a bird's-eye view of all registered clinics. A platform summary shows total active tenants, patients, monthly visits, and revenue. Below it, a tenant overview table lists each clinic with real-time status, patient count, visit count, revenue, and last activity — with quick actions to view or manage each.

  • Platform-wide summary cards (tenants, patients, visits, revenue)
  • Tenant overview table with status, stats, and last activity
  • One-click tenant creation and management
  • Login-based tenant resolution and data scoping
  • Per-clinic view and configuration actions
SEHA+ Super Admin Dashboard
Super Admin Panel
Feature 03

Doctor's Operational Dashboard

Real-Time Clinical Overview

The doctor's dashboard greets the clinician by name and provides a real-time operational summary: waiting queue count, total visits today, patients being examined, completed patients, and average wait time. A 'My Patients Today' section links directly to the doctor's active queue, and a patient search bar enables quick lookup.

  • Real-time operational stats (queue, visits, wait time)
  • Personalized greeting with doctor's name and credentials
  • 'My Patients Today' quick-access panel
  • Global patient search bar
  • Active poli and doctor count indicators
  • Quick 'Add Patient' action button
SEHA+ Doctor Dashboard
Doctor's Operational Dashboard
Feature 04

Interactive Odontogram

Digital Dental Charting

A full dental charting module with a 4-quadrant, 32-tooth interactive diagram using FDI (ISO 3950) notation. Dentists click any tooth to select it, then choose from 10 condition types (Sehat, Karies, Tambalan, Mahkota, Bridge, Perawatan Saluran Akar, Dicabut, Hilang, Implan, Gigi Susu) and mark affected surfaces (Oklusal, Mesial, Distal, Bukal, Lingual).

  • 4-quadrant, 32-tooth interactive FDI diagram
  • 10 dental condition types with color-coded legend
  • 5-surface selector per tooth (O, M, D, B, L)
  • Per-tooth detail panel with condition history
  • Zoom, pan, and reset controls
  • Save and export odontogram data
SEHA+ Odontogram
Interactive Dental Charting
Feature 05

SATUSEHAT National Integration

Verified FHIR Data Exchange

SEHA+ integrates directly with Indonesia's SATUSEHAT platform via FHIR R4. The screenshot shows actual API logs from the SATUSEHAT developer portal — all POST requests returning 201 Created, confirming successful submission of clinical data including Organization, Location, Encounter, Condition, Observation, Medication, MedicationRequest, Composition, and PractitionerRole resources.

  • FHIR R4 resource creation verified with 201 Created responses
  • Organization and Location registration
  • Encounter, Condition, and Observation submission
  • Medication and MedicationRequest sync
  • Composition (clinical document) submission
  • PractitionerRole mapping to SATUSEHAT
SEHA+ SATUSEHAT Integration Proof
SATUSEHAT API Logs — All 201 Created
Feature 06

AI-Powered Clinical Assistant

Context-Aware Patient Support (Gemini-Powered)

A resizable assistant powered by Google Gemini that opens during an examination. It only sees the current patient's record within the clinic's tenant, streams its answers over SSE, is rate-limited per user, and keeps a partial answer if the stream breaks. Its prompt forbids definitive diagnoses: it is advisory only.

  • Patient identity and medical record lookup
  • Diagnosis history review with frequency analysis
  • Medication history, allergies and drug interaction explanations
  • Tenant-scoped context, SSE streaming, partial-answer recovery
  • Quick-action pill buttons for common queries
  • Advisory-only — all suggestions clearly disclaimed
SEHA+ AI Chatbot
AI Clinical Assistant
Technology

Built with Modern Tech

Next.js 15

Framework

TypeScript

Language

React 19

UI

Tailwind CSS

Styling

Radix UI

Components

PostgreSQL

Database

Redis

Cache

Prisma

ORM

NextAuth.js

Auth

Zod

Validation

Vitest

Testing

Docker

DevOps

Security

Enterprise-Grade Protection

Healthcare data requires the highest level of protection. SEHA+ implements field-level data encryption, comprehensive audit logging, and full compliance with Indonesian UU PDP and HIPAA-inspired security controls.

256-bit GCM

Field-level encryption

UU PDP

Indonesian data protection

MOH 24/2022

Medical record regulations

Hardened

Password hashing (OWASP)

Security Features

  • Field-level data encryption for PHI
  • Cryptographic hashing for searchable encrypted fields
  • TLS/HTTPS enforced in production
  • Comprehensive audit logging with before/after values
  • Rate limiting (100 req/min authenticated)
  • CSP, HSTS, X-Frame-Options security headers
Explore

Solo Architect. 15-Day Velocity.

Seha+ is now owned and run by Seha Indonesia, so there is no public demo here. The screenshots above are from the build I handed over.

See other projects