Skip to content

Commit

Permalink
Merge pull request #116 from GitHubbit/master
Browse files Browse the repository at this point in the history
Update smartapi.yaml
  • Loading branch information
colleenXu authored Jul 14, 2023
2 parents ccfceaf + 92d12e3 commit bbe9c7f
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions multiomics_clinical_trials/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ servers:
url: http://biothings.ncats.io/multiomics_clinicaltrials_kp
x-maturity: production
tags:
- name: association
- name: treatment
- name: intervention
- name: disease
- name: query
- name: condition
- name: translator
- name: biothings
- name: multiomics
- name: clinical
- name: trials
- name: clinical_trials
- name: bte
paths:
"/association/{id}":
get:
Expand All @@ -55,7 +60,7 @@ paths:
- name: id
in: path
required: true
example: "00065273_C0025362_C0009079"
example: "00065273_C0009079_C0025362"
schema:
type: string
- "$ref": "#/components/parameters/fields"
Expand Down Expand Up @@ -119,8 +124,8 @@ paths:
application/json:
example:
ids:
- "00065273_C0025362_C0009079"
- "00065273_C0025362_C0171023"
- "00065273_C0009079_C0025362"
- "00065273_C0171023_C0025362"
schema:
type: object
properties:
Expand Down Expand Up @@ -175,7 +180,7 @@ paths:
API](https://docs.mychem.info/en/latest/doc/chem_query_service.html#query-syntax).
in: query
required: true
example: "subject.UMLS:C0006012"
example: "object.UMLS:C0006012"
schema:
type: string
- "$ref": "#/components/parameters/fields"
Expand Down Expand Up @@ -276,7 +281,7 @@ paths:
- "C0006012"
- "C0524620"
scopes:
- "subject.UMLS"
- "object.UMLS"
schema:
type: object
properties:
Expand Down Expand Up @@ -589,13 +594,13 @@ components:
## API data has no prefix
## joinSafe is only needed if the delimiter isn't a comma
q: "{{ queryInputs }}"
scopes: subject.UMLS
scopes: object.UMLS
outputs:
- id: UMLS
semantic: Treatment
parameters:
fields: >-
object.UMLS,
subject.UMLS,
association.edge_attributes
size: 1000
predicate: related_to
Expand All @@ -613,13 +618,13 @@ components:
requestBody:
body:
q: "{{ queryInputs }}"
scopes: object.UMLS
scopes: subject.UMLS
outputs:
- id: UMLS
semantic: Disease
parameters:
fields: >-
subject.UMLS,
object.UMLS,
association.edge_attributes
size: 1000
predicate: related_to
Expand All @@ -630,8 +635,8 @@ components:
# oneOutput: "UMLS:C0334579" ## anaplastic astrocytoma
x-bte-response-mapping:
treatment:
UMLS: object.UMLS ## no prefix
edge-attributes: association.edge_attributes
disease:
UMLS: subject.UMLS ## no prefix
edge-attributes: association.edge_attributes
disease:
UMLS: object.UMLS ## no prefix
edge-attributes: association.edge_attributes

0 comments on commit bbe9c7f

Please sign in to comment.