Overview
Upload a PDF medical document to a specific appointment in MediSync. This endpoint allows healthcare providers to attach medical documents to appointments with secure cloud storage and automatic appointment linking.PDF Documents Only: Currently, only PDF files are supported for document uploads to ensure consistent formatting and compatibility across the platform.
Authentication
Path Parameters
The appointment ID to upload the document to
Query Parameters
The doctor/user ID performing the upload
Request Body
Response
Whether the upload was successful
The uploaded document information
Error message if the upload failed
Response Examples
Successful Upload
File Already Exists Error
Invalid File Type Error
Missing File Error
Business Logic
- Single Document Per Appointment: Each appointment can only have one document. If a document already exists for the appointment, the upload will fail.
- Automatic Appointment Linking: After successful upload, the appointment record is automatically updated with the document ID.
- Secure Storage: Documents are stored in Telekom’s secure cloud storage with proper access controls.
-
File Naming: Documents are stored with a key format of
{appointment_id}_{original_filename}.
Error Handling
- 400 Bad Request: Invalid file type, missing file, or document already exists
- 401 Unauthorized: Invalid or missing authentication token
- 500 Internal Server Error: Storage or database error
Notes
- Only PDF files are currently supported
- Maximum file size limit is 500MB
- Documents are stored securely and can only be accessed by authorized users
- Each appointment can have only one document - use the update endpoint to replace existing documents