Documentation
API: Intake
Fetching AI Assessment

Fetching Infermedica’s AI Assessment

To be able to fetch Infermedica’s AI Assessment, the user must both complete the survey and provide evidence during the survey before calling the GET query to /api/v2/surveys/{survey_id}/evidence_assessment.

Example response

JSON
{
  "conditions": [
    {
      "id": "c_38",
      "name": "Cholecystolithiasis",
      "common_name": "Gallstones within the gallbladder",
      "probability": 0.3437,
      "icd10": [
        {
          "code": "K80.2"
        }
      ]
    },
    {
      "id": "c_34",
      "name": "Gilbert's syndrome",
      "common_name": "Familial nonhemolytic jaundice",
      "probability": 0.1161,
      "icd10": [
        {
          "code": "E80.4"
        }
      ]
    },
    {
      "id": "c_436",
      "name": "Toxocariasis",
      "common_name": "Toxocariasis",
      "probability": 0.0682,
      "icd10": [
        {
          "code": "B83.0"
        }
      ]
    },
    {
      "id": "c_644",
      "name": "Non-alcoholic fatty liver disease",
      "common_name": "Non-alcoholic fatty liver disease",
      "probability": 0.0376,
      "icd10": [
        {
          "code": "K76.0"
        }
      ]
    },
    {
      "id": "c_445",
      "name": "Paroxysmal nocturnal hemoglobinuria",
      "common_name": "Paroxysmal nocturnal hemoglobinuria",
      "probability": 0.0276,
      "icd10": [
        {
          "code": "D59.5"
        }
      ]
    },
    {
      "id": "c_458",
      "name": "Polyarteritis nodosa",
      "common_name": "Polyarteritis nodosa",
      "probability": 0.0251,
      "icd10": [
        {
          "code": "M30.0"
        }
      ]
    }
  ],
  "triage": {
    "level": "consultation_24",
    "serious": [
      {
        "id": "s_471",
        "name": "Abdominal pain, radiating to right shoulder or shoulder blade",
        "common_name": "Stomach pain spreading to the right shoulder area",
        "seriousness": "serious"
      }
    ]
  }
}

Error response

HTTP status code: 409

The survey hasn't been completed. It is not possible to fetch this data if the survey is new or pending.

Response object

conditions (list)

Each response contains a conditions attribute holding a list of possible conditions sorted by their estimated probability.

Each condition in the rankings is represented by a JSON object with the following attributes: id, name, common_name, icd10, and probability.

The probability attribute is a floating point number between 0 and 1, indicating a match between the reported evidence and conditions in the model.

Please note that the condition rankings may be empty [ ] if there is no evidence or, in rare cases, where the combination of evidence isn’t associated with any specific condition.

triage (object)

  • level (str)
    • emergency – the reported evidence may indicate a serious or life-threatening condition and thus the patient may require immediate medical attention,
    • consultation – the patient may require a medical consultation when possible,
    • self_care – the declared symptoms may not require medical evaluation and they usually resolve on their own. Sometimes they can be treated with self-care methods. Patients should observe their symptoms and consult a doctor if the symptoms get worse or new ones appear.
  • serious (list) – Each listed observation has an unique ID and name. All observations returned in the serious list are alarming and require consultation with a medical professional. Each serious observation has a seriousness value of either: serious, emergency, or emergency_ambulance. Observations with emergency or emergency_ambulance seriousness are particularly urgent and may require immediate attention.