Overview
Retrieve the AI-generated diagnosis prediction for notes associated with a specific appointment in MediSync. This endpoint returns only the diagnosis prediction field from the notes, providing access to automated clinical assessment results.AI Diagnosis Prediction: This endpoint returns AI-generated diagnosis predictions including main diagnosis, ICD codes, and clinical reasoning. The diagnosis prediction is an optional field that may not be present in all notes.
Authentication
Path Parameters
The appointment ID to retrieve the diagnosis prediction for
Query Parameters
The user ID of the healthcare provider requesting the diagnosis prediction
Response
Indicates if the operation was successful
Object containing the diagnosis prediction data
Error message if the operation failed
Example Response
Behavior Notes
- AI-Generated Content: The diagnosis prediction is generated by AI analysis of the clinical notes content
- Optional Field: The diagnosis_prediction field may be null if no AI analysis has been performed
- Status Tracking: The prediction includes a status field to track the generation process (pending, generated, failed)
- Clinical Context: The reasoning field provides clinical context for the AI’s diagnostic assessment
Status Codes
- 200 - Diagnosis prediction retrieved successfully (including null values)
- 400 - Invalid request or database error
- 404 - Notes not found for the specified appointment