Concepts
Concepts
Bases: Endpoint
Queries concepts/ endpoints
Functions
get(**kwargs)
Queries concepts/, with optional query parameters
NOTE
- See the following URL for more information on query parameters: https://conceptlibrary.saildatabank.com/api/v1/#operations-tag-concepts
Other Parameters:
Name | Type | Description |
---|---|---|
search |
string
|
Keyword search |
collections |
list
|
IDs of collections |
tags |
list
|
IDs of tags |
datasources |
list
|
IDs of datasources |
Response (dict|list): - If paginated: a dict of concepts matching query parameters - If unpaginated: a list of concepts matching query parameters
Examples:
get_codelist(id, version_id=None)
Queries concepts/{id}/export/codes/ or concepts/{id}/version/{version_id}/export/codes if version_id is supplied
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
ID of entity to query, in format C[\d+] |
required |
version_id
|
int
|
version ID of entity |
None
|
Returns:
Name | Type | Description |
---|---|---|
Response |
list
|
Codelist of queried concept |
Examples:
get_detail(id, version_id=None)
Queries concepts/{id}/detail/ or concepts/{id}/version/{version_id}/detail if version_id is supplied
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
ID of entity to query, in format C[\d+] |
required |
version_id
|
int
|
version ID of entity |
None
|
Returns:
Name | Type | Description |
---|---|---|
Response |
list
|
Details of queried concept |
Examples:
get_versions(id)
Queries concepts/{id}/get-versions/
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
ID of entity to query, in format C[\d+] |
required |
Returns:
Name | Type | Description |
---|---|---|
Response |
list
|
Version list of queried concept |
Examples: