Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update smartapi.yaml #116

Merged
merged 5 commits into from
Jul 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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