POST /api/analyze-image/claude
Analyze a handoff document or whiteboard image using Claude AI to extract patient information, vital signs, medications, tasks, and clinical notes.Requires
ANTHROPIC_API_KEY in environment variables.Request
This endpoint acceptsmultipart/form-data for file uploads.
Image file of the handoff document or whiteboard. Supported formats: JPEG, PNG, WebP, GIF.
Maximum file size: 10MB.
Request Example
Response
AI-generated analysis of the handoff image, including:
- Patient overview and Shift-Level Forecast
- Current clinical status and vital signs
- Key lab/imaging findings and trends
- Active medications and treatments
- Task status (completed and outstanding)
- Safety concerns (allergies, fall risk, code status)
AI provider used for analysis. Always returns
"claude" for this endpoint.Response Example
Error Responses
Analysis Features
What Claude Extracts
The AI model (claude-sonnet-4-20250514) analyzes the image and extracts:
Patient Information
Name, age, MRN, room number, diagnosis
Vital Signs
BP, HR, SpO2, temperature, respiratory rate with trends
Clinical Data
Lab results, imaging findings, trends over time
Medications
Active medications, dosages, schedules
Tasks
Completed and outstanding tasks with priorities
Safety Info
Allergies, fall risk, code status, precautions
Shift-Level Forecast
The analysis includes a “weather forecast” for the shift:- High workload periods: Times when multiple tasks cluster
- Stable periods: Expected quiet times
- Predicted events: Anticipated lab results, scheduled procedures
- Visual timeline: Color-coded workload intensity
Trend Highlighting
The AI emphasizes trends in:- Vital signs (improving, worsening, stable)
- Lab values (rising troponin, normalizing electrolytes)
- Clinical condition (deteriorating, stable, improving)
Best Practices
Image Quality
Image Quality
- Use good lighting when photographing whiteboards
- Ensure text is legible and in focus
- Include the entire handoff document in frame
- Avoid glare and reflections
File Formats
File Formats
- JPEG/JPG: Best for photographs
- PNG: Best for screenshots or digital documents
- Keep files under 10MB
Integration
Integration
- Combine with
/api/summarize-record/claudefor comprehensive handoffs - Pass the
summaryto the record summarization endpoint asimageAnalysis - This merges whiteboard info with electronic health records
Additional Notes
This application uses Claude Sonnet 4 exclusively. The implementation does not include OpenAI integration.
