We are a TIF Framework partner of the NHS and seeking for help in framing the ECL query to determine allergy-intolerance-categories i.e. Food, Medication, Environment, and Biologic along with determine Type I.e. Allergy and Intolerance.
Sorry I am not able to advise on how to do the mapping to category as I am not clinical.
However reading the SNOMED documentation I noticed that there is an allergy demonstration application. I have noticed that if you enter 91936005|Allergy to penicillin| most of the fields in the application are filled in including “Substance Category”. In the top right hand corner of this application is a circle with an "i” in it which is a link to the code in Github, here is the link: GitHub - IHTSDO/sct-implementation-demonstrator.
I would recommend looking at the code and seeing how SNOMED have done the mapping. However I cannot guarantee that SNOMED have done it correct either.
Also it might be worth giving feedback in the SNOMED documentation that it would be useful to include documentation on how to map to Substance Category.
We have now reviewed and analysed the approach in detail and identified the following ECL expressions. These expressions work for many SNOMED CT concepts; however, they do not cover all cases, as outlined below.
ECL Expressions Identified
To determine type:
http://snomed.info/sct?fhir_vs=ecl/> 417532002 |Allergy to fish| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)
http://snomed.info/sct?fhir_vs=ecl/> 735971005 |Fish| AND (762766007 |Edible substance| OR 115668003 |Biological substance (substance)| OR 410942007 |Drug or medicament (substance)| OR 57795002 |Chemical element|)
Identified Gaps
The above approach does not work for the following SNOMED CT concepts:
These concepts appear to follow different modelling patterns, which prevents them from being captured by the current ECL expressions.
Request for Guidance
Could you please advise on how we can extend or modify the ECL logic so that it reliably covers all relevant allergy, intolerance, and adverse reaction concepts, including the examples above?
<< 418038007 |Propensity to adverse reactions to substance|
OR
<< 420134006 |Propensity to adverse reaction (finding)|
The first code (418038007|Propensity to adverse reactions to substance|) is inactive in the latest version of SNOMED CT UK edition. So the ECL below will not return any data other than the code itself.
<<418038007|Propensity to adverse reactions to substance|