Overview
Update the AI-generated diagnosis prediction for notes associated with a specific appointment in MediSync. This endpoint allows manual modification of diagnosis predictions, enabling healthcare providers to correct or refine AI-generated diagnostic assessments.Manual Diagnosis Update: This endpoint allows healthcare providers to manually update or correct AI-generated diagnosis predictions. The status is automatically set to “generated” and error is cleared when updating.
Authentication
Path Parameters
The appointment ID to update the diagnosis prediction for
Query Parameters
The user ID of the healthcare provider updating the diagnosis prediction
Body Parameters
The primary diagnosis (will preserve existing value if not provided)
The ICD-10 code for the diagnosis (will preserve existing value if not provided)
Clinical reasoning and explanation for the diagnosis (will preserve existing value if not provided)
Response
Indicates if the operation was successful
Object containing the updated diagnosis prediction
Error message if the operation failed
Example Response
Behavior Notes
- Partial Updates: All body parameters are optional. Only provided fields will be updated, others retain their existing values
- Automatic Status Setting: The status is automatically set to “generated” when updating any diagnosis fields
- Error Clearing: The error field is automatically set to null when successfully updating diagnosis fields
- Initialization: If no diagnosis_prediction object exists, it will be created during the update
- Field Preservation: Any diagnosis fields not provided in the request will preserve their current values
Status Codes
- 200 - Diagnosis prediction updated successfully
- 400 - Invalid request data or database error
- 404 - Notes not found for the specified appointment