-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to API version 1.0.2 * Bump tool version to 1.0.2
- Loading branch information
1 parent
efd9560
commit db8a6f6
Showing
8 changed files
with
443 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,15 @@ def get_tool(): # noqa: E501 | |
""" | ||
tool = Tool( | ||
name="date-annotator-example", | ||
version="1.0.1", | ||
version="1.0.2", | ||
license=License.APACHE_2_0, | ||
repository="github:nlpsandbox/date-annotator-example", | ||
description="Example implementation of the NLP Sandbox Date Annotator", | ||
author="The NLP Sandbox Team", | ||
author_email="[email protected]", | ||
url="https://github.com/nlpsandbox/date-annotator-example", | ||
tool_type="nlpsandbox:date-annotator", | ||
tool_api_version="1.0.1" | ||
type="nlpsandbox:date-annotator", | ||
api_version="1.0.2" | ||
) | ||
return tool, 200 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ info: | |
name: Apache 2.0 | ||
url: https://github.com/nlpsandbox/nlpsandbox-schemas/blob/develop/LICENSE | ||
title: NLP Sandbox Date Annotator API | ||
version: 1.0.1 | ||
version: 1.0.2 | ||
x-logo: | ||
url: https://nlpsandbox.github.io/nlpsandbox-schemas/logo.png | ||
servers: | ||
|
@@ -233,7 +233,7 @@ components: | |
example: | ||
identifier: awesome-note | ||
text: On 12/26/2020, Ms. Chloe Price met with Dr. Prescott in Seattle. | ||
noteType: loinc:LP29684-5 | ||
type: loinc:LP29684-5 | ||
patientId: awesome-patient | ||
properties: | ||
identifier: | ||
|
@@ -246,7 +246,7 @@ components: | |
text: | ||
description: The content of the clinical note | ||
type: string | ||
noteType: | ||
type: | ||
description: The note type (LOINC concept) | ||
type: string | ||
patientId: | ||
|
@@ -258,17 +258,17 @@ components: | |
type: string | ||
required: | ||
- identifier | ||
- noteType | ||
- patientId | ||
- text | ||
- type | ||
type: object | ||
TextDateAnnotationRequest: | ||
description: A request to annotate dates in a clinical note | ||
example: | ||
note: | ||
identifier: awesome-note | ||
text: On 12/26/2020, Ms. Chloe Price met with Dr. Prescott in Seattle. | ||
noteType: loinc:LP29684-5 | ||
type: loinc:LP29684-5 | ||
patientId: awesome-patient | ||
properties: | ||
note: | ||
|
@@ -398,8 +398,8 @@ components: | |
author: Awesome Team | ||
authorEmail: [email protected] | ||
url: https://example.com | ||
toolType: nlpsandbox:date-annotator | ||
toolApiVersion: 1.0.1 | ||
type: nlpsandbox:date-annotator | ||
apiVersion: 1.0.2 | ||
properties: | ||
name: | ||
description: The tool name | ||
|
@@ -432,27 +432,27 @@ components: | |
description: The URL to the homepage of the tool | ||
format: uri | ||
type: string | ||
toolType: | ||
type: | ||
description: The type of this tool | ||
example: nlpsandbox:date-annotator | ||
maxLength: 60 | ||
minLength: 3 | ||
pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(:)[a-z0-9]+(?:-[a-z0-9]+)*$ | ||
type: string | ||
toolApiVersion: | ||
apiVersion: | ||
description: The version of the tool OpenAPI specification | ||
minLength: 1 | ||
pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ | ||
type: string | ||
required: | ||
- apiVersion | ||
- author | ||
- authorEmail | ||
- description | ||
- license | ||
- name | ||
- repository | ||
- toolApiVersion | ||
- toolType | ||
- type | ||
- url | ||
- version | ||
type: object | ||
|
@@ -468,8 +468,8 @@ components: | |
author: Awesome Team | ||
authorEmail: [email protected] | ||
url: https://example.com | ||
toolType: nlpsandbox:date-annotator | ||
toolApiVersion: 1.0.1 | ||
type: nlpsandbox:date-annotator | ||
apiVersion: 1.0.2 | ||
- name: awesome-nlp-tool | ||
version: 1.0.6 | ||
license: apache-2.0 | ||
|
@@ -478,8 +478,8 @@ components: | |
author: Awesome Team | ||
authorEmail: [email protected] | ||
url: https://example.com | ||
toolType: nlpsandbox:date-annotator | ||
toolApiVersion: 1.0.1 | ||
type: nlpsandbox:date-annotator | ||
apiVersion: 1.0.2 | ||
properties: | ||
toolDependencies: | ||
description: A list of tools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters