Ontology
Ontology
Bases: Endpoint
Queries ontology/ endpoints
Functions
get(**kwargs)
Queries ontology/node/, with optional query parameters
NOTE
-
See the following URL for more information on query parameters: https://conceptlibrary.saildatabank.com/api/v1/#operations-tag-ontology
-
Adding the
?exact_codes
will match the exact SNOMED code instead of fuzzy matching the givencodes
across all related mappings (ICD-9/10, MeSH, OPSC4, ReadCodes etc)
Keyword Args:
Param | Type | Default | Desc |
---|---|---|---|
search | string |
NULL |
Full-text search |
codes | list |
NULL |
Either (a) SNOMED code (see below); or (b) Code ID |
exact_codes | empty |
NULL |
apply this parameter if you would like to search for exact codes |
type_ids | list |
NULL |
Filter ontology type by ID |
reference_ids | list |
NULL |
Filter ontology by Atlas reference |
page | number |
1 |
Page cursor |
page_size | enum |
1 (20 results) |
Page size enum, where: 1 = 20, 2 = 50 & 3 = 100 rows |
Returns:
Name | Type | Description |
---|---|---|
Response |
dict | list
|
|
Examples:
get_detail(id)
get_group_detail(id)
Queries ontology/type/{id}/; gets an ontology group's detail
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
int
|
Ontological ID |
required |
Returns:
Name | Type | Description |
---|---|---|
Response |
dict
|
Details of the queried ontology group |
Examples: