diff --git a/app/Views/auth/login.php b/app/Views/auth/login.php
index d89ced5..89d85e2 100644
--- a/app/Views/auth/login.php
+++ b/app/Views/auth/login.php
@@ -125,6 +125,13 @@
+
+
+
+
+
📄 About E-Atria HIMS
+
+ E-Atria Hospital Information and Management System (HIMS) is a comprehensive,
+ integrated software platform engineered to automate, coordinate, and optimise the full spectrum
+ of hospital operations — clinical, administrative, financial, and operational — within a single
+ unified digital environment.
+
+
+ The system empowers hospitals to manage every patient touchpoint with precision: from first
+ registration and outpatient consultation through laboratory investigations, pharmacy dispensing,
+ inpatient admission, surgical records, discharge summary, and post-discharge health record
+ sharing. Real-time information flows seamlessly across all departments, eliminating data silos
+ and reducing manual errors that compromise patient safety.
+
+
+ E-Atria HIMS is purpose-built for the Indian healthcare ecosystem. It is
+ fully integrated with ABDM (Ayushman Bharat Digital Mission), enabling
+ hospitals to create and verify ABHA Health IDs, generate FHIR-compliant electronic health
+ records, obtain patient consent, and share standardised clinical documents — prescriptions,
+ discharge summaries, diagnostic reports, immunisation records — directly with the national
+ health network. Clinical coding is enforced through SNOMED-CT and
+ ICD-10, ensuring interoperability and data quality across institutions.
+
+
+ Built on modern, scalable web technology (CodeIgniter 4 · PHP 8.3 · MySQL),
+ the platform is designed for reliability in production environments with multi-user concurrent
+ access, role-based security, audit trails for every sensitive change, and AI-assisted clinical
+ documentation to reduce physician workload. Compliance with NABH standards is
+ supported through structured audit logs, verification workflows, and mandatory edit-reason
+ enforcement.
+
+
+ By streamlining hospital workflows, optimising resource utilisation, and connecting every
+ department through a centralised digital platform, E-Atria HIMS significantly improves
+ operational efficiency, patient satisfaction, regulatory compliance, and data-driven
+ decision-making for the modern Indian hospital.
+
+
+
+
+
+
1. Patient Management
+
Unified patient registry — single source of truth across every department.
+
+
+
+
+ - UHID auto-generation
+ - Full demographics (name, DOB, gender, address)
+ - Age estimation from year/month
+ - Phone, email, blood group
+
+
+
+
+
+ - Name, UHID, phone, Aadhaar
+ - Old/legacy UHID (migrated records)
+ - Advanced multi-field search
+ - AJAX live search
+
+
+
+
+
+ - Aadhaar & insurance card storage
+ - ABHA (National Health ID) linking
+ - Patient photo capture & upload
+ - Document file attachments
+ - Family / guardian tracking
+
+
+
+
+
+
2. OPD — Outpatient Department
+
End-to-end outpatient workflow from appointment to e-prescription and ABDM sharing.
+
+
+
+
+ - Doctor-wise scheduling and calendar
+ - Walk-in and pre-booked slots
+ - ABDM Scan & Share QR check-in
+ - OPD queue with token display
+
+
+
+
+
+ - Vital signs (BP, pulse, temp, SpO₂, BMI)
+ - Chief complaints with structured master
+ - ICD-linked diagnosis + SNOMED-CT coding
+ - Medicines with dosage, frequency, duration
+ - Lab investigation requisition inline
+ - Clinical advice with reusable templates
+ - Drug allergy / ADR history
+ - Previous visit timeline
+
+
+
+
+
+ - AI-drafted chief complaints
+ - AI full-prescription generation
+ - Auto-fill sections from patient history
+ - AI extraction of lab values from scan images
+ - Local and cloud AI model support
+
+
+
+
🖨️
Templates, Print & Sharing
+
+ - Custom print template builder
+ - Letterhead & plain paper independently
+ - Prescription group shortcuts
+ - Referral letter PDF generation
+ - OPD invoice printing
+ - FHIR e-Prescription ABDM sharing
+
+
+
+
+
+
3. IPD — Inpatient / Admission Management
+
Complete hospital admission lifecycle from registration to discharge and FHIR sharing.
+
+
+
+
+ - Patient admission with bed assignment
+ - History of Present Illness (HPI)
+ - Multiple attending doctors
+ - Bed transfer with history
+
+
+
+
+
+ - Nursing notes by shift
+ - Bedside item charges (consumables)
+ - Doctor visit charge recording
+ - Paper form scanning & digitisation
+ - Nursing chart printing
+
+
+
+
+
+ - Bed, nursing, procedure charges
+ - Package-based billing
+ - Ayushman / insurance package mapping
+ - TPA, bank & cash payments
+ - Payment adjustments & deductions
+ - Cash balance export to Excel
+
+
+
+
+
+ - Configurable HTML editor
+ - Section templates (course, diagnosis, surgery)
+ - ICD diagnosis coding on discharge
+ - Surgery/procedure documentation
+ - Dietary advice templates
+ - Letterhead & plain paper PDF
+ - FHIR discharge bundle for ABDM
+
+
+
+
+
+ - Dept → Ward → Category → Bed hierarchy
+ - Real-time occupancy dashboard
+ - Bed maintenance logging
+ - Bed type categories (ICU, Private, etc.)
+
+
+
+
+
+
4. Diagnosis — Laboratory & Imaging
+
All diagnostic modalities with NABH-compliant verification, DICOM viewing, and AI assistance.
+
+
+
+
+
+
+
+ - Lab request from OPD, IPD, or walk-in
+ - Sample collection tracking
+ - Test parameter entry with normal-range validation
+ - Combined multi-test compiled PDF reports
+ - Lab number and TAT tracking
+ - NABH-compliant verification workflow
+ - Edit audit trail (reason required)
+
+
+
+
+
+ - Image & scan file upload per report
+ - DICOM image viewer
+ - AI-assisted DICOM diagnosis suggestions
+ - Image gallery per patient
+ - AI extraction of lab values from photos
+ - Professional letterhead & plain paper PDF
+
+
+
+
+
+
5. Pharmacy / Medical Store
+
Complete inventory management from procurement to dispensing and returns.
+
+
+
+
+ - OPD, IPD & counter-sale billing
+ - Patient, IPD and organisation-linked invoices
+ - Batch, expiry & stock visibility at POS
+ - Medicine return / credit note
+ - Group payment & discount
+
+
+
+
+
+ - Batch-level tracking with expiry dates
+ - Expiry alert reports
+ - Stock transfer between locations
+ - Stock reconciliation
+ - Merge duplicate products
+
+
+
+
+
+ - Purchase order creation & tracking
+ - Supplier invoice management
+ - Goods receipt & stock update
+ - Purchase return to supplier
+ - Supplier payment ledger
+ - Challan / delivery note
+
+
+
+
+
+
6. Billing & Finance
+
Integrated revenue cycle — from charge capture to bank reconciliation and doctor payouts.
+
+
+
+
+ - OPD, IPD, procedure & diagnostics invoicing
+ - Organisation / insurance case billing
+ - Contingent billing
+ - Discount application (% or fixed)
+ - Invoice cancellation / void
+ - Payment request & refund workflow
+ - NHCX digital insurance claim
+
+
+
+
+
+ - Cash book — daily collections by department
+ - Bank deposit tracking
+ - Bank statement reconciliation
+ - POS settlement management
+ - Cash scroll / bundle submission
+ - Doctor commission & payout management
+ - Vendor management & purchase orders
+ - Finance compliance & audit reports
+
+
+
+
+
+
7. ABDM — Ayushman Bharat Digital Mission
+
Fully integrated with India's national digital health ecosystem.
+
+
+
🪪 ABHA — Health ID
+
+ ABHA Creation (Aadhaar OTP)
+ ABHA Creation (Mobile OTP)
+ ABHA Verification
+ Profile Fetch
+ ABHA Card Display
+ Facility QR Code
+
+
+
+
+
🔗 Care Context & Linking
+
+ Patient Discovery
+ Care Context Creation
+ Scan & Share (QR)
+ HIP Linking Token
+ SMS Notification
+
+
+
+
+
📤 Health Record Sharing
+
+ e-Prescription (OPD)
+ Discharge Summary (IPD)
+ Diagnostic Report
+ Immunisation Record
+ Wellness Record
+ Health Document
+ Invoice / Billing
+
+
+
+
+
⚖️ Consent Management
+
+ Consent Request Initiation
+ Webhook Notifications
+ Consent Status Tracking
+ HIU Data Fetch
+ Consent Reconciliation
+
+
+
+
+
⚙️ FHIR & Coding
+
+ FHIR R4 Bundle Generation
+ SNOMED-CT Coding Panel
+ ICD-10 Diagnosis Coding
+ FHIR Preview Before Share
+ Coding Review & Verification
+
+
+
+
+
📡 Monitoring & Operations
+
+ Gateway Health Check
+ Bridge Log Viewer
+ Task Board
+ Background Sync Queue
+ Dead-Letter Replay
+ NHCX Insurance Claims
+
+
+
+
+
8. Reports
+
Ready-to-use clinical and administrative reports available across departments.
+
+
+ | Report | Description | Export |
+
+
+ | OPD Total Report | Daily / period OPD summary by doctor | Print |
+ | Diagnosis Report | Lab workload and TAT analysis | Print / PDF |
+ | Insurance Credit Report | Organisation outstanding dues | Print |
+ | NABH Audit Report | Compliance audit trail with edit reasons | Print |
+ | IPD Cash Balance | IPD collection summary by period | Excel / Print |
+ | Stock Report | Pharmacy inventory by item & category | Print / PDF |
+ | Expiry Report | Near-expiry and expired medicines | PDF |
+ | Supplier Ledger | Supplier account statement | Print |
+ | Bank Audit | Bank reconciliation and statement matching | Print |
+ | Doctor Payout | Commission and disbursement history | Print |
+ | Finance Compliance | Collections, deposits, POS settlements | Print |
+
+
+
+
+
9. Admin & Settings
+
Centralised configuration for the entire hospital.
+
+
+
+
+ - Doctor master (specialisation, fees, schedule)
+ - User management & role-based access
+ - Hospital profile & logo
+ - Bank & payment source master
+ - Insurance master
+ - Referral doctor master
+ - Bed / Ward / Department master
+
+
+
+
+
+ - Diagnosis print settings per modality
+ - Letterhead & plain paper independently
+ - Discharge summary HTML templates
+ - OPD prescription templates
+ - Watermark & logo configuration
+
+
+
+
+
+ - Server overview (host, OS, uptime)
+ - Live CPU / RAM / Disk gauges
+ - Services & RAID status
+ - Update HMS — git pull (60s timeout)
+ - Web server & PHP-FPM restart
+ - Server reboot & shutdown
+ - Update history with error details
+ - AJAX auto-refresh (no page reload)
+
+
+
+
+
+
10. Technology Stack
+
+
Backend
CodeIgniter 4
PHP 8.3
+
Database
MySQL / MariaDB
ACID compliant
+
Frontend
NiceAdmin
Bootstrap 5
+
PDF Engine
mPDF
Hindi font support
+
AI Engine
OpenAI-Compatible
Local & cloud
+
Health Standard
FHIR R4
HL7 compliant
+
Imaging
DICOM Viewer
Integrated
+
Health Identity
ABHA / ABDM
National Gateway
+
Clinical Coding
SNOMED-CT
+ ICD-10
+
Insurance Claim
NHCX
Digital claim exchange
+
+
+
+
11. Compliance & Standards
+
+
NABH
National Accreditation Board for Hospitals — audit trail & edit-reason enforcement
+
ABDM
Ayushman Bharat Digital Mission — certified national gateway integration
+
FHIR R4
HL7 FHIR R4 — every health record exchanged in standard format
+
SNOMED-CT
Structured clinical terminology for complaints, diagnosis & procedures
+
ICD-10
International Classification of Diseases — diagnosis & discharge coding
+
NHCX
National Health Claim Exchange — digital insurance claim submission
+
Aadhaar
Identity-verified ABHA creation via Aadhaar OTP authentication
+
+
+
+
+