How nova-technologies-p-l-c/nova-hms works
Ethiora HMS is a multi-tenant hospital management system. Staff and patients use role-specific Next.js screens; requests reach the Express/tRPC API, which resolves session and tenant context, applies protected procedures, and exposes hospital workflows backed by Prisma. Documented capabilities span patient registration and EMR, OPD, triage, clinical care, labs, pharmacy, billing, referrals, wards, administration, and platform tenancy. The graph includes these major areas, but several web pages and API routers were not sampled, so their internal calls are left unspecified.
Main entry points: src/index.ts Prisma Database · src/index.ts Express Server · nova Role-Based Web App · context.ts Request Context
Components 24
User Experience
- Role-Based Web App
apps/web/src/app/nova - Auth Client
apps/web/src/lib/auth-client.ts
API Runtime
- Express Server
apps/server/src/index.ts - Request Context
packages/api/src/context.ts - tRPC Procedures
packages/api/src/index.ts - Router Mount
packages/api/src/routers/index.ts
Care Workflows
- Patient Records
packages/api/src/routers/patient.ts - Visits and OPD
packages/api/src/routers/visit.ts - Clinical Care
packages/api/src/routers - Laboratory
packages/api/src/routers - Referrals
packages/api/src/routers - Ward Management
packages/api/src/routers
Hospital Operations
- Billing and CBHI
packages/api/src/routers/billing.ts - Pharmacy Inventory
packages/api/src/routers - Hospital Administration
packages/api/src/routers/tenant.ts
Platform Services
- Nova Tenancy
packages/api/src/routers/tenant.ts - HMIS Catalog
packages/api/src/constants/hmis-catalog.ts - Notifications
packages/api/src/routers/notification.ts - Email Service
packages/api/src/services/email.ts - Prisma Database
packages/db/src/index.ts - Session Authentication
packages/auth/src/index.ts
Other components
- Hospital Staff
- Patients
- Brevo Email
Connections 17
- Hospital Staff → Role-Based Web App: use staff screens
README.md - Patients → Role-Based Web App: use patient portal
README.md - Role-Based Web App → Express Server: call API
- Role-Based Web App → Auth Client: authenticate with
apps/web/src/lib/auth-client.ts - Express Server → Router Mount: mounts tRPC
apps/server/src/index.ts - Express Server → Request Context: creates context
apps/server/src/index.ts - Express Server → Session Authentication: mounts auth handler
apps/server/src/index.ts - Request Context → Session Authentication: resolves session
packages/api/src/context.ts - Request Context → Prisma Database: looks up role
packages/api/src/context.ts - Router Mount → tRPC Procedures: uses procedures
- Patient Records → Prisma Database: reads and writes
packages/api/src/routers/patient.ts - Visits and OPD → Prisma Database: reads and writes
packages/api/src/routers/visit.ts - Billing and CBHI → Prisma Database: reads and writes
packages/api/src/routers/billing.ts - Billing and CBHI → Notifications: creates alerts
packages/api/src/routers/billing.ts - Hospital Administration → Prisma Database: configures tenant
packages/api/src/routers/tenant.ts - Hospital Administration → HMIS Catalog: matches diagnoses
packages/api/src/routers/tenant.ts - Email Service → Brevo Email: sends email
packages/api/src/services/email.ts