How hima121k/health-care-summary works
Dynamic Intake Co-Pilot is implemented as a React client backed by a FastAPI service. Patients register or log in, chat with an AI intake assistant, and submit a generated SOAP note as a draft; physicians review and edit drafts, then approve and save them. The sampled backend implements authentication, Gemini requests, and Firestore operations in one file. The README describes a Streamlit version and additional deployment details that do not match the supplied tree, so this map follows the visible React/FastAPI implementation; unsampled backend routes and deployment infrastructure are not expanded.
Main entry points: App.jsx Role Router · PatientChat.jsx Patient Chat · PhysicianDashboard.jsx Review Dashboard · main.py Authentication API
Components 14
React Client
- Role Router
frontend/src/App.jsx - Login
frontend/src/components/Login.jsx - Signup
frontend/src/components/Signup.jsx - Patient Chat
frontend/src/components/PatientChat.jsx - Review Dashboard
frontend/src/components/PhysicianDashboard.jsx
API Workflows
- Authentication API
backend/main.py - Interview API
backend/main.py - SOAP Generation
backend/main.py - Draft Management
backend/main.py - Note Approval
backend/main.py
External Services
- Gemini
- Firestore
Other components
- Patient
- Physician
Connections 18
- Patient → Role Router: uses
frontend/src/App.jsx - Physician → Role Router: uses
frontend/src/App.jsx - Role Router → Login: renders
frontend/src/App.jsx - Role Router → Signup: renders
frontend/src/App.jsx - Role Router → Patient Chat: routes patient
frontend/src/App.jsx - Role Router → Review Dashboard: routes doctor
frontend/src/App.jsx - Login → Authentication API: posts login
frontend/src/components/Login.jsx - Signup → Authentication API: posts registration
frontend/src/components/Signup.jsx - Patient Chat → Interview API: posts messages
frontend/src/components/PatientChat.jsx - Patient Chat → SOAP Generation: submits transcript
frontend/src/components/PatientChat.jsx - Patient Chat → Draft Management: saves generated draft
frontend/src/components/PatientChat.jsx - Review Dashboard → Draft Management: loads drafts
frontend/src/components/PhysicianDashboard.jsx - Review Dashboard → Note Approval: submits approval
frontend/src/components/PhysicianDashboard.jsx - Authentication API → Firestore: reads and writes users
backend/main.py - Interview API → Gemini: requests reply
backend/main.py - SOAP Generation → Gemini: generates structured note
backend/main.py - Draft Management → Firestore: stores and reads drafts
backend/main.py - Note Approval → Firestore: writes visit and deletes draft
backend/main.py