How ellie3125/smart-healthcare works
Smart-Healthcare is a healthcare operations product with separate patient and staff web applications, a modular .NET API, and an internal chatbot service. The tree indicates workflows for identity, appointment scheduling, clinical encounters, billing, document uploads, and staff administration. The excerpts show frontend route composition, API module registration, and chatbot turn handling, but do not expose most endpoint-to-service or cross-service calls; those links are therefore omitted rather than inferred.
Main entry points: Program.cs API host · src/App.tsx Patient app routes · src/App.tsx Staff app routes · main.py Chat API and turns
Components 22
Patient portal
- Patient app routes
frontend/patient-web/src/App.tsx - Patient identity
frontend/patient-web/src/contexts/AuthContext.tsx - Booking and visits
frontend/patient-web/src/pages/booking/BookingDoctorsPage.tsx - Patient records
frontend/patient-web/src/pages/records/EncounterDetailPage.tsx - Patient assistant
frontend/patient-web/src/pages/assistant/ChatbotPage.tsx
Staff portal
- Staff app routes
frontend/web/src/App.tsx - Service administration
frontend/web/src/pages/admin/MedicalServicesPage.tsx - Payment lookup
frontend/web/src/pages/reception/ReceptionQueryTxnPage.tsx
Healthcare API modules
- API host
backend/src/Bootstrapper/SmartHealthcare.Api/Program.cs - Identity and patients
backend/src/Modules/IdentityPatients/IdentityPatients.Api/Controllers/AuthController.cs - Scheduling
backend/src/Modules/Scheduling/Scheduling.Application/Appointments/AppointmentChangeService.cs - Clinical care
backend/src/Modules/Clinical/Clinical.Api/ClinicalEndpoints.cs - Billing and refunds
backend/src/Modules/Billing/Billing.Api/PatientPaymentEndpoints.cs - Documents and reports
backend/src/Modules/DocumentsReporting/DocumentsReporting.Api/DocumentsEndpoints.cs
Chatbot service
- Chat API and turns
chatbot-service/app/main.py - Intent shortcuts
chatbot-service/app/router.py
Persistence and files
- Identity database
backend/src/Modules/IdentityPatients/IdentityPatients.Infrastructure/Services/AuthService.cs - Clinical database
backend/src/Modules/Clinical/Clinical.Infrastructure/Persistence/ClinicalDbContext.cs - Billing database
backend/src/Modules/Billing/Billing.Infrastructure/Persistence/BillingDbContext.cs - Document object storage
backend/src/Modules/DocumentsReporting/DocumentsReporting.Infrastructure/Storage/R2ObjectStorage.cs
Other components
- Patient
- Healthcare staff
Connections 14
- Patient → Patient app routes: uses
frontend/patient-web/src/App.tsx - Patient app routes → Patient identity: routes with auth
frontend/patient-web/src/App.tsx - Patient app routes → Booking and visits: routes to
frontend/patient-web/src/App.tsx - Patient app routes → Patient records: routes to
frontend/patient-web/src/App.tsx - Patient app routes → Patient assistant: routes to
frontend/patient-web/src/App.tsx - Healthcare staff → Staff app routes: uses
frontend/web/src/App.tsx - Staff app routes → Service administration: routes to
frontend/web/src/App.tsx - Staff app routes → Payment lookup: routes to
frontend/web/src/App.tsx - API host → Identity and patients: registers module
backend/src/Bootstrapper/SmartHealthcare.Api/Program.cs - API host → Scheduling: registers module
backend/src/Bootstrapper/SmartHealthcare.Api/Program.cs - API host → Clinical care: registers module
backend/src/Bootstrapper/SmartHealthcare.Api/Program.cs - API host → Billing and refunds: registers module
backend/src/Bootstrapper/SmartHealthcare.Api/Program.cs - API host → Documents and reports: registers module
backend/src/Bootstrapper/SmartHealthcare.Api/Program.cs - Chat API and turns → Intent shortcuts: routes intents