How santoshyalawar-hub/medcore works
MedCore HMS is a multi-tenant hospital-management frontend with a simulated backend, not a production-secure server. The user journey begins at the public hospital-discovery and registration site or login, then enters a role- and tenant-scoped workspace. There, the module router presents clinical, administrative, and platform-owner capabilities; data modules use a shared HTTP client. The README describes browser-localStorage-backed simulation, but its mock implementation files are absent from the supplied tree, so that layer and its connections are not mapped.
Main entry points: ModulePage.jsx Workspace module router · App.jsx App router and guards · parts.jsx Role-specific layouts · AuthContext.jsx Authentication context
Components 21
Entry and routing
- Public site
src/features/public/Home.jsx - Hospital discovery
src/features/public/Discovery.jsx - Public forms
src/features/public/Forms.jsx - App router and guards
src/app/App.jsx
Identity and access
- Login
src/features/auth/Login.jsx - Authentication context
src/core/auth/AuthContext.jsx - Role and feature access
src/core/rbac.js
Hospital workspaces
- Role-specific layouts
src/layouts/parts.jsx - Workspace module router
src/features/modules/ModulePage.jsx - Clinical and patient care
src/features/patient/MyAppointments.jsx - Configurable records
src/features/modules/DataModule.jsx - Role dashboards
src/features/dashboard/Dashboard.jsx - Employees and setup
src/features/employees/EmployeesPage.jsx - AI and automation
src/features/ai/AiInsightsPage.jsx - Subscription management
src/features/subscription/SubscriptionPage.jsx
SaaS platform management
- Platform administration
src/features/platform/PlatformPages.jsx
Shared application services
- HTTP client
src/core/api/http.js - Notifications
src/features/notifications/NotifyContext.jsx - Toast feedback
src/features/notifications/ToastContext.jsx
Other components
- Visitor or user
- Browser local storage
Connections 24
- Visitor or user → Public site: visits
- Public site → Hospital discovery: routes to
src/app/App.jsx - Public site → Public forms: routes to
src/app/App.jsx - Visitor or user → Login: signs in
- Login → Authentication context: calls login
src/features/auth/Login.jsx - Authentication context → Browser local storage: loads session data
README.md - Authentication context → HTTP client: sets API context
src/core/auth/AuthContext.jsx - App router and guards → Authentication context: checks user
src/app/App.jsx - App router and guards → Role and feature access: checks workspace
src/app/App.jsx - App router and guards → Login: routes unauthenticated
src/app/App.jsx - App router and guards → Role-specific layouts: renders layout
src/app/App.jsx - Role-specific layouts → Role and feature access: builds navigation
src/layouts/parts.jsx - Role-specific layouts → Notifications: shows unread count
src/layouts/parts.jsx - Role-specific layouts → Workspace module router: routes modules
- Workspace module router → Configurable records: renders tables
src/features/modules/ModulePage.jsx - Workspace module router → Clinical and patient care: renders patient care
src/features/modules/ModulePage.jsx - Workspace module router → Role dashboards: renders dashboard
src/features/modules/ModulePage.jsx - Workspace module router → Employees and setup: renders staff pages
src/features/modules/ModulePage.jsx - Workspace module router → AI and automation: renders insights
src/features/modules/ModulePage.jsx - Workspace module router → Subscription management: renders subscription
src/features/modules/ModulePage.jsx - Workspace module router → Platform administration: renders platform pages
src/features/modules/ModulePage.jsx - Configurable records → HTTP client: requests data
src/features/modules/DataModule.jsx - Platform administration → Browser local storage: uses simulated data
README.md - Notifications → Browser local storage: uses simulated data
README.md