Build Guide / 04
Feature modules
src/pages/ is organized by hospital department, not by
technical layer. Seventeen module folders plus a set of top-level pages
for OPD/IPD/Pharmacy cover the day-to-day of running the hospital.
Clinical operations
OPD
Appointments, consultation, billing, invoice list & updates for outpatients.
IPD
Admission, bed status & management, discharge, per-patient billing, discounts, floor map.
doctor-portal 9 files
Doctor-facing views: schedule, consultations, patient history.
nurse-station 6 files
Ward-level patient tracking and clinical entries.
radiology 4 files
Imaging orders and DICOM viewing via Cornerstone.
lis 6 files
Laboratory Information System: test orders and results.
Money
Diagnostic billing
Setup, invoicing, invoice updates for lab/imaging charges.
Pharmacy billing
Prescription queue, invoicing, clearance, inventory, suppliers, purchase orders.
accounts 7 files
Ledgers and financial reporting across the hospital.
Due & refund flows
Due collection, due invoice list, bill cancel/refund, cancelled/refunded invoice lists.
stores 16 files
Inventory, suppliers, wastage entry, store-level reporting.
referral 7 files
Referring-doctor registration and commission handling.
People & operations
hr 8 files
Employees, attendance, leave, payroll (backed by dedicated hooks).
admin 14 files
Users, roles, hospital-wide settings.
mis 7 files
Management Information System: cross-department dashboards.
management 2 files
High-level oversight views.
report-delivery 5 files
Getting diagnostic/lab reports to patients or referring doctors.
integration 9 files
Connections to outside systems and services.
Public & internal-tools
patient-portal 9 files
A separate authenticated experience for patients — own context provider, own notification system.
registration 2 files
New patient intake.
developer-zone 5 files
Internal diagnostics: Firebase connection checks, system information.
data-management 1 file
Bulk data operations.
Beyond the module folders, top-level pages in src/pages/ handle
shared concerns: AuthPage, UserManagement,
SystemInformation, LiveDisplay (waiting-room
signage), and SoftwareAttributes (licensing/branding info).