Diagnostic EngineConversational
Answer question
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.
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/v1/session/f47ac10b-58cc-4372-a567-0e02b2c3d479/next" \ -H "Content-Type: application/json" \ -d '{ "question_id": 1 }'{
"status": "in_progress",
"session_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"question": {
"id": 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)"
}
],
"other_context": {}
},
"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": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}How is this guide?