ramses-antibiotics / snomedizer

An R Interface to the SNOMED CT API <https://github.com/IHTSDO/snowstorm>
https://snomedizer.web.app
Other
9 stars 1 forks source link

Invalid concept_is behaviour #26

Closed peterdutey closed 2 years ago

peterdutey commented 2 years ago

concept_is does not allow the narrowing down of an ECL query.

Current behaviour:

# check that bacterial pneumoniae (53084003) are excluded from the whole set of pneumoniae
# 10625071000119104  | Bronchopneumonia caused by bacteria (disorder) |
> concept_is("10625071000119104", target_ecl = "<<233604007 MINUS <<53084003") 
[1] TRUE    

Expected behaviour:

> concept_is("10625071000119104", target_ecl = "<<233604007 MINUS <<53084003") 
[1] FALSE

This is caused by original flaw in #12 #21. The revised function should no longer use the "<<" operator and expect the user to instead specify it in their query.