SupportDashboard
Diagnosis API

Update session

Submits an answer to the previous question and retrieves the next one. When the model has enough information, or if the question limit set for the session is reached, the question field in the response will be null.

POST
/session/{session_id}
AuthorizationBearer <token>

In: header

Path Parameters

session_idSession Id

The unique identifier for the session.

question_idQuestion Id

The ID of the question being answered.

input?Input

Free-text input from the user.

Response Body

curl -X POST "https://api.avey.ai/ddx/session/f47ac10b-58cc-4372-a567-0e02b2c3d479" \  -H "Content-Type: application/json" \  -d '{    "question_id": 1  }'
{
  "session_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "question": {
    "id": 1,
    "media_url": 1,
    "text": "Do you have a Lymphadenopathy?",
    "description": "Lymphadenopathy is enlargement or swelling in one of your lymph nodes",
    "target_concepts": [
      {
        "id": "Headache (Occipital region)",
        "term": "Headache (Occipital region)"
      },
      {
        "id": "Headache (Occipital region)",
        "term": "Headache (Occipital region)"
      }
    ]
  },
  "patient_info": {
    "age": 34,
    "sex": "male",
    "chief_findings": [
      {
        "id": "Headache",
        "status": "present",
        "term": "Headache"
      },
      {
        "id": "Fever",
        "status": "present",
        "term": "Fever"
      }
    ],
    "findings": [
      {
        "id": "Headache",
        "status": "present",
        "term": "Headache"
      },
      {
        "id": "Fever",
        "status": "present",
        "term": "Fever"
      },
      {
        "id": "Nasal block",
        "status": "absent",
        "term": "Nasal block"
      },
      {
        "id": "Headache (Occipital region)",
        "status": "unsure",
        "term": "Headache (Occipital region)"
      }
    ]
  }
}
{
  "detail": "Not authenticated"
}
{
  "detail": "Session not found or has expired."
}

{
  "detail": "'input' must be provided."
}

{
  "detail": "An unexpected internal error occurred."
}

How is this guide?