Overview
Retrieve all medical documents uploaded by a specific doctor in MediSync. This endpoint returns a list of all documents that have been uploaded by the specified healthcare provider across all their appointments.Doctor-Based Retrieval: This endpoint allows healthcare providers to view all documents they have uploaded, providing a comprehensive overview of their document management activity.
Authentication
Path Parameters
The doctor/user ID to retrieve documents for
Response
Whether the request was successful
Array of documents uploaded by the doctor
Error message if the request failed
Response Examples
Successful Response with Documents
Successful Response with No Documents
Error Response
Business Logic
- Doctor-Centric View: Provides healthcare providers with a complete view of all documents they have uploaded.
- Cross-Appointment Access: Returns documents from all appointments where the doctor has uploaded files.
- Secure Access: Only authorized users can access documents based on their permissions and the doctor ID.
- Chronological Order: Documents are typically returned in chronological order by creation date.
Error Handling
- 400 Bad Request: Invalid doctor ID format or database query error
- 401 Unauthorized: Invalid or missing authentication token
- 404 Not Found: Doctor ID does not exist (returns empty array)
- 500 Internal Server Error: Database connection or query error
Notes
- Returns an empty array if no documents are found for the doctor
- Useful for administrative oversight and doctor activity monitoring
- Document URLs are secure and require proper authentication to access
- The actual file content is not returned - use the download endpoint to retrieve file data
- Results may be paginated for doctors with large numbers of documents