IHTSDO / snowstorm

Scalable SNOMED CT Terminology Server using Elasticsearch
Other
208 stars 83 forks source link

Snowstorm API SearchMode #591

Open MALSAIED opened 6 months ago

MALSAIED commented 6 months ago

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 commented 5 months ago

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

MALSAIED commented 5 months ago

@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 commented 5 months ago

@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 commented 5 months ago

@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 commented 5 months ago

@CoderMChu Thank you. This was very helpful.