How navruzbek05/medcontrol works
MedControl Pro is a browser-based clinic management interface for staff. App.tsx initializes mock clinic data and holds session state, then routes the selected tab through Layout to dashboard, patient, appointment, billing, reporting, and settings views. Those views use callback props to request updates from the app; the shown data is held in React state rather than a demonstrated backend. A separate Gemini service generates preliminary diagnosis suggestions, but the excerpts do not establish which page invokes it. Feature details beyond the sampled source are represented only where supported by the tree.
Main entry points: App.tsx App state and routing · SchedulePage.tsx Appointments and visit notes · index.tsx React entry · Layout.tsx Navigation layout
Components 15
Application shell
- React entry
index.tsx - App state and routing
App.tsx - Navigation layout
components/Layout.tsx - Mock clinic data
constants.ts - Clinic domain types
types.ts
Patient care
- Patient records
pages/PatientsPage.tsx - Appointments and visit notes
pages/SchedulePage.tsx - Date picker
components/CustomDatePicker.tsx
Clinic operations
- Billing and receipts
pages/BillingPage.tsx - Staff and services
pages/SettingsPage.tsx
Reporting and assistance
- Clinic dashboard
pages/Dashboard.tsx - Clinic reports
pages/ReportsPage.tsx - Diagnosis suggestions
services/geminiService.ts
Other components
- Clinic staff
- Google Gemini API
Connections 17
- Clinic staff → React entry: opens app
- React entry → App state and routing: renders
- App state and routing → Mock clinic data: loads mock data
- App state and routing → Navigation layout: renders shell
- App state and routing → Clinic dashboard: routes to
- App state and routing → Patient records: routes to
- App state and routing → Appointments and visit notes: routes to
- App state and routing → Billing and receipts: routes to
- App state and routing → Clinic reports: routes to
- App state and routing → Staff and services: routes to
- Navigation layout → App state and routing: changes tab
- Patient records → App state and routing: requests patient updates
- Appointments and visit notes → Date picker: renders picker
- Appointments and visit notes → App state and routing: requests appointment updates
- Billing and receipts → App state and routing: requests appointment updates
- Staff and services → App state and routing: requests settings updates
- Diagnosis suggestions → Google Gemini API: requests suggestions