Specialist and channel recommender
The /recommend_specialist
endpoint is an optional feature that extends the /triage
recommendation by providing the most appropriate specialist and channel as a part of next step advice. Similar to the /triage
endpoint, the /recommend_specialist
takes into account not only the severity of the most likely conditions but also the presence of alarming symptoms or risk factors. This allows the inference engine to guide patients to a specialist who can help handle potentially serious symptoms and states.
Specialist and channel recommendations are not available in cases with emergency
or emergency_ambulance
triage levels.
Request
The /recommend_specialist
endpoint responds to POST requests and accepts the same JSON object as the /diagnosis
and /triage
endpoints.
curl "https://api.infermedica.com/v3/recommend_specialist" \
-X "POST" \
-H "App-Id: XXXXXXXX" \
-H "App-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-H "Content-Type: application/json" \
-H "Interview-Id: d083e76f-3c29-44aa-8893-587f3691c0c5" \
-d '{
"sex": "male",
"age": {"value": 30},
"evidence": [
{"id": "s_1193", "choice_id": "present"},
{"id": "s_488", "choice_id": "present"},
{"id": "s_418", "choice_id": "present"}
]
}'
Specialty mapping
The /recommend_specialist
endpoint allows for the remapping of specified specialties in a many-to-one fashion. This is useful when some specialties are not appropriate for the regional, regulatory, or clinical setting (or unwanted for any other reason).
The specialty mapping functionality does more than just replacing specialties with other specialties: the mapping is also taken into account in the specialist recommender algorithm to provide the best possible experience.
Please note that adding new specialties or changing the names of existing ones is not supported.
Below is an example of how to map two categories onto another single one:
curl "https://api.infermedica.com/v3/recommend_specialist" \
-X "POST" \
-H "App-Id: XXXXXXXX" \
-H "App-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-H "Content-Type: application/json" \
-H "Interview-Id: d083e76f-3c29-44aa-8893-587f3691c0c5" \
-d '{
"sex": "male",
"age": {"value": 30},
"evidence": [
{"id": "s_1193", "choice_id": "present"},
{"id": "s_488", "choice_id": "present"},
{"id": "s_418", "choice_id": "present"}
],
"extras": {
"specialist_mapping": {
"sp_17": "sp_1",
"sp_14": "sp_1"
}
}
}'
{
"recommended_specialist": {
"id": "sp_1",
"name": "General Practitioner"
},
"recommended_channel": "personal_visit"
}
Response
The response contains the following attributes:
recommended_specialist
– ID and name of the recommended specialist, one of:sp_23
– Allergologistsp_21
– Angiologistsp_12
– Cardiologistsp_18
– Dentistsp_9
– Dermatologistsp_22
– Diabetologistsp_10
– Endocrinologistsp_14
– ENT doctorsp_5
– Gastroenterologistsp_1
– General Practitionersp_15
– Gynecologistsp_25
– Hematologistsp_19
– Infectologistsp_2
– Internal Medicine Specialistsp_29
– Maxillofacial surgeonsp_26
– Neonatologistsp_24
– Nephrologistsp_17
– Neurologistsp_13
– Oncologistsp_7
– Ophthalmologistsp_6
– Orthopedistsp_3
– Pediatriciansp_16
– Psychiatristsp_27
– Pulmonologistsp_20
– Rheumatologistsp_4
– Surgeonsp_8
– Toxicologistsp_11
– Urologist
recommended_channel
– a channel recommendation, one of:personal_visit
– In-person visitvideo_teleconsultation
– Video consultationaudio_teleconsultation
– Telephone or any other consultation with audio onlytext_teleconsultation
– Chat
{
"recommended_specialist": {
"id": "sp_17",
"name": "Neurologist"
},
"recommended_channel": "personal_visit"
}
Specialty list for conditions
The /conditions
endpoint allows an additional query parameter of include_specialists=true
which expands the response for that endpoint to include a specialists list. This expansion is helpful for identifying the default mapping of specialties to available conditions.
curl "https://api.infermedica.com/v3/conditions?age.value=20&include_specialists=true" \
-X "GET" \
-H "App-Id: XXXXXXXX" \
-H "App-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-H "Content-Type: application/json" \
-H "Interview-Id: d083e76f-3c29-44aa-8893-587f3691c0c5"
[
...
{
"id": "c_926",
"name": "ACE inhibitor-induced cough",
"common_name": "ACE inhibitor-induced cough",
"sex_filter": "both",
"categories": [
"Cardiology"
],
"specialists": [
{
"id": "sp_1",
"name": "General Practitioner"
}
],
"prevalence": "very_rare",
"acuteness": "chronic",
"severity": "mild",
"extras": {
"icd10_code": "R05, T88.7, Y52.4",
"hint": "Your symptoms may be due to medications you have used. Please report this symptom to your GP."
},
"triage_level": "consultation",
"recommended_channel": "audio_teleconsultation"
},
...
]