This roadmap outlines the high-level implementation order in small, incremental phases.
- Initialize Hono + Vite + TypeScript project.
- Create a basic "Hello World" API endpoint.
- Set up the basic layout and navigation component.
- Define Drizzle schema for Patients, Visits, Ailments, and Treatments.
- Set up SQLite with
better-sqlite3. - Implement seed data for core ailments and treatments.
- Implement
POST /api/patientsfor agent registration. - Implement
GET /api/patientsandGET /api/patients/:id. - Add basic API key authentication.
- Implement
POST /api/visits(synchronous triage, diagnosis, and prescription). - Integrate LLM calls for the diagnosis engine.
- Implement
POST /api/visits/:id/followup.
- Build the Patient Directory page.
- Build the Patient Detail page with a vertical visit timeline.
- Implement visit state color-coding (Resolved/Unresolved).
- Implement treatment effectiveness calculation logic.
- Build the Clinic Overview dashboard with resolution rate trends.
- Implement ailment frequency and severity analytics.
- Implement background jobs for visit expiration and chronic condition flagging.
- Set up SSE for real-time dashboard updates.
- Add the Referral queue and Alerts page.