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

Terminology utility #97

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Terminology utility #97

merged 3 commits into from
Nov 7, 2024

Conversation

rhdolin
Copy link
Collaborator

@rhdolin rhdolin commented Nov 7, 2024

Description

Implements a terminology normalization utility

Fixes # (issue) - none (this is not related to an issue)

How Has This Been Tested? - unit tests, local deployment

@rhdolin rhdolin requested a review from mihaitodor November 7, 2024 21:11
Copy link
Collaborator

@mihaitodor mihaitodor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just one small nitpick. Feel free to ignore it

response[0]["system"] = 'https://ncithesaurus.nci.nih.gov/'
return response
else:
return "server down"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we return HTTP 500 error in such cases? Something like abort(500, "HAPI server error")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great suggestion, thank you.

@rhdolin rhdolin merged commit 1150e14 into main Nov 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants