Skip to content

Commit bede883

Browse files
committed
chore: idisk api, add examples, remove rev-name field mapping
1 parent abd81de commit bede883

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

idisk/smartapi.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ components:
395395
requestBody:
396396
body:
397397
q: '{inputs[0]}'
398+
## example: put C0000392 (beta-Alanine)
399+
## should get 10017947 (gastrointestinal disorders) back
398400
scopes: umls
399401
header: application/x-www-form-urlencoded
400402
inputs:
@@ -414,11 +416,13 @@ components:
414416
- supportBatch: true
415417
inputSeparator: ","
416418
parameters:
417-
fields: name,umls
419+
fields: umls
418420
size: 1000
419421
requestBody:
420422
body:
421423
q: '{inputs[0]}'
424+
## example: put 10017947 (gastrointestinal disorders)
425+
## should get C0000392 (beta-Alanine) back
422426
scopes: has_adverse_effect_on.meddra
423427
header: application/x-www-form-urlencoded
424428
inputs:
@@ -442,6 +446,8 @@ components:
442446
requestBody:
443447
body:
444448
q: '{inputs[0]}'
449+
## example: put C0000578 (5-Hydroxytryptophan)
450+
## should get C0027497 (nausea) back
445451
scopes: umls
446452
header: application/x-www-form-urlencoded
447453
inputs:
@@ -462,11 +468,13 @@ components:
462468
- supportBatch: true
463469
inputSeparator: ","
464470
parameters:
465-
fields: name,umls
471+
fields: umls
466472
size: 1000
467473
requestBody:
468474
body:
469475
q: '{inputs[0]}'
476+
## example: put C0027497 (nausea)
477+
## should get C0000578 (5-Hydroxytryptophan) back
470478
scopes: has_adverse_reaction.umls
471479
header: application/x-www-form-urlencoded
472480
inputs:
@@ -491,6 +499,8 @@ components:
491499
requestBody:
492500
body:
493501
q: '{inputs[0]}'
502+
## example: put C0000473 (4-Aminobenzoic Acid)
503+
## should get C0010137 (Cortisone) back
494504
scopes: umls
495505
header: application/x-www-form-urlencoded
496506
inputs:
@@ -507,11 +517,13 @@ components:
507517
- supportBatch: true
508518
inputSeparator: ","
509519
parameters:
510-
fields: name,umls
520+
fields: umls
511521
size: 1000
512522
requestBody:
513523
body:
514524
q: '{inputs[0]}'
525+
## example: put C0010137 (Cortisone)
526+
## should get C0000473 (4-Aminobenzoic Acid) back
515527
scopes: interacts_with.umls
516528
header: application/x-www-form-urlencoded
517529
inputs:
@@ -536,6 +548,8 @@ components:
536548
requestBody:
537549
body:
538550
q: '{inputs[0]}'
551+
## example: put C0000503 (gamma hydroxybutyrate)
552+
## should get C0016053 (Fibromyalgias) back
539553
scopes: umls
540554
header: application/x-www-form-urlencoded
541555
inputs:
@@ -553,11 +567,13 @@ components:
553567
- supportBatch: true
554568
inputSeparator: ","
555569
parameters:
556-
fields: name,umls
570+
fields: umls
557571
size: 1000
558572
requestBody:
559573
body:
560574
q: '{inputs[0]}'
575+
## example: put C0016053 (Fibromyalgias)
576+
## should get C0000503 (gamma hydroxybutyrate) back
561577
scopes: is_effective_for.umls
562578
header: application/x-www-form-urlencoded
563579
inputs:
@@ -577,7 +593,6 @@ components:
577593
source: has_adverse_effect_on.source.name
578594
rev:
579595
UMLS: umls
580-
name: name
581596
has_adverse_reaction:
582597
UMLS: has_adverse_reaction.umls
583598
name: has_adverse_reaction.name

0 commit comments

Comments
 (0)