Console Admin Flows
This document details the workflows for iHospita Console administrators.
Console Roles
| Role | Access Level |
|---|---|
| Super Admin | Full platform access |
| Admin | Hospital and user management |
| Support | View-only + impersonation |
| Billing | Subscription management |
Hospital Onboarding
Create New Hospital
Console Admin
│
├─→ Navigate to Hospitals
├─→ Click "Add Hospital"
├─→ Enter hospital details:
│ • Name
│ • Prefix (unique)
│ • Address
│ • Contact info
│
├─→ Configure subscription plan
├─→ Save hospital
│
▼
System automatically:
│
├─→ Creates Keycloak realm
├─→ Creates storage folder
├─→ Copies role templates
└─→ Hospital is active
Create Hospital Admin
- Navigate to hospital
- Click "Add Admin User"
- Enter user details:
- Name
- Phone
- Select role (Owner)
- Save user
- System sends welcome email
- User sets password via Keycloak
Support Workflows
Impersonation
- Navigate to hospital
- Select user to impersonate
- Click "Impersonate"
- Acknowledge audit logging
- View Portal as that user
- Maximum 1 hour session
- End impersonation when done
Troubleshooting
- Review user's recent activity
- Check audit logs
- Impersonate if needed
- Identify issue
- Document resolution
- Update knowledge base
Role Template Management
Create Role Template
- Navigate to Role Templates
- Click "Add Template"
- Enter role name
- Select permissions:
- View permissions
- Edit permissions
- Delete permissions
- Admin permissions
- Save template
Update Role Template
- Select existing template
- Modify permissions
- Save changes
- Note: Only affects NEW hospitals
Subscription Management
Create Plan
- Navigate to Subscription Plans
- Click "Add Plan"
- Enter plan details:
- Name (Starter/Pro/Enterprise)
- Price (monthly/yearly)
- Limits:
- Max clinics
- Max patients
- Max staff
- Save plan
Change Hospital Plan
- Navigate to hospital
- Click "Subscription"
- Select new plan
- Confirm change
- System updates limits
Theme Configuration
Configure Hospital Theme
- Navigate to hospital
- Click "Branding & Theme"
- Configure:
- Logo upload
- Favicon upload
- Primary color
- Secondary color
- Header/Sidebar colors
- Preview changes
- Save theme
- Changes apply immediately
Analytics & Reporting
Platform Metrics
- Navigate to Dashboard
- View key metrics:
- Total hospitals
- Active users
- Transaction volume
- Revenue
- Filter by date range
- Export data if needed
Hospital Reports
- Navigate to hospital
- Click "Analytics"
- View hospital-specific metrics
- Compare with platform average
Audit Log Review
View Audit Logs
- Navigate to Audit Logs
- Filter by:
- Date range
- User
- Action type
- Hospital
- Review log entries
- Export for compliance
Key Events Logged
- Hospital creation/updates
- User creation/updates
- Impersonation sessions
- Subscription changes
- Theme changes
- Role template changes