Triage

Apart from the /diagnosis endpoint, the Infermedica API provides a complementary /triage endpoint that can categorize provided patient cases based on the seriousness of reported observations and the severity of likely conditions. This procedure may be viewed as similar to the telephone triage, hence the name of this endpoint.

Under the hood the /triage endpoint uses the same diagnostic engine that powers the /diagnosis endpoint to compute the ranking of possible conditions. The triage classification algorithm we propose takes into account the severity of the most likely conditions identified by the diagnostic engine as well as the occurrence of any alarming symptoms or risk factors

Please note, that the free trial plan of the Infermedica API allows for only a limited number of calls to the /triage endpoint. Please contact us for other plan options.

Request

The /triage endpoint accepts the same input JSON object as the /diagnosis endpoint:

curl "https://api.infermedica.com/v2/triage" \
  -X "POST" \
  -H "App-Id: XXXXXXXX" -H "App-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -H "Content-Type: application/json" -d '{
    "sex": "male",
    "age": 30,
    "evidence": [{
      "id": "s_1193",
      "choice_id": "present"
    },{
      "id": "s_488",
      "choice_id": "present"
    },{
      "id": "s_418",
      "choice_id": "present"
    }]
  }'

Response

The response contains two main sections:

  • a classification of the case provided,
  • a list of serious observations.
{
  "triage_level": "emergency",
  "serious": [
    {
      "id": "s_1193",
      "name": "Headache, severe",
      "is_emergency": true
    },
    {
      "id": "s_418",
      "name": "Stiff neck",
      "is_emergency": true
    }
  ]
}

Triage level

There are three possible categories that can be assigned to the case reported in a request to the /triage endpoint. The category is returned as a triage_level attribute with one of the following values:

  • 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 – a medical consultation is advised but not strictly required; the patient should observe their symptoms and consult a doctor if symptoms worsen within 24 hours.

Serious observations

Each listed observation has an unique id and name. These values are consistent with the database of medical concepts understood by the Infermedica API.

There are two possible levels of observation seriousness: all observations returned in the serious_observations list are alarming and require consultation with a medical professional, but observations with is_emergency set to true are particularly urgent and may require immediate attention.

NextNLP