Skip to main content

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

curl -X GET \
  'https://api.medisync.com/notes/diagnosis/apt_abc123?uid=doc_xyz789' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN'

Path Parameters

id
string
required
The appointment ID to retrieve the diagnosis prediction for

Query Parameters

uid
string
required
The user ID of the healthcare provider requesting the diagnosis prediction

Response

success
boolean
Indicates if the operation was successful
data
object
Object containing the diagnosis prediction data
error
string
Error message if the operation failed

Example Response

{
  "success": true,
  "data": {
    "diagnosis_prediction": {
      "status": "generated",
      "main_diagnosis": "Atypical chest pain",
      "icd_code": "R07.89",
      "reason": "Based on patient presentation and normal EKG findings, most likely non-cardiac chest pain with musculoskeletal etiology"
    }
  }
}

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