Skip to content
gaffercodePublic

About

Official website of Melinda Maternal & Children Hospital, designed to deliver a modern, accessible, and patient-centered digital experience, providing comprehensive healthcare information, medical services, specialist profiles, and hospital facilities.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Official RSIA Melinda DHAI Kediri logo

RSIA MELINDA DHAI KEDIRI
Maternal & Child Healthcare · Public Hospital Portal

Healthcare domain Repository implementation Deployment unverified

Waiting area at RSIA Melinda DHAI Kediri

The public website for RSIA Melinda DHAI Kediri, a maternal and child hospital in Kediri, East Java.

Architected and built by dr. Ferdi Iskandar (the Gaffer) · Sentra Artificial Intelligence

GitHub   RSIA Melinda website   Instagram   TikTok

01 / ORIGIN SIGNAL

RSIA Melinda DHAI Kediri is a maternal and child hospital at Jl. Balowerti II No. 59, Kota Kediri, East Java. According to the data in this repository, it was established on 6 June 2001 and its legal entity is PT. Adianda Melinda Putri Iskandar.

This repository holds the hospital's public portal. It brings institutional information, clinician profiles, services, facilities, educational resources, and contact and referral routes together on one responsive website.

The application is the healthcare/melindasite capsule. It handles public information and navigation, and it does not operate the hospital's clinical or administrative core systems.

The problem this product addresses

Information about the hospital is spread across service descriptions, clinician schedules, facility information, educational material, contact channels, and referral instructions. The portal gathers these on one site that visitors can navigate. Clinical decisions and patient care stay with the people responsible for them.

Intended users

  • Patients and families looking for hospital, service, facility, and clinician information.
  • Pregnant women, parents, and caregivers who want maternal and child health education.
  • Midwives, doctors, clinics, and puskesmas preparing a referral or contacting the receiving hospital.
  • Members of the public looking for admission, emergency, BPJS, and contact information.

Product scope

  • Institutional profile, history, leadership, location, and contact information.
  • Clinician directory, clinician profiles, and practice-schedule information.
  • Centers of Excellence, hospital facilities, inpatient-room information, and care packages.
  • Maternal-child educational articles and public hospital news.
  • BPJS and insurance information.
  • Fast referral pre-notification and WhatsApp-based admission/contact handoffs.
  • Optional Google Places review retrieval and optional MelindaOS public-news feed integration.

Explicit non-scope

  • Electronic medical records (EMR), clinical documentation, or patient-record storage.
  • A hospital information system (SIMRS), billing engine, or financial transaction platform.
  • A real-time appointment inventory or confirmed appointment-booking engine.
  • Automated diagnosis, treatment recommendation, clinical triage, or autonomous medical decision-making.
  • A replacement for direct emergency communication with the hospital.
  • The MelindaOS staff workspace itself. The staff portal is a separate service at https://melindaos.app.

Repository-backed content inventory

Note

The figures below come from the content and institutional data checked into this repository. None of them is a live reading of occupancy, staffing, appointments, or service availability.

Repository evidence Content represented
Institution profile Founded 6 June 2001; 42 inpatient beds; 20 neonatal boxes; 2 NICU beds.
Clinician directory 11 clinician records with explicit KB, SK, or provisional WhatsApp-confirmation states.
Clinical units 8 Centers of Excellence and clinical units.
Care catalogue 13 medical-check-up packages and flagship programmes.
Inpatient information 8 room classes, from VIP to Kelas 3 KRIS, with neonatal and NICU information.
Education 6 maternal-child educational articles documented as doctor-reviewed.
Public news 4 local news records in the repository data module.
Insurance information 12 AdMedika partner entries in the institutional content dataset.
Media 130 local hospital media assets recorded in capsule context.

Patient access Clinician discovery Referral navigation

