Skip to main content

Parivar — Module Index

A one-line directory of the 17 NestJS modules. Each row links to its full endpoint specification in the Module Reference, and to the tables it owns in the Data Model.

#ModuleResponsibilityPrimary roles
1AuthModuleOTP login, sessions, 2FA, OAuth/identity linking, account deletion/deactivation/reactivationAll
2UsersModuleProfiles, user_roles, admin invites/suspensionAdmin
3ParentsModuleParent (patient) CRUD + admission formsCustomer (write), Nurse/Doctor (read), Admin
4VisitsModuleBooking wizard, scheduling/assignment, reschedule, visit lifecycle, event timelineCustomer, Nurse, Admin, Doctor (read)
5ClinicalModuleAssessments/vitals (draft→submit→approve), wound photos, clinical report PDFsNurse (write), Admin/Doctor (review), Customer (read)
6EscalationsModuleEscalations + responses, doctor routingNurse (create), Doctor/Admin (respond)
7IncidentsModule ⚠️Risk/safety log — no incidents table in live schema; fold into EscalationsModuleNurse (write), Admin
8NurseModuleOnboarding/application, KYC (Didit), document signing, availability, working hours, leave, location/SOS, earnings, bank detailsNurse, Admin
9DoctorModuleCase-review queue, claim/respond/close, teleconsultations, read-only recordsDoctor
10AdminModuleStaff lifecycle, customer/subscription oversight, app config, monitoringAdmin / Super Admin
11HospitalModuleHospital requests + escort tasksCustomer (create), Admin
12PariAIModuleStreaming clinical-guidance chat + voice transcriptionCustomer (chat), all (transcribe)
13BillingModuleStripe checkout, customer portal, subscription lifecycle, on-demand payments, webhookCustomer, Admin (read), system
14ReferralsModuleReferral accounts, referrals, commissionCustomer (read), Admin
15NotificationsModuleIn-app notifications + transactional email dispatchAll (read own), system
16AlertsModuleAdmin operations alerts, SOS alerts, monitoring sweepsAdmin, system
17ConfigModuleapp_config, version gating, maps keyAll (read), Admin (write)

Shared providers (not domain modules)

These cut across every module and are implemented once.

ProviderResponsibility
RealtimeGatewaySocket.IO gateway; rooms for visits, escalations, alerts, SOS, locations, notifications, conversations
StorageServiceS3-compatible object storage + pre-signed URLs (reports, wound-photos, staff-documents)
MailServiceResend email dispatch via a BullMQ queue
AiServicePariAI chat + Whisper transcription behind a provider SDK
Auth guardsJwtAuthGuard, RolesGuard, DisabledUserGuard applied globally

Looking for endpoint-level detail (routes, request/response fields, guards, side effects, errors)? See the Module Reference. For the tables each module owns, see the Data Model.