Closed ivank closed 6 months ago
Hi @ivank just looking at the "version" parameter in the response - does your instance of Snowstorm-lite have the January 2023 version loaded?
Today I ran Ivan's query against my instance of snowstorm-lite which has the January 2024 edition loaded. My results were similar - 50 concepts in the expansion of this value set.
I'm not sure how the concepts are ordered in the response, but I believe the difference in numbers can be explained because snowstorm-lite includes inactive concepts in the value set. These can be filtered as they are indicated as inactive, for e.g.
{
"system": "http://snomed.info/sct",
"inactive": true,
"code": "366980001",
"display": "Suspected breast cancer"
}
@ivank Thanks for reaching out. Snowstorm Lite does not use the same search mechanism as Snowstorm. The lite search is much faster but the results ranking is not as good in some cases. This is because the results ranking sorts concepts on their average description length, rather than the length of the description that matched the search query.
The relevance of the results can be improved by searching the specific area of the hierarchy you are interested in using ECL. Examples:
I hope that helps.
Long Explanation Snowstorm searches against individual descriptions, sorts them by the shortest matching description first, and then returns the unique concepts. Snowstorm Lite only has concept documents, it finds concepts that have some matching description. Sorting happens using the average description length.
There is a fix for this in the develop branch: to apply the same sorting as the main Snowstorm product, when within the first 100 results, without a loss of performance. Initial testing looks good!
This is fixed in the latest version 1.3.0-beta.
Example:
responds with:
Whereas local snowstorm-lite server is returning
Where "Fear of breast cancer" is higher on the list than "Malignant tumor of breast" ... not the response we were expecting (and the full version was correctly returning).
Maybe we have to configure / reindex something to make it work the same as the full version?
Docker image version:
snomedinternational/snowstorm:9.2.0