AI Assistant
Gemini-powered clinical assistant for drug references, differential diagnosis support, and voice prescription.
The AI Assistant for doctors is a clinical decision support tool powered by Google Gemini. Unlike the patient-facing assistant which answers general health questions, the doctor assistant is configured with a clinical system prompt that makes it appropriate for professional medical queries — drug interaction checks, dosage references, differential diagnosis brainstorming, and clinical guideline lookups.
Use Cases
- Drug dosage reference — "What is the standard adult dose of Metformin for T2DM?"
- Drug interaction check — "Is there an interaction between Warfarin and Aspirin?"
- Differential diagnosis support — "Patient presents with fever, joint pain, and rash — differentials?"
- Clinical guideline lookup — "Latest WHO treatment protocol for uncomplicated malaria"
- ICD-10 code lookup — "What is the ICD-10 code for acute appendicitis?"
Voice Prescription Integration
The most-used AI feature is the voice prescription workflow (documented fully in the Prescriptions page). The AI assistant page also provides a standalone audio upload interface where doctors can upload pre-recorded audio files for batch transcription — useful for transcribing notes from a clinic session at the end of the day.
How the Chat Works
The doctor chat sends the full conversation history on each message to maintain context across turns. The system prompt is injected server-side and never exposed to the frontend. The model is instructed to always clarify it is an AI assistant and that responses do not substitute for clinical judgment.
| Endpoint | Input | Output |
|---|---|---|
| POST /api/ai/gemini/chat | { message, conversationHistory[] } | Markdown-formatted response |
| POST /api/ai/chat/transcribe | Audio file (multipart, max 25MB) | { text, language, success } |
| POST /api/ai/gemini/parse-prescription | { transcript } | Structured prescription JSON |
AI limitations
The AI assistant is a decision support tool, not a diagnostic authority. All clinical decisions remain the sole responsibility of the licensed medical professional. Gemini responses are not validated against real-time drug databases — always cross-reference with official pharmaceutical references for critical dosage decisions.