HMS Setup Dashboard

Quick access to setup scripts and system checks

Go to Login
Keep these tools only during setup. Remove public setup scripts before production go-live.

Import Database

Import database/clinic_system.sql with optional reset.

import_db.php
Available

User Setup

Create or reset admin and create sample users from one page.

setup_users.php
Available

Reset Tools

Open reset tools for pharmacy transactions, operational cleanup, and full item/test master resets.

setup_resets.php
Available

Numbering Checker / Repair

Check current and next billing, PO, GRN, and transfer numbers by branch and department, and reset numbering when needed.

setup_numbering.php
Available

Expiry Watch

Review batches that are near expiry or already expired for the selected branch and department.

setup_expiry_watch.php
Available

Stock Balance Checker

Inspect current stock, low stock, and expiry status grouped by medicine.

setup_stock_balance.php
Available

Duplicate Medicine Finder

Find duplicate medicine masters using the same normalized name, generic, trade, form, and strength.

setup_duplicate_medicines.php
Available

Orphan Data Checker

Check for rows that point to missing GRN, dispense, transfer, or open-stock parents.

setup_orphan_data.php
Available

Access Matrix Viewer

Review branch and department feature access flags in one place.

setup_access_matrix.php
Available

Backup / Export Tool

Download a quick JSON snapshot of core table counts before resets or imports.

setup_backup_export.php
Available

PO / GRN / Billing Repair & Audit

Audit and optionally fix PO, GRN, billing, transfer, and open stock draft numbers.

setup_po_grn_repair.php
Available

System Checker

Check PHP, extensions, storage permissions, and DB connection.

system_check.php
Available

Database Checker

Validate required database tables and key columns with row counts.

db_check.php
Available

Schema Setup

Create or repair database tables and columns once, instead of checking them on every page load.

setup_schema.php
Available

Queue Front Display

Public room display for current/next/skipped queue by doctor and session.

queue.php
Missing

Base URL: https://emr.kch.lk