-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #682 from matthiaskoenig/develop
Changes for release 0.9.4
- Loading branch information
Showing
32 changed files
with
828 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1 @@ | ||
# PKDB Backend (`django`) | ||
|
||
- [ ] documentation page with queries and searches | ||
|
||
## PKData Query | ||
The event cycle of PKData is: | ||
1. Query studies, interventions, groups, individuals, and outputs by adding | ||
the respective word as a prefix following two underscores to the url filter | ||
(e.g. ...api/v1/pkdata/?studies__sid=PKDB00008 is equivalent to ...api/v1/studies/?sid=PKDB00008). | ||
The search/filter is performed on the indexed database. For more details on how to construct the query by patterns in the | ||
url check "https://django-elasticsearch-dsl-drf.readthedocs.io/en/latest/". | ||
|
||
2. All tables are updated to get rid of redundant entries. This results in a concise set of entries | ||
in all tables (e.g. a filter on the study table for a specific sid reduces the entries of the other tables | ||
only to interventions, groups, individuals, and outputs which are part of the study). | ||
|
||
3. paginated studies, interventions, groups, individuals, and outputs are returned. Getting the next page for one of the tables | ||
works equivalently to the filters (e.g. getting the second studies page while searching for the interventions containing caffeine. ...api/v1/pkdata/?interventions__substance=caffeine&studies__page=2). | ||
|
||
|
||
## PKDData | ||
documentation | ||
|
||
### Queries | ||
|
||
Query for single study: | ||
``` | ||
http://localhost:8000/api/v1/pkdata/?studies__sid=PKDB00008 | ||
``` | ||
Query for multiple studies based on sids: | ||
``` | ||
http://localhost:8000/api/v1/pkdata/?studies__sid__in=PKDB00008__PKDB00001 | ||
``` | ||
Query for interventions substance: | ||
``` | ||
http://localhost:8000/api/v1/pkdata/?interventions__substance=codeine | ||
``` | ||
Query for interventions and outputs simultaneously: | ||
``` | ||
http://localhost:8000/api/v1/pkdata/?interventions__substance=codeine&outputs__measurement_type=clearance | ||
``` | ||
|
||
© 2017-2020 Jan Grzegorzewski & Matthias König. | ||
# PKDB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" | ||
Definition of version string. | ||
""" | ||
__version__ = "0.9.3" | ||
__version__ = "0.9.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.