Overview
A case in MedMitra represents a complete patient record, including:- Patient demographic information (name, age, gender)
- Doctor’s case summary and notes
- Lab reports (PDF format)
- Radiology images (JPEG, PNG, DICOM)
- AI-generated insights and analysis
Creating a New Case
Navigate to Cases
From your dashboard, click on Cases in the navigation menu or click the New Case button on the dashboard.You’ll be directed to the cases list page where you can view all existing cases.
Click New Case
On the cases page, click the New Case button in the top-right corner to open the case creation form.
Enter Patient Information
Fill in the required patient details:
- Patient Name (required): Enter the full name of the patient
- Age (required): Enter the patient’s age in years (0-150)
- Gender (required): Select from Male, Female, or Transgender
Add Case Summary
In the Case Summary section, provide detailed information about the patient’s condition:
- Chief complaint
- Medical history
- Current symptoms
- Preliminary observations
- Any relevant context
- Free-form text
- Multiple paragraphs
- Medical terminology
Upload Medical Documents
MedMitra supports two categories of medical documents:
Lab Reports
- Accepted formats: PDF, CSV
- File size limit: 10 MB per file
- Examples: Blood tests, urinalysis, metabolic panels
Radiology Images
- Accepted formats: JPEG, PNG, DICOM (.dcm)
- File size limit: 50 MB per file
- Examples: X-rays, CT scans, MRI images
You can upload multiple files in each category. Files will be processed automatically after case creation.
Review Your Information
Before submitting, review all the information you’ve entered:
- Patient demographics are correct
- Case summary is comprehensive
- All relevant files are uploaded
- File types are correct for each category
Submit the Case
Once you’re satisfied with all the information, click the Create Case button at the bottom of the form.After submission:
The button will be disabled if required fields are missing or if a submission is already in progress.
- The case is created in the database
- Files are uploaded to secure cloud storage
- AI processing begins automatically in the background
- You’re redirected to the cases list
What Happens After Creation?
Once you create a case, MedMitra’s AI agents immediately begin processing:Initial Processing
- Case record is created with status:
processing - Files are securely uploaded to Supabase Storage
- Processing task is queued in the background
Document Analysis
- PDF lab reports are parsed using LlamaParse
- Radiology images are analyzed by the Vision Agent
- Structured data is extracted from all documents
AI Insights Generation
The Medical Insights Agent generates:
- Comprehensive case summary
- Structured SOAP notes
- Primary diagnosis with ICD-10 code
- Supporting evidence from documents
Case Status Indicators
Cases can have different statuses:Processing
AI agents are analyzing the documents and generating insights
Completed
Analysis is complete and insights are ready to view
Failed
An error occurred during processing (rare)
Form Validation
The case creation form includes built-in validation:| Field | Validation Rules |
|---|---|
| Patient Name | Required, cannot be empty |
| Age | Required, must be a number between 0-150 |
| Gender | Required, must select from dropdown |
| Case Summary | Optional, but recommended |
| Lab Reports | Optional, must be PDF or CSV, max 10MB |
| Radiology Images | Optional, must be JPG/PNG/DICOM, max 50MB |
API Implementation
Behind the scenes, case creation calls the FastAPI backend:backend/routes/case.py:43-127.
Best Practices
Writing Effective Case Summaries
Writing Effective Case Summaries
Include:
- Chief complaint and presenting symptoms
- Relevant medical history
- Current medications
- Vital signs and physical exam findings
- Timeline of symptom onset
- Overly vague descriptions
- Missing critical context
- Unrelated information
Preparing Documents for Upload
Preparing Documents for Upload
Best practices:
- Ensure PDFs are text-readable (not scanned images without OCR)
- Use high-quality radiology images
- Remove any patient identifiers if required by privacy policies
- Organize multiple files by date or test type
- Use descriptive names (e.g.,
blood-test-2024-03-01.pdf) - Include dates in filenames when relevant
- Avoid special characters
Ensuring Accurate AI Analysis
Ensuring Accurate AI Analysis
Tips for better results:
- Upload all relevant documents at once
- Provide complete case summaries
- Use standard medical terminology
- Include lab reference ranges when available
- Upload clear, well-lit radiology images
Troubleshooting
File Upload Failures
- Problem: File won’t upload
- Solutions:
- Check file size is within limits (10MB for labs, 50MB for radiology)
- Verify file format is supported
- Check your internet connection
- Try a different browser
Missing Required Fields
- Problem: Can’t submit the form
- Solution: Ensure Patient Name, Age, and Gender are all filled in
Form Freezes During Submission
- Problem: Form becomes unresponsive
- Solutions:
- Wait for the submission to complete (may take time with large files)
- Check browser console for errors
- Refresh and try again
- Contact support if issue persists
Next Steps
After creating a case:View AI Insights
Learn how to review the AI-generated analysis
Upload More Documents
Add additional files to an existing case
