Skip to content

Commit

Permalink
chore: idisk api, add examples, remove rev-name field mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Aug 23, 2021
1 parent abd81de commit bede883
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions idisk/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ components:
requestBody:
body:
q: '{inputs[0]}'
## example: put C0000392 (beta-Alanine)
## should get 10017947 (gastrointestinal disorders) back
scopes: umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -414,11 +416,13 @@ components:
- supportBatch: true
inputSeparator: ","
parameters:
fields: name,umls
fields: umls
size: 1000
requestBody:
body:
q: '{inputs[0]}'
## example: put 10017947 (gastrointestinal disorders)
## should get C0000392 (beta-Alanine) back
scopes: has_adverse_effect_on.meddra
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -442,6 +446,8 @@ components:
requestBody:
body:
q: '{inputs[0]}'
## example: put C0000578 (5-Hydroxytryptophan)
## should get C0027497 (nausea) back
scopes: umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -462,11 +468,13 @@ components:
- supportBatch: true
inputSeparator: ","
parameters:
fields: name,umls
fields: umls
size: 1000
requestBody:
body:
q: '{inputs[0]}'
## example: put C0027497 (nausea)
## should get C0000578 (5-Hydroxytryptophan) back
scopes: has_adverse_reaction.umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -491,6 +499,8 @@ components:
requestBody:
body:
q: '{inputs[0]}'
## example: put C0000473 (4-Aminobenzoic Acid)
## should get C0010137 (Cortisone) back
scopes: umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -507,11 +517,13 @@ components:
- supportBatch: true
inputSeparator: ","
parameters:
fields: name,umls
fields: umls
size: 1000
requestBody:
body:
q: '{inputs[0]}'
## example: put C0010137 (Cortisone)
## should get C0000473 (4-Aminobenzoic Acid) back
scopes: interacts_with.umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -536,6 +548,8 @@ components:
requestBody:
body:
q: '{inputs[0]}'
## example: put C0000503 (gamma hydroxybutyrate)
## should get C0016053 (Fibromyalgias) back
scopes: umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -553,11 +567,13 @@ components:
- supportBatch: true
inputSeparator: ","
parameters:
fields: name,umls
fields: umls
size: 1000
requestBody:
body:
q: '{inputs[0]}'
## example: put C0016053 (Fibromyalgias)
## should get C0000503 (gamma hydroxybutyrate) back
scopes: is_effective_for.umls
header: application/x-www-form-urlencoded
inputs:
Expand All @@ -577,7 +593,6 @@ components:
source: has_adverse_effect_on.source.name
rev:
UMLS: umls
name: name
has_adverse_reaction:
UMLS: has_adverse_reaction.umls
name: has_adverse_reaction.name
Expand Down

0 comments on commit bede883

Please sign in to comment.