Open liquid36 opened 3 months ago
The ECL ^ "Member of" operator selects the current members of a given reference set. Regardless of if the concept itself is active or not. However it will not include concepts referenced in inactive refset member rows.
This is the active member of the SNOMED CT to ICD-10 reference set that references the inactive concept in your example: https://browser.ihtsdotools.org/snowstorm/snomed-ct/MAIN/2024-03-01/members?referenceSet=446608001&referencedComponentId=362291003
The Member of operator results in different behaviour to the hierarchy based ECL operators. When using hierarchy operators only active concepts are returned because inactive concepts have no active relationships, and are therefore not part of the hierarchy. However an inactive concept can still be a member of a reference set.
The inactive concepts within a reference set can be found using the member operator and the concept filter. For example:
^ 446608001 |SNOMED CT to ICD-O simple map reference set| {{ C active = false }}
This SNOMED CT to ICD-O map contains 82 inactive concepts in the latest (August 2024) International Edition.
There are some reference sets that only contain inactive concepts, for example the inactivation indicator and historical association reference sets.
I hope that helps.
I tried the concept filter in the ECL and it worked fine. What is the purpose of activeFilter param?
Thanks.
You have a good point. The activeFilter
is supposed to work, even when running ECL.
It looks like there is a bug: the active filtering is not being applied when using the returnIdOnly
parameter.
These two requests, with the same ecl
and activeFilter
give a different results count:
The returnIdOnly
parameter is intended for more advanced users who need better performance. Applying the ECL concept filter {{ C active = false }}
is a good workaround.
Hi! I'm dealing with a posible issue. When I request snowstorm for an ECL, it return inactive concepts.
I tried it in my local machine and in the Snomed Browser. I imported this version SnomedCT_InternationalRF2_PRODUCTION_20240301T120000Z.zip into MAIN.
ECL: ^446608001
In the response, i found the concept 362291003 which is inactive in the current branch.
https://browser.ihtsdotools.org/snowstorm/snomed-ct/browser/MAIN/2024-03-01/concepts/362291003?descendantCountForm=inferred
What am i missing?