$\color{#316FFF}{\textsf{LAYER I · PUBLIC EXPERIENCE}}$
Responsive Next.js pages for institutional information, clinician discovery, services, facilities, news, and referral navigation.

$\color{#8959F6}{\textsf{LAYER II · CONTENT & DOMAIN DATA}}$
Typed TypeScript datasets for hospital information, clinicians, clinical units, care packages, articles, news, and curated reviews.

$\color{#0F887B}{\textsf{LAYER III · EXTERNAL HANDOFFS}}$
Optional server-side Google Places and MelindaOS news integrations, plus outbound WhatsApp contact and referral handoffs.

Product objective: Give patients, families, and referring professionals one public point of access to the hospital. Clinical care, emergency response, and institutional operations stay in human hands.

02 / DOCTRINE

Important

The portal presents and organizes information and routes messages to the hospital. It does not diagnose, prescribe, or triage on its own, and it does not replace a clinician or hospital operator.

$\color{#316FFF}{\textsf{PUBLIC INFORMATION FIRST}}$
Show hospital information and navigation in a clear public interface. Anyone can use the fast-referral page without creating a website account.

$\color{#8959F6}{\textsf{REPOSITORY-OWNED CONTENT}}$
Institutional and clinical catalogue content lives in typed local data modules. Optional external sources do not replace this local baseline.

$\color{#0F887B}{\textsf{HUMAN CLINICAL AUTHORITY}}$
Educational content is for information and does not diagnose. Clinical assessment, emergency decisions, and patient care remain with qualified human professionals.

$\color{#A96C07}{\textsf{HONEST BOOKING BOUNDARY}}$
Contact and referral forms prepare WhatsApp messages. They do not create a confirmed appointment, reserve a bed, or prove that a receiving team has accepted a referral.

$\color{#E13B17}{\textsf{ONE PROBLEM, THEN DEPTH}}$
Keep the public portal to three jobs: helping people find the hospital, understand its services, and get in touch. It should not grow into an unbounded hospital operating system.

$\color{#E7187E}{\textsf{INTEGRATION STATUS}}$
Local data, optional integrations, fallback behavior, and verification status are each documented on their own. An integration that is configured in code may still not be live.

03 / PRODUCT TOPOLOGY

Public portal Clinical content Integration Verification Human authority

PRODUCT TOPOLOGY // PUBLIC EXPERIENCE & HUMAN BOUNDARY
%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%%
flowchart TB
  VISITOR["PATIENT / FAMILY / REFERRER"]
  PORTAL["RSIA MELINDA PUBLIC PORTAL"]
  ROUTES["NEXT.JS APP ROUTER"]
  CONTENT["LOCAL TYPED CONTENT"]
  OPTIONAL["OPTIONAL EXTERNAL INTEGRATIONS"]
  HANDOFF["WHATSAPP CONTACT / REFERRAL"]
  TEAM["HOSPITAL STAFF / CLINICIAN"]
  SAFETY["NON-DIAGNOSTIC INFORMATION BOUNDARY"]
  STAFFPORTAL["SEPARATE MELINDAOS STAFF PORTAL"]

  VISITOR --> PORTAL
  PORTAL --> ROUTES
  ROUTES --> CONTENT
  ROUTES --> OPTIONAL
  ROUTES --> SAFETY
  SAFETY --> HANDOFF
  HANDOFF --> TEAM
  TEAM --> VISITOR
  PORTAL -. separate service link .-> STAFFPORTAL

  classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px;
  classDef agent fill:#0D1117,stroke:#8B5CF6,color:#ffffff,stroke-width:2px;
  classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px;
  classDef core fill:#0D1117,stroke:#5B8CFF,color:#ffffff,stroke-width:2px;
  classDef surface fill:#0D1117,stroke:#22D3EE,color:#ffffff,stroke-width:1.5px;
  classDef shared fill:#0D1117,stroke:#64748B,color:#ffffff,stroke-width:1.5px;
  classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px;
  classDef data fill:#0D1117,stroke:#0EA5E9,color:#ffffff,stroke-width:1.5px;

  class VISITOR,TEAM authority;
  class PORTAL,HANDOFF surface;
  class ROUTES core;
  class CONTENT data;
  class OPTIONAL agent;
  class SAFETY control;
  class STAFFPORTAL shared;
Loading

Component map

$\color{#316FFF}{\textsf{01 · PUBLIC PAGE ROUTER}}$
Next.js App Router
Owns the public pages, dynamic detail pages, metadata, sitemap, robots output, and legacy redirects.
Implemented · src/app/

$\color{#8959F6}{\textsf{02 · DOMAIN DATA}}$
Typed TypeScript modules
Provides the hospital profile, clinicians, clinical units, care packages, articles, local news, and curated review data.
Implemented · src/data/

$\color{#0F887B}{\textsf{03 · EXPERIENCE COMPONENTS}}$
Local EasyUI adaptations
Twelve documented local React components for navigation, search, tabs, timelines, cards, counters, and interaction patterns.
Implemented · src/components/easyui/

$\color{#A96C07}{\textsf{04 · HOSPITAL EXPERIENCE}}$
Hospital-specific components
Clinician directory, fast referral, MCU catalogue, hospital directory, and homepage sections.
Implemented · src/components/hospital/ and src/components/home/

$\color{#E13B17}{\textsf{05 · SERVER INTEGRATIONS}}$
Google Places and MelindaOS news
Optional server-side retrieval with local fallback paths and explicit environment configuration.
Configured in code · live upstream state requires verification

$\color{#E7187E}{\textsf{06 · CONTACT HANDOFF}}$
WhatsApp-based communication
Admission and referral actions generate a prefilled WhatsApp URL for a human receiving team.
Implemented · outbound handoff, not an in-app transaction

Public route map

Route Responsibility
/ Homepage, hospital highlights, search entry points, and selected news.
/cari-dokter Clinician directory and specialty search.
/jadwal-dokter Clinician practice schedules.
/dokter/[slug] Individual clinician profile.
/pusat-unggulan Centers of Excellence directory.
/pusat-unggulan/[slug] Clinical unit detail.
/nest Maternal and child care experience page.
/mcu MCU, services, and programme catalogue.
/mcu/paket/[slug] Individual care package or programme detail.
/rumah-sakit Hospital facilities and inpatient information.
/rumah-sakit/[slug] Facility or unit detail.
/tentang-kami Institutional profile, history, vision, mission, and leadership.
/berita Hospital news index.
/berita/[slug] Individual news item.
/informasi-siloam/artikel Maternal-child educational article index.
/informasi-siloam/artikel/[slug] Individual educational article.
/bpjs BPJS information.
/mysiloam External patient-service navigation page.
/rujukan-cepat Fast referral pre-notification form.
/cerita-pasien Patient-story surface.
/faqs Frequently asked questions.
/hubungi-kami Hospital contact information.
/api/google-reviews Google Places review adapter with curated fallback.

Capability matrix

Capability Status Repository evidence Boundary
Institution profile and public pages 🟢 IMPLEMENTED src/data/hospitals.ts, src/app/ Repository content; not a live hospital operations feed.
Clinician directory and schedules 🟢 IMPLEMENTED src/data/doctors.ts; verification badges are explicit. Schedule changes require confirmation through the hospital.
Centers of Excellence and care catalogue 🟢 IMPLEMENTED src/data/coe.ts, src/data/mcu.ts Published catalogue does not guarantee real-time capacity.
Educational articles 🟢 IMPLEMENTED src/data/articles.ts Educational and non-diagnostic.
Local hospital news 🟢 IMPLEMENTED src/data/news.ts Four local records are checked in.
MelindaOS public-news feed 🟡 CONFIGURED / UPSTREAM UNVERIFIED src/lib/news.ts, src/lib/news-feed.ts Requires the upstream feed endpoint and environment variable.
Google Places reviews 🟡 CONFIGURED / OPTIONAL src/app/api/google-reviews/route.ts Requires both Google environment variables; curated fallback remains available.
Fast referral 🟢 IMPLEMENTED src/components/hospital/FastReferralClient.tsx Opens WhatsApp; does not record or confirm referral acceptance.
Production deployment 🔴 UNVERIFIED No deployment result is asserted by this README. Requires environment-specific release and live smoke checks.

04 / THE ENGINE ROOM

Runtime pillars

$\color{#316FFF}{\textsf{PUBLIC WEB RUNTIME}}$
Next.js 16 App Router with React 19 Server and Client Components. Tailwind CSS v4 handles the responsive styling.

$\color{#8959F6}{\textsf{CONTENT ENGINE}}$
Strongly typed local TypeScript datasets. The baseline application runs without an external runtime database.

$\color{#0F887B}{\textsf{INTEGRATION EDGE}}$
Optional Google Places retrieval, optional MelindaOS public-news feed, and outbound WhatsApp handoffs.

RUNTIME TOPOLOGY // CONTROL & DATA PLANE
%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%%
flowchart TB
  HUMAN["PUBLIC VISITOR"]
  UI["BROWSER / RESPONSIVE UI"]
  APP["NEXT.JS APP ROUTER"]
  DATA["TYPED LOCAL DATA"]
  REVIEWS["GOOGLE REVIEWS ROUTE"]
  GOOGLE["GOOGLE PLACES API"]
  NEWS["NEWS ADAPTER"]
  MELINDAOS["MELINDAOS PUBLIC FEED"]
  WA["WHATSAPP HANDOFF"]
  TEAM["HOSPITAL RECEIVING TEAM"]
  FALLBACK["CURATED / LOCAL FALLBACK"]
  CACHE["NEWS CACHE / VALIDATION"]

  HUMAN --> UI
  UI --> APP
  APP --> DATA
  APP --> REVIEWS
  REVIEWS --> GOOGLE
  REVIEWS -. unavailable / insufficient data .-> FALLBACK
  APP --> NEWS
  NEWS --> CACHE
  CACHE --> MELINDAOS
  NEWS -. no URL / feed failure .-> FALLBACK
  APP --> WA
  WA --> TEAM

  classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px;
  classDef agent fill:#0D1117,stroke:#8B5CF6,color:#ffffff,stroke-width:2px;
  classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px;
  classDef core fill:#0D1117,stroke:#5B8CFF,color:#ffffff,stroke-width:2px;
  classDef surface fill:#0D1117,stroke:#22D3EE,color:#ffffff,stroke-width:1.5px;
  classDef shared fill:#0D1117,stroke:#64748B,color:#ffffff,stroke-width:1.5px;
  classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px;
  classDef data fill:#0D1117,stroke:#0EA5E9,color:#ffffff,stroke-width:1.5px;

  class HUMAN,TEAM authority;
  class UI,WA surface;
  class APP core;
  class DATA,FALLBACK data;
  class REVIEWS,NEWS agent;
  class CACHE control;
  class GOOGLE,MELINDAOS shared;
Loading

Repository anatomy

Melinda/
├── AGENTS.md
├── CLAUDE.md
├── README.md
├── project.contract.json
├── package.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── biome.jsonc
├── next.config.ts
├── tsconfig.json
├── .env.example
├── docs/
│   ├── architecture.md
│   ├── data.md
│   ├── easyui-component-mapping.md
│   └── testing.md
├── public/
│   └── media/
│       ├── brand/
│       ├── doctors/
│       ├── facilities/
│       ├── hero/
│       ├── rooms/
│       ├── blog/
│       ├── news/
│       └── archive/
├── scripts/
│   ├── pnpm.mjs
│   └── deploy-dry-run.mjs
├── src/
│   ├── app/
│   │   ├── api/google-reviews/route.ts
│   │   ├── berita/ and berita/[slug]/
│   │   ├── bpjs/
│   │   ├── cari-dokter/ and jadwal-dokter/
│   │   ├── cerita-pasien/ and faqs/
│   │   ├── dokter/[slug]/
│   │   ├── hubungi-kami/
│   │   ├── informasi-siloam/artikel/ and artikel/[slug]/
│   │   ├── mcu/ and mcu/paket/[slug]/
│   │   ├── mysiloam/ and nest/
│   │   ├── pusat-unggulan/ and pusat-unggulan/[slug]/
│   │   ├── rujukan-cepat/
│   │   ├── rumah-sakit/ and rumah-sakit/[slug]/
│   │   ├── tentang-kami/
│   │   ├── page.tsx
│   │   ├── layout.tsx
│   │   ├── globals.css
│   │   ├── robots.ts
│   │   └── sitemap.ts
│   ├── components/
│   │   ├── easyui/
│   │   ├── home/
│   │   ├── hospital/
│   │   └── layout/
│   ├── data/
│   │   ├── hospitals.ts
│   │   ├── doctors.ts
│   │   ├── coe.ts
│   │   ├── mcu.ts
│   │   ├── articles.ts
│   │   ├── news.ts
│   │   └── reviews.ts
│   └── lib/
│       ├── news.ts
│       └── news-feed.ts
└── tests/
    ├── fixtures/
    ├── legacy-redirects.test.mjs
    ├── melinda-ssot-and-ui.test.mjs
    ├── melindaos-portal-link.test.mjs
    ├── news-feed.test.mjs
    └── siloam-portal.test.mjs

Repository boundaries

  • src/app/ owns route composition, page metadata, the sitemap, robots output, and the Google reviews API route.
  • src/data/ owns the typed local content datasets used by the public portal.
  • src/components/ contains local UI, hospital-specific, homepage, and layout components.
  • src/lib/ contains server-side news retrieval, validation, fallback, and mapping logic.
  • public/media/ contains local visual assets. The product logo used by this README is public/media/brand/logo-melinda.webp.
  • docs/ records architecture, data behavior, component mapping, and testing.
  • project.contract.json declares the capsule lifecycle commands and local smoke-test contract.

05 / SIGNAL PATH

A request to the public portal follows a short path. A visitor opens a public route, and the application reads its local typed content. Optional integrations are called only when they are configured. The page then shows the information together with a way to reach a person at the hospital.

%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%%
flowchart TB
  VISITOR["VISITOR INTENT"]
  ROUTE["PUBLIC PAGE / SEARCH"]
  NORMALIZE["ROUTE PARAMS / FILTERS"]
  CONTENT["LOCAL DOMAIN DATA"]
  OPTIONAL["OPTIONAL EXTERNAL DATA"]
  SAFETY["NON-DIAGNOSTIC / FALLBACK CHECK"]
  DISPLAY["INFORMATION DISPLAY"]
  CONTACT["WHATSAPP / PHONE HANDOFF"]
  HUMAN["HUMAN HOSPITAL RESPONSE"]
  ESCALATE["DIRECT EMERGENCY PHONE"]

  VISITOR --> ROUTE
  ROUTE --> NORMALIZE
  NORMALIZE --> CONTENT
  NORMALIZE --> OPTIONAL
  CONTENT --> SAFETY
  OPTIONAL --> SAFETY
  SAFETY --> DISPLAY
  DISPLAY --> CONTACT
  CONTACT --> HUMAN
  VISITOR -. urgent emergency .-> ESCALATE

  classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px;
  classDef agent fill:#0D1117,stroke:#8B5CF6,color:#ffffff,stroke-width:2px;
  classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px;
  classDef core fill:#0D1117,stroke:#5B8CFF,color:#ffffff,stroke-width:2px;
  classDef surface fill:#0D1117,stroke:#22D3EE,color:#ffffff,stroke-width:1.5px;
  classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px;
  classDef data fill:#0D1117,stroke:#0EA5E9,color:#ffffff,stroke-width:1.5px;

  class VISITOR,HUMAN authority;
  class ROUTE,DISPLAY,CONTACT surface;
  class NORMALIZE,CONTENT core;
  class OPTIONAL agent;
  class SAFETY control;
  class ESCALATE danger;
Loading

Human authority

  • The portal can display information and prepare a communication handoff.
  • Opening or sending a WhatsApp message does not prove that the hospital has received, accepted, or acted on a referral.
  • The fast-referral page states that it is a preliminary, non-diagnostic notification form.
  • In an urgent emergency, the page tells the visitor to call the hospital's 24-hour IGD number while the patient is being transported.
  • Diagnosis, triage, treatment, admission decisions, and clinical prioritization remain the responsibility of human clinicians.

06 / BUILD PROTOCOL

Prerequisites

Requirement Version / value
Node.js 24.x (>=24 <25)
Package manager pnpm 11.21.0
Application framework Next.js 16.3.8
Development port 4350
Runtime database Not required by the documented baseline architecture.

Installation

node scripts/pnpm.mjs install --frozen-lockfile

Local development

node scripts/pnpm.mjs run dev

Open http://localhost:4350.

Production build and start

node scripts/pnpm.mjs run build
node scripts/pnpm.mjs run start

The production start script binds to 127.0.0.1:4350.

Configuration

Variable / file Required Scope Safe description
MELINDAOS_NEWS_FEED_URL No Server Optional URL for the MelindaOS public-news v1 feed. If it is unset, the site uses the local news dataset.
GOOGLE_PLACES_API_KEY No Server Google Places API key. Required together with the Place ID for live review retrieval.
GOOGLE_PLACE_ID No Server Google Place identifier. Required together with the API key for live review retrieval.
.env.example Reference Local environment Lists the three supported environment variables without embedding credentials.

Warning

Keep API credentials on the server. Never put these values in NEXT_PUBLIC_* variables, source code, commits, screenshots, or logs.

Verification commands

node scripts/pnpm.mjs run lint
node scripts/pnpm.mjs run typecheck
node scripts/pnpm.mjs run test
node scripts/pnpm.mjs run build
node scripts/pnpm.mjs run deploy:dry-run
node scripts/pnpm.mjs run check

check runs lint, typecheck, tests, and build in sequence. deploy:dry-run requires a completed production build.

Build architecture

$\color{#316FFF}{\textsf{FRONTEND}}$
Next.js 16 App Router, React 19, TypeScript, Tailwind CSS v4, and local responsive React components.

$\color{#8959F6}{\textsf{BACKEND / API}}$
Next.js server-side rendering and one repository-owned API route: GET /api/google-reviews.

$\color{#0F887B}{\textsf{AI / AUTOMATION RUNTIME}}$
This public website repository declares no autonomous agent and no clinical AI runtime.

$\color{#A96C07}{\textsf{DATA / INTEGRATION}}$
Typed local TypeScript data, optional Google Places retrieval, optional MelindaOS news feed, and outbound WhatsApp links.

$\color{#E13B17}{\textsf{SECURITY}}$
Credentials for the optional integrations are handled on the server. Data boundaries are local, fallback behavior is explicit, and the documented baseline has no application-owned runtime database.

$\color{#E7187E}{\textsf{DEPLOYMENT}}$
A deployment dry-run script exists. The repository evidence reviewed for this README does not establish a verified hosting target, a production release, or an executed rollback.

Promotion state

%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%%
flowchart LR
  SOURCE["SOURCE CHANGE"]
  INSTALL["FROZEN INSTALL"]
  CHECKS["LINT / TYPE / TEST"]
  BUILD["PRODUCTION BUILD"]
  DRYRUN["DEPLOY DRY-RUN"]
  REVIEW["RELEASE REVIEW"]
  TARGET["DEPLOYMENT TARGET"]
  LIVE["LIVE SMOKE TEST"]
  UNKNOWN["DEPLOYMENT NOT VERIFIED"]
  ROLLBACK["ROLLBACK PLAN"]

  SOURCE --> INSTALL
  INSTALL --> CHECKS
  CHECKS --> BUILD
  BUILD --> DRYRUN
  DRYRUN --> REVIEW
  REVIEW --> TARGET
  TARGET --> LIVE
  TARGET -. target / release evidence absent .-> UNKNOWN
  LIVE -. failure .-> ROLLBACK

  classDef core fill:#0D1117,stroke:#5B8CFF,color:#ffffff,stroke-width:2px;
  classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px;
  classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px;
  classDef success fill:#0D1117,stroke:#10B981,color:#ffffff,stroke-width:2px;
  classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px;

  class SOURCE,INSTALL,BUILD core;
  class CHECKS,DRYRUN control;
  class REVIEW authority;
  class LIVE success;
  class TARGET,UNKNOWN danger;
  class ROLLBACK danger;
Loading

Testing matrix

Gate Command Scope Expected evidence
Lint node scripts/pnpm.mjs run lint Source, scripts, tests Biome exits 0.
Typecheck node scripts/pnpm.mjs run typecheck TypeScript project tsc --noEmit exits 0.
Tests node scripts/pnpm.mjs run test Node test suites All tests pass, including data integrity and route behavior.
Build node scripts/pnpm.mjs run build Next.js production compilation Production build exits 0.
Deploy dry-run node scripts/pnpm.mjs run deploy:dry-run Built static JavaScript artifacts .next/BUILD_ID exists and the script detects none of its configured server-only secret-name markers in static JavaScript.
Combined check node scripts/pnpm.mjs run check Lint, typecheck, tests, build All four stages exit 0.

07 / THE SENTRA OPERATING STANDARD

Caution

The fast-referral form is a preliminary communication aid. It is not an emergency dispatch system or a clinical triage system. Never infer a high-impact clinical decision from a website form submission or from automated page output.

Interrogation Required answer
What specific problem does this solve? Public access to hospital information, a way to find clinicians and understand services, and a faster first contact for referrals.
Who owns final authority? People at the hospital. Clinicians make the clinical decisions, and authorized hospital staff handle the operational response.
What is outside scope? Patient-record management, diagnosis, treatment, autonomous triage, confirmed appointment inventory, and automated referral acceptance.
What can fail? The external feed or Google Places can be unavailable, cached news can go stale, the environment configuration can be invalid, the WhatsApp or network handoff can be unavailable, and a build or the runtime can fail.
How is it verified? Run the documented lint, typecheck, test, build, and deploy-dry-run commands, then run browser and integration smoke tests in the target environment.

08 / SENTRA FOUNDATION · AGENT-FIRST ENGINEERING

Sentra Artificial Intelligence maintains the Melinda public portal as a standalone healthcare capsule in its engineering ecosystem.

$\color{#A96C07}{\textsf{Human-Governed}}$ · $\color{#8959F6}{\textsf{Agent-Executed}}$ · $\color{#0F887B}{\textsf{Machine-Enforced}}$.

The capsule has its own package manifest, lockfile, workspace configuration, TypeScript configuration, Biome configuration, and project.contract.json. Its lifecycle commands run through scripts/pnpm.mjs, and the documented baseline needs no packages or runtime configuration from a parent monorepo.

The repository's AGENTS.md identifies this project as a SAFRS v1.1 standalone capsule. That declaration states architectural intent and repository policy. On its own it does not prove that an empirical extraction has succeeded.

Sovereignty status: 🟡 CONTRACT DECLARED · EXTRACTION CERTIFICATION NOT ASSERTED.

Sentra Artificial Intelligence Human Governed Agent Executed Machine Enforced

09 / SENTRA DIVISIONAL HOME

Healthcare division
$\color{#0C8598}{\textsf{SENTRA HEALTHCARE}}$
Repository domain classification for healthcare and hospital-facing digital systems.

Melinda public portal
$\color{#8959F6}{\textsf{RSIA MELINDA DHAI KEDIRI PORTAL}}$
The hospital's public institutional website. It covers hospital information, maternal and child services, and ways to get in touch.

The capsule identifier is healthcare/melindasite. The separate MelindaOS staff platform is linked as an external service and is not part of this repository's runtime.

10 / SECURITY · TRUST · DATA BOUNDARY

Security overview

This is a public hospital information website. The repository's documented baseline uses local typed content and needs no external runtime database. Each optional server-side integration brings an external trust boundary and an availability dependency of its own.

$\color{#316FFF}{\textsf{AUTHENTICATION / AUTHORIZATION}}$
The information pages are open to the public. The MelindaOS staff workspace is a separate service. The fast-referral page does not require a website account.

$\color{#8959F6}{\textsf{SENSITIVE DATA}}$
The fast-referral form can include a patient name or initials, age or gestation, contact details, destination unit, and a short clinical summary. The form's content goes into an outbound WhatsApp message.

$\color{#0F887B}{\textsf{SECRETS}}$
Google Places credentials and the optional feed URL are set in the server environment. Never expose credentials in client bundles, and never commit real secrets.

$\color{#A96C07}{\textsf{PRIVILEGED ACTIONS}}$
The website does not authorize clinical actions, admission decisions, or referral acceptance. These remain with the hospital team responsible for them.

Referral and privacy boundary

The referral form builds a message in the browser and opens a WhatsApp URL. The form is never submitted to an application-owned database, and the repository provides no durable referral record.

Because the generated message may contain identifiable or clinically sensitive information:

  • Share only the minimum information needed for the initial coordination.
  • Follow the hospital's approved communication, privacy, and referral procedures.
  • Do not treat opening WhatsApp as proof of delivery, acknowledgement, or acceptance.
  • For urgent emergencies, call the IGD telephone number directly, as the page instructs.

This README claims no privacy certification, regulatory certification, or security audit beyond what the repository evidences.

External trust boundaries

  • Google Places is an external data provider. The API route falls back to curated review data if live retrieval is unavailable or insufficient.
  • The MelindaOS public-news feed is an optional external server-side dependency. Its availability and production readiness must be verified independently.
  • WhatsApp is an external communication destination. The portal controls neither message delivery nor whether a person responds.
  • Treat public content and user-submitted text as untrusted input at their respective boundaries.

11 / API · INTEGRATION SURFACE

Repository-owned API

Method / interface Route / channel Responsibility Auth / trust Failure behavior
GET /api/google-reviews Returns Google Places reviews when both environment variables are configured and enough review text is available. Server-side Google Places credential; external API is trusted only as a data source. Returns curated fallback reviews if configuration is absent, retrieval fails, or fewer than two usable reviews are returned.

External integration contracts

Interface Configuration Data behavior Status
Google Places API GOOGLE_PLACES_API_KEY + GOOGLE_PLACE_ID Retrieves rating, review count, review text, and Google Maps URI. Public display labels are reduced to initials and a masked reviewer label. Optional; code implemented, live credentials not verified here.
MelindaOS public news MELINDAOS_NEWS_FEED_URL Reads the public-news v1 JSON feed, validates its shape, and maps feed items into the local news presentation model. Optional; upstream endpoint readiness is unverified.
WhatsApp Admission Hospital WhatsApp number in HOSPITAL_INFO Creates prefilled contact, booking-enquiry, or referral messages and opens the external WhatsApp destination. Outbound handoff; no delivery acknowledgement in the application.
Telephone Hospital admission / IGD phone value in HOSPITAL_INFO Uses a tel: link for direct calling from supported devices. Outbound handoff; carrier and human response are external.

MelindaOS news integration status

The website code includes the optional MelindaOS public-news feed adapter. According to the repository handoff dated 30 November 2026, the matching MelindaOS feed endpoint, staff editor, and migration were still on a separate branch at that time and had not been merged or applied.

Treat the integration as CONFIGURED IN THIS REPOSITORY / UPSTREAM UNVERIFIED until the upstream service is deployed, the environment variable is configured, and an end-to-end feed smoke test succeeds.

12 / DATA · PERSISTENCE · OBSERVABILITY

$\color{#316FFF}{\textsf{DATA}}$
Strongly typed TypeScript modules under src/data/ hold the institutional profile, clinician records, clinical units, MCU catalogue, articles, local news, and curated reviews.

$\color{#8959F6}{\textsf{PERSISTENCE}}$
The documented baseline architecture needs no external runtime database. Referral form fields are composed into a WhatsApp URL, and the site saves no record of them.

$\color{#0F887B}{\textsf{OBSERVABILITY}}$
The news adapter writes the reason for a feed failure to the server logs. This repository documents no dedicated distributed tracing, metrics, or centralized audit-log infrastructure.

Data ownership map

Module Responsibility
src/data/hospitals.ts Hospital identity, address, contact information, branches, rooms, history, and leadership.
src/data/doctors.ts Clinician profiles, specialties, schedule entries, and explicit verification states.
src/data/coe.ts Centers of Excellence and clinical-unit catalogue.
src/data/mcu.ts Medical check-up packages and flagship care programmes.
src/data/articles.ts Maternal-child educational content and related institutional information.
src/data/news.ts Local public news fallback records.
src/data/reviews.ts Curated fallback review records.

News cache and fallback behavior

The optional MelindaOS news adapter is documented to behave as follows:

  1. If MELINDAOS_NEWS_FEED_URL is unset, the site uses the local src/data/news.ts dataset.
  2. If configured, the server requests the public-news v1 feed and validates the response before mapping it into the website's news model.
  3. The last feed that passed validation is cached with a 300-second revalidation interval.
  4. If a refresh fails, the last good cached value is kept when one exists.
  5. With a cold cache and an unavailable or invalid feed, the adapter can fail to produce a fresh feed result. The local homepage helper has an additional local fallback, but feed-dependent news pages must still be tested under cold-cache and outage conditions.
  6. A withdrawn item is not guaranteed to disappear immediately. Cache refresh and page revalidation can delay its removal, and a page that has not been visited can retain its previous rendered copy until its next request.

The cache behavior depends on how Next.js 16.3.8 implements unstable_cache. The repository handoff notes that this API is deprecated and asks for the behavior to be verified again after a Next.js upgrade.

13 / FAILURE MODES · LIMITATIONS · TROUBLESHOOTING

Known failure modes

Failure Observable behavior Practical response
Google Places credentials absent API returns curated fallback review data. Confirm both server environment variables if live reviews are intended.
Google Places request fails Curated fallback is returned after the external request path fails. Check Place ID, API credential, provider access, and server logs.
MelindaOS feed URL unset Local news records are used. Expected baseline behavior; no upstream dependency is required.
MelindaOS feed unavailable with a warm cache The last good feed can continue to be served while refresh fails. Restore the upstream feed and verify a successful refresh.
MelindaOS feed unavailable with a cold cache Feed-dependent rendering or a fresh build can fail when the feed is required. Verify upstream availability before enabling the variable for a build or release.
WhatsApp unavailable or not installed The external handoff may not complete. Use the displayed hospital telephone channel, especially for urgent emergencies.
Deploy dry-run reports missing build artifact .next/BUILD_ID is absent. Run the production build successfully before the dry-run.

Known limitations

  • Clinician schedules and service catalogues are repository content. They do not reflect live appointments or capacity.
  • Verification badges in the clinician dataset are not uniform. The UI must keep KB-verified, SK-verified, and provisional WhatsApp confirmation distinct.
  • The fast-referral form is a pre-notification aid. It does not persist submissions, track acknowledgement, or confirm clinical acceptance.
  • The optional MelindaOS feed depends on an external upstream service and has documented cache and takedown delays.
  • The news cache currently uses Next.js unstable_cache, so its behavior must be retested whenever Next.js is upgraded.
  • A successful local build proves neither that a production deployment succeeded nor that the production domain is serving this commit.
  • The repository does not document a dedicated monitoring, tracing, or centralized audit platform.

Troubleshooting guide

Live Google reviews are not appearing

  1. Confirm GOOGLE_PLACES_API_KEY and GOOGLE_PLACE_ID are both configured in the server environment.
  2. Confirm the credential has access to the required Google Places API.
  3. Inspect server-side request errors and confirm that the Place ID resolves to the intended hospital listing.
  4. Curated fallback data is the expected result when the live response is unavailable or insufficient.

MelindaOS news is not updating

  1. Confirm the upstream public-news v1 endpoint is deployed and responds with the expected contract.
  2. Confirm MELINDAOS_NEWS_FEED_URL points to that endpoint in the server environment.
  3. Check the feed response schema and the server log prefix [news] feed unavailable.
  4. Allow for the 300-second cache and revalidation interval, and for the documented delay before a withdrawn item disappears.
  5. Test both warm-cache outage and cold-cache startup before enabling the integration in production.

The production dry-run fails

  1. Run node scripts/pnpm.mjs run build.
  2. Confirm .next/BUILD_ID exists.
  3. Re-run node scripts/pnpm.mjs run deploy:dry-run.
  4. Review the reported artifact and secret-marker result. The script checks static artifacts narrowly and is no substitute for a complete security audit.

14 / OFFICIAL SPONSOR & INSTITUTIONAL CONTEXT

The repository's current project metadata declares no external sponsor for this website.

The product is the public portal of RSIA Melinda DHAI Kediri. A local institutional news item describes a collaboration between RSIA Melinda DHAI and Sentra AI on the separate MelindaOS hospital-governance platform. This README does not treat that item as a sponsorship claim for this website.

15 / OPEN CHANNEL

Official website Instagram TikTok

Admission / WhatsApp: +62 811-3650-101
24-hour IGD: 0354-691016
Address: Jl. Balowerti II No. 59, Kota Kediri, Jawa Timur 64121

Warning

In an emergency, call the IGD telephone number directly. Do not rely on a website form or an asynchronous message.

16 / ACTIVE STACK

$\color{#316FFF}{\textsf{NEXT.JS 16.3.8}}$
App Router, server rendering, route metadata, redirects, sitemap, and server-side integration handlers.

$\color{#8959F6}{\textsf{REACT 19.2.8}}$
Server and Client Components for the public user interface and interactive experiences.

$\color{#0F887B}{\textsf{TYPESCRIPT 5.9.3}}$
Typed domain data, route components, and integration contracts.

$\color{#A96C07}{\textsf{TAILWIND CSS 4.3.3}}$
Responsive utility styling and local design-token implementation.

$\color{#E13B17}{\textsf{NODE.JS 24}}$
Declared runtime range: >=24 <25.

$\color{#E7187E}{\textsf{PNPM 11.21.0}}$
Package management, frozen-lockfile installation, and repository lifecycle commands.

$\color{#0C8A61}{\textsf{BIOME 2.5.7}}$
Linting and static code checks for source, scripts, and tests.

$\color{#0B81B6}{\textsf{PLAYWRIGHT TEST 1.62.1}}$
Declared as a development dependency to support browser testing.

$\color{#0C8598}{\textsf{LUCIDE REACT 0.576.0}}$
Icon primitives used by the React interface.

$\color{#697A93}{\textsf{POSTCSS / TAILWIND POSTCSS}}$
CSS processing and Tailwind v4 integration.

17 / INSTRUMENTATION

ACTUAL TECHNOLOGY SURFACE · RSIA MELINDA DHAI KEDIRI PORTAL

Languages and runtimes
$\color{#316FFF}{\textsf{LANGUAGES &amp; RUNTIMES}}$
TypeScript, JavaScript, Node.js 24, and CSS.

Frontend and UI
$\color{#0C8598}{\textsf{FRONTEND &amp; UI}}$
Next.js App Router, React 19, Tailwind CSS v4, local React components, and Lucide React.

Backend and API
$\color{#0F887B}{\textsf{BACKEND &amp; API}}$
Next.js server runtime and the Google reviews API route.

AI, ML, and automation
$\color{#8959F6}{\textsf{AI · ML · AUTOMATION}}$
No AI inference or autonomous clinical automation runtime is declared in this repository.

Database and storage
$\color{#0B81B6}{\textsf{DATABASE &amp; STORAGE}}$
Local typed TypeScript content and Next.js cache behavior. No external runtime database is required by the documented baseline.

DevOps, cloud, and infrastructure
$\color{#A96C07}{\textsf{DEVOPS · CLOUD · INFRA}}$
Repository build scripts and a deployment dry-run utility. A verified hosting target is not established here.

Testing and quality assurance
$\color{#0C8A61}{\textsf{TESTING &amp; QA}}$
Node test runner, data-integrity tests, route tests, Biome lint, TypeScript typecheck, Next.js build, and deploy dry-run.

Security and governance
$\color{#E13B17}{\textsf{SECURITY &amp; GOVERNANCE}}$
Capsule-level AGENTS.md, project.contract.json, server-side environment configuration, and explicit human clinical boundaries.

Observability
$\color{#697A93}{\textsf{OBSERVABILITY}}$
Server console error reporting for news-feed failures. Centralized metrics and tracing are not documented.

Integrations
$\color{#E7187E}{\textsf{INTEGRATIONS}}$
Google Places API, optional MelindaOS public-news feed, WhatsApp URL handoff, telephone links, and official social channels.

18 / CONTRIBUTION · LICENSE · SUPPORT

Contribution

This repository is private. Keep changes within the Melinda website capsule and follow the local engineering instructions in AGENTS.md and project.contract.json.

Recommended change sequence:

  1. Inspect the relevant route, component, data module, and supporting documentation.
  2. Keep public information, optional integrations, and human clinical authority separate.
  3. Make a focused change. Do not add a runtime database or a parent-repository dependency unless it is needed.
  4. Run lint, typecheck, tests, and build.
  5. Run the deploy dry-run after a successful build.
  6. Review the final diff and verify any affected public route or integration before release.

License

The repository root has no LICENSE file and no explicit open-source license declaration. GitHub metadata marks the repository as private. Do not infer any public reuse rights.

Support & security reporting

The repository declares no dedicated public channel for security reports. Do not publish secrets, patient information, or vulnerability details in public channels.

19 / VERIFICATION STATUS

The table below lists the repository evidence and what this README update verified. Updating the documentation did not run the application test suite and does not establish a production deployment.

Surface Status Evidence / command Notes
Repository contract 🟡 CONFIGURED project.contract.json Lifecycle commands and local HTTP smoke contract are declared.
Install 🟡 CONFIGURED · NOT RUN HERE node scripts/pnpm.mjs install --frozen-lockfile Requires Node 24 and pnpm 11.21.0.
Lint 🟡 CONFIGURED · NOT RUN HERE node scripts/pnpm.mjs run lint Biome command is declared in package.json.
Typecheck 🟡 CONFIGURED · NOT RUN HERE node scripts/pnpm.mjs run typecheck Runs tsc --noEmit.
Tests 🟡 CONFIGURED · NOT RUN HERE node scripts/pnpm.mjs run test Uses node --test tests/*.test.mjs.
Build 🟡 CONFIGURED · NOT RUN HERE node scripts/pnpm.mjs run build Next.js production build.
Deployment dry-run 🟡 CONFIGURED · NOT RUN HERE node scripts/pnpm.mjs run deploy:dry-run Requires .next/BUILD_ID; performs a narrow static artifact check.
Production deployment 🔴 UNVERIFIED Environment-specific release and live HTTP smoke test No successful production release is asserted by this README update.
Google Places integration 🟡 IMPLEMENTED · LIVE CONFIG UNVERIFIED GET /api/google-reviews Requires both Google environment variables for the live path.
MelindaOS news integration 🟡 IMPLEMENTED IN CODE · UPSTREAM UNVERIFIED MELINDAOS_NEWS_FEED_URL Upstream endpoint and production end-to-end behavior require separate verification.
Standalone extraction 🔴 UNVERIFIED Empirical isolated extraction test No extraction certification is claimed here.

20 / INSTRUMENTATION

ACTUAL TECHNOLOGY SURFACE · 10 ENGINEERING PILLARS · MONOREPO ABYSS

Languages & Runtimes

LANGUAGES & RUNTIMES
TypeScript 5.9 · Python 3.12+ · Node.js 22+ · PowerShell (pwsh) · SQL · Bash · HTML5 / CSS3

Frontend & UI Engine

FRONTEND & UI ENGINE
Next.js (App Router) · React 18/19 · Vue 3 · Vite · Tailwind CSS · Framer Motion · Three.js (SentraVerse) · Radix UI · Sentra Design Tokens (OKLCH) · Sentra UI · Lucide · Recharts · ApexCharts · WXT (WebExtension) · Storybook · TanStack Query · Zustand

Backend & API

BACKEND & API
FastAPI · Uvicorn / Starlette · Express.js · Flask · Frappe Framework / ERPNext · Pydantic v2 · Zod

AI ML NLP Vision

AI · ML · NLP · VISION
TensorFlow / Keras · PyTorch · Hugging Face Transformers · LangChain · LlamaIndex · OpenAI GPT-4o · Anthropic Claude · Google Gemini · Mistral AI · Tesseract.js / PyTesseract OCR · Model Context Protocol (MCP) · Assistant UI · Pandas · NumPy · BioPython · SpaCy

Database & Storage

DATABASE & STORAGE
PostgreSQL 16+ · Prisma ORM · MongoDB & Motor · MariaDB · SQLite / LibSQL · Redis · SQLAlchemy & Alembic · Supabase · AWS S3 / Cloudflare R2 · XLSX Engine

DevOps Cloud Infra

DEVOPS · CLOUD · INFRA
Docker & Docker Compose · Kubernetes (K8s) · ArgoCD (GitOps) · Terraform (IaC) · Vercel · Cloudflare Workers / Sandbox · Nginx · Git · GitHub Actions · Dependabot

Monorepo & Build Tools

MONOREPO & BUILD TOOLS
Turborepo 2.9 · pnpm Workspaces 9.15 · Changesets · tsx & esbuild · Rollup · SWC

Testing & QA

TESTING & QA
Vitest & Vitest UI · Playwright (E2E) · Jest · React Testing Library · Pytest · Supertest · Axe Core A11y

Security & Governance

SECURITY & GOVERNANCE
Husky 9 · lint-staged · ESLint 9 (Flat Config) · Prettier 3 · Stylelint 17 · CodeQL SAST · Indonesian PHI Gate Scanner · Secret Scan Gate · App Independence Validator · CRP Healthcheck

Medical & Harvester

MEDICAL & HARVESTER
JATS XML Parser Engine · SHA-256 Source Hasher · PDF Extraction Engine · PubMed / Europe PMC Harvester · Clinical Knowledge Registry

Dedicated to Aldebaran, Aimee, Audrey, and Del — & the Indonesia Healthcare Ecosystem.
Sentra Artificial Intelligence · Built in the depth, deployed at the bedside.
// the surface is documentation. the depth is running.

About

Official website of Melinda Maternal & Children Hospital, designed to deliver a modern, accessible, and patient-centered digital experience, providing comprehensive healthcare information, medical services, specialist profiles, and hospital facilities.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages