IHTSDO / snowstorm

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

Get an intersection of refset members and a result of ECL expression #124

Closed pavlushkin closed 4 years ago

pavlushkin commented 4 years ago

Hello, could you help me with a question?

How can I get a list of concepts that are simultaneously

There are two queries that work fine if executed separately, but I can't combine it to get their intersection.

Thanks!

pavlushkin commented 4 years ago

I found the solution. It could be handled by ECL syntax only.

For example, this ECL query returns all refset members that are disorders:

{{url}}/fhir/ValueSet/$expand?url=http://snomed.info/sct?fhir_vs=ecl/^450970008 |General Practice / Family Practice reference set (foundation metadata concept)| 
AND << 64572001 |Disease (disorder)|

If ^ does not work, use %5E instead.

pgwilliams commented 4 years ago

That's it exactly!