How huongni2201/ngoc_khanh_clinic_dx_nextjs works
This is a clinic-operations frontend, not a general Next.js starter: its routes and modules cover appointments, patient records, reception/check-in, billing, doctor worklists and encounters, plus organization-based health-examination batches and reporting. The APIs shown use in-memory stores and simulated latency; no persistent database or external clinical service is evidenced. The README is only the stock Next.js template. Several route and page implementations were not sampled, so uncertain wiring between those layers is intentionally omitted.
Main entry points: api/index.ts Reception API · api/index.ts Billing API · api/index.ts Patient API · use-auth.ts Auth hook
Components 22
Access
- Login route
src/app/auth/login/page.tsx - Login page
src/modules/auth/pages/login-page.tsx - Auth hook
src/modules/auth/hooks/use-auth.ts - Auth API
src/modules/auth/api/auth-api.ts
Clinic operations
- Appointments
src/modules/appointments/pages/appointments-page.tsx - Appointment API
src/modules/appointments/api/index.ts - Patient records
src/modules/patients/pages/patients-page.tsx - Patient API
src/modules/patients/api/index.ts - Reception worklist
src/modules/reception/pages/reception-page.tsx - Reception API
src/modules/reception/api/index.ts - Payment worklist
src/modules/billing/pages/payment-worklist-page.tsx - Billing API
src/modules/billing/api/index.ts
Clinical care
- Doctor worklist
src/modules/doctor/pages/doctor-worklist-page.tsx - Encounter detail
src/modules/encounters/pages/encounter-detail-page.tsx - Encounter API
src/modules/encounters/api/index.ts
Organization examinations
- Organizations
src/modules/organizations/pages/organization-list-page.tsx - Organization API
src/modules/organizations/api/index.ts - Examination batch
src/modules/health-examinations/pages/health-examination-batch-detail-page.tsx - Batch API
src/modules/health-examinations/api/index.ts - Excel export
src/modules/health-examinations/utils/export-excel.ts
Shared runtime
- Query provider
src/providers/query-provider.tsx
Other components
- Clinic staff
Connections 6
- Clinic staff → Login route: opens
- Auth hook → Auth API: calls
- Appointment API → Patient API: looks up patient
- Reception API → Patient API: looks up patient
- Billing API → Reception API: reads invoices and worklist
- Billing API → Reception API: submits payment