Open main menu

Farmakorakels Wiki β

Changes

Pharmacolyzer

218 bytes added, 12:49, 28 August 2018
Example of how access to the Pharmacolyzer through a REST API could look like
For pretty printing, the following can be used:
<pre>curl https://www.pgx.no/api/pharmacolyzer -d "patient_name=merged_patient&drugs=azathioprine&samples=NA19461" | python -m json.tool </pre>
Note that this is quite slow (20-30 seconds, especially the first query, when the OWL reasoner process is being set up, later queries may become as little as 4-5 seconds, which is a bit slow for such a simple program)