The goal of this endpoint is to return basic data like name
,
common_name
, and type
for all the concepts stored in the content database.
Concepts are composed of:
It is possible to limit the concepts displayed to only those that have certain ids and types.
Example: /concepts?ids=c_1,s_1
Output:
{
"id": "c_1",
"type": "condition",
"name": "Achalasia",
"common_name": "Achalasia"
},
{
"id": "s_1",
"type": "symptom",
"name": "Mouth ulcers",
"common_name": "Mouth ulcers"
}
Supported types:
condition
symptom
risk_factor
Example: /concepts?types=symptom,condition
would return all symptoms and conditions.
Example: /concepts?ids=c_1,c_2,s_3&types=condition
would return only list with concepts c_1
, c_2
.
Output:
{
"id": "c_1",
"type": "condition",
"name": "Achalasia",
"common_name": "Achalasia"
},
{
"id": "c_2",
"type": "condition",
"name": "Atopic dermatitis",
"common_name": "Eczema"
}
Similar as in endpoints /symptoms
, /conditions
, /risk_factors
, and
/lab_tests
there is a possibility to get exactly one concept by providing the id in the URL path.
Example: /concepts/c_1
would return concept with id c_1
Output:
{
"id": "c_1",
"type": "condition",
"name": "Achalasia",
"common_name": "Achalasia"
}