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

Snowstorm API SearchMode #591

Open
MALSAIED opened this issue May 21, 2024 · 5 comments
Open

Snowstorm API SearchMode #591

MALSAIED opened this issue May 21, 2024 · 5 comments

Comments

@MALSAIED
Copy link

Hi,

I have Snowstorm selfhosted and I would like to know what the different search modes are:

image

and if you can provide me with examples for "REGEX" and "WILDCARD".

Thanks,

Muaaz

@CoderMChu
Copy link
Member

@MALSAIED Please find examples here https://gist.github.com/CoderMChu/df04c211c261463b0de0f6cd7726ce2f
Let me know if you have further questions.

@MALSAIED
Copy link
Author

@CoderMChu Many thanks! This was very helpful.

I'm still in description endpoint. Could you please also explain what, "active" and "conceptRefset" are and how to use them?
image
image

@CoderMChu
Copy link
Member

@MALSAIED When searching active descriptions only, you can set the "active" flag to true. By default it searches for both active and inactive. There is another flag called "conceptActive". You can use this to filter search results to display active concepts only.

@CoderMChu
Copy link
Member

@MALSAIED You can use "conceptRefset" flag to filter search results for concepts belong to a specific refset only.
e.g Aggregation results from description search:
Screenshot 2024-05-31 at 14 06 03

By filtering "conceptRefset" with 1157358007, it will just return 1 search result.

Note: 1157358007 | International Classification for Nursing Practice reference set

@MALSAIED
Copy link
Author

@CoderMChu Thank you. This was very helpful.

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

No branches or pull requests

2 participants