Overview
MedMitra’s case management system provides a centralized platform for healthcare providers to create, organize, and track patient cases. Each case contains patient information, medical documents, and AI-generated insights all in one place.Key Features
Create Cases
Quickly create new patient cases with demographic information and initial assessments
Document Upload
Attach lab reports and radiology images directly to patient cases
Case Tracking
Monitor case status from creation through analysis completion
Retrieve Insights
Access AI-generated insights, SOAP notes, and diagnostic recommendations
Creating a New Case
Cases are created through the/cases/create_case endpoint with the following information:
Required Information
- Patient Name: Full name of the patient
- Patient Age: Age in years
- Patient Gender: Gender identity
- User ID: Healthcare provider’s identifier
Optional Information
- Case Summary: Initial clinical notes or chief complaint
- Lab Files: Laboratory reports (PDF format)
- Radiology Files: Medical imaging files
Example Workflow
- Generates a unique case ID (UUID)
- Uploads files to secure storage
- Initiates background AI analysis
- Returns case details with file references
backend/routes/case.py:43-122
Retrieving Cases
Get All Cases
Retrieve all cases for a specific healthcare provider:backend/routes/case.py:131-143
Get Specific Case
Retrieve detailed information about a specific case:- Complete case details
- All attached files with metadata
- AI-generated insights (if analysis is complete)
backend/routes/case.py:146-165
Case Status Flow
Cases progress through the following states:File Management
Supported File Types
Lab Documents- PDF reports
- Text-based laboratory results
- Stored with extracted text for analysis
- JPEG, PNG medical images
- DICOM files
- Processed with vision AI for findings extraction
File Storage Structure
Files are organized by category and case:lab_files/917034a2-c50e-48f4-8289-963ad7b0ad58/blood_test.pdfradiology_files/917034a2-c50e-48f4-8289-963ad7b0ad58/chest_xray.jpg
backend/routes/case.py:68-96
Updating Cases
Cases can be updated with new information:Only non-null fields in the update request are modified. Existing data is preserved.
backend/routes/case.py:171-199
Background Processing
When a case is created, the system automatically triggers background AI analysis:- Non-blocking API responses
- Efficient resource utilization
- Real-time status updates
backend/routes/case.py:103-113, backend/agentic.py:16-124
Data Models
The case management system uses structured data models:CaseInput Model
PatientData Model
backend/models/data_models.py:8-49
Best Practices
Organizing Cases
Organizing Cases
- Use descriptive case summaries for quick identification
- Tag cases with relevant keywords
- Regular status checks for pending analyses
File Uploads
File Uploads
- Ensure PDFs are text-readable (not scanned images)
- Use high-resolution images for radiology files
- Upload all relevant documents before creating the case
Error Handling
Error Handling
- Monitor case status after creation
- Check failed cases for processing errors
- Retry with corrected files if analysis fails
Security Considerations
- All case data is associated with a user ID for access control
- Files are stored in secure cloud storage with authenticated URLs
- Case retrieval requires proper user authentication
- Patient data follows healthcare privacy standards
Next Steps
Document Processing
Learn how uploaded files are processed
AI Analysis
Understand the AI analysis workflow
