A QNode [Query + Node] is the name we have given to the JSON structure used to query the /data/ and /summary/ endpoints. This structure is passed in as the body of the api calls to the aforementioned endpoints.
{
"MATCH_ALL": [
"string"
],
"MATCH_SOME": [
"string"
],
"ADD_COLUMNS": [
"string"
],
"EXCLUDE_COLUMNS": [
"string"
]
}
MATCH_ALL contains a list of column match queries you want to be ANDed together.
MATCH_SOME contains a list of column match queries you want to be OR'd together.
{
MATCH_ALL: [
"species = human",
"sex like m*"
]
}
This example would return data on subjects who are:
- Marked as their species being "human"
AND - Marked as having and observation of their sex start with the letter "m"
{
MATCH_SOME: [
"year_of_birth < 1960",
"year_of_birth > 2020"
]
}
This example would return data on subjects who are:
- Born before 1960
OR - Born after 2020
{
MATCH_ALL: [
"species = human",
"sex like m*"
],
MATCH_SOME: [
"year_of_birth < 1960",
"year_of_birth > 2020"
]
}
This example would return data on subjects who are:
(
- Marked as their species being "human"
AND - Marked as having and observation of their sex start with the letter "m"
)
AND
(- Born before 1960
OR - Born after 2020
)
- Born before 1960
- Parameters
- limit (int, optional): Limit for paged results. Defaults to 100.
- offset (int, optional): Offset for paged results. Defaults to 0.
- Body
- qnode (QNode): JSON input query
limit: This parameter limits the number of rows returned when hitting this endpoint
- Parameters
- limit (int, optional): Limit for paged results. Defaults to 100.
- offset (int, optional): Offset for paged results. Defaults to 0.
- Body
- qnode (QNode): JSON input query