Concept search by term and semantic tags #737
-
Good morning, I'm using the /snomed-ct/v3/{path}/concepts/search endpoint and searching by term and semantic tags.
This doesn't happen consistently, but only if the term search is hitting a description that doesn't have a semantic tag explicitly defined. But since the semantic tag is also stored on the concept (I see it in the iconId field returned by the search), shouldn't the search hit that field rather than the single descriptions? Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Thank you for raising your question. Quickly tested it on our side and it looks fine. I have identified one issue regarding the API, where the My test request was:
This yields the proper results, returned concepts are active and has at least one description with the defined semanticTag
It is using a search in the description index looking for matching descriptions first (term, semanticTag, language, etc.), then applying an ID filter to the concept search with the concept filter arguments (ECL, ID, active status, etc.). If you have an example test request that fails we can further investigate the issue, feel free to attach it to this discussion. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Thanks for checking this so quickly @cmark. I can share an example that I verified on my side:
This one returns five results, which are procedure and disorders, yet the following one (same with disorder) returns an empty list.
Is this the expected behaviour? Also, the same search via term "Achalasia of esophagus" and "procedure" actually finds the expected result, but the terms "Achalasia of esophagus" and "Achalasia of oesophagus" are both active descriptions. |
Beta Was this translation helpful? Give feedback.
-
Ahh okay, the problem is the British vs American spelling of the word 'oesophagus' and which spelling is selected as FSN on a concept, usually the American is selected and that's why this query fails when you use the British English equivalent. This would be okay from the description search perspective, but clearly not from the Concept Search API perspective. The As you have mentioned, if you try it with the word Cheers, |
Beta Was this translation helpful? Give feedback.
-
Thanks Mark, I'll keep an eye on the bug report, but please let me know when the fix is released. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Sounds great, thank you for the update Mark! Cheers, |
Beta Was this translation helpful? Give feedback.
-
Sorry for my late reply, Snow Owl 8.0.0 has been released a few weeks ago and it fixes the problem described here and in this issue #738. Cheers, |
Beta Was this translation helpful? Give feedback.
Hi @cristinacivili-work,
Sorry for my late reply, Snow Owl 8.0.0 has been released a few weeks ago and it fixes the problem described here and in this issue #738.
Let us know if it solves the issue on your end as well.
Cheers,
Mark