|
Example Use of eclQuery Procedure |
SQL Call to Procedure | |||||
call snap_eclQuery(p_ecl); | |||||
Parameter | Description | Data type | Examples | ||
p_ecl | The ECL query text | text | (< 19829001 |disorder of lung|) OR (< 301867009 |edema of trunk|) '(< 19829001 |disorder of lung|) MINUS (< 301867009 |edema of trunk|)' '>> 40541001 |Acute pulmonary edema|' '>39057004 |pulmonary valve|' '>!39057004 |pulmonary valve|' | ||
Example Procedure Call | |||||
| |||||
Result | |||||
conceptId | term | ||||
10519008 | Acute pulmonary oedema due to fumes AND/OR vapours | ||||
40541001 | Acute pulmonary oedema | ||||
61233003 | Silo-fillers' disease | ||||
233706004 | Drug-induced acute pulmonary oedema | ||||
233709006 | Toxic pulmonary oedema | ||||
233710001 | Chemical-induced pulmonary oedema | ||||
233711002 | Oxygen-induced pulmonary oedema | ||||
360371003 | Acute cardiac pulmonary oedema | ||||
10674871000119105 | Pulmonary oedema caused by chemical fumes |
The following notes provide a brief summary of the extent to which this procedure supports evaluation of expression constraints. For a full and detailed understanding of SNOMED CT expression constraints see the specification of the SNOMED CT Expression Constraint Language.
ECL Operator | Summary | Example | |
Symbol | Name | ||
< | Descendant of | The set of all subtypes of the given concept | < 404684003 |Clinical finding| |
<< | Descendant or self of | The set of all subtypes of the given concept plus the concept itself | << 73211009 |Diabetes mellitus| |
> | Ancestor of | The set of all supertypes of the given concept | > 40541001 |Acute pulmonary edema| |
>> | Ancestor or self of | The set of all supertypes of the given concept plus the concept itself | >> 40541001 |Acute pulmonary edema| |
<! | Child of | The set of all children of the given concept | <! 195967001 |Asthma| |
>! | Parent of | The set of all parents of the given concept | >! 195967001 |Asthma| |
^ | Member of | The set of referenced components in the given reference set | ^ 733990004 |Nursing activities reference set| |
* | Any | Any concept in the given SNOMED CT edition | * |
: | Refinement | Only those concepts whose defining relationships match the given attribute value pairs | < 404684003 |clinical finding|: 116676008 |associated morphology| = * |
AND | Conjunction | Only those concepts in both sets | (< 19829001 |disorder of lung|) AND (< 301867009 |edema of trunk|) |
OR | Disjunction | Any concept that belongs to either set | (< 19829001 |disorder of lung|) OR (< 301867009 |edema of trunk|) |
MINUS | Exclusion | Concepts in the first set that do not belong to the second set | (< 19829001 |disorder of lung|) MINUS (< 301867009 |edema of trunk|) |
The following notes outline the extent to which this procedure supports the SNOMED CT expression constraints and highlights some of the most significant limitations of this procedure.
Each constraint must start with a focus concept constraint expressed as one of the following:
A single conceptId specifying that concept as the focus concept.
A single conceptId preceded by < (specifying subtypes only) or << (specifying self or subtypes)
A conceptId that identifies a reference set preceded by a ^ indicating members of that reference set.
An asterisk * (indicating any concept)
In all cases a concept Id may be followed by a term surrounded by pipe characters.
The term between pipes will be ignored for processing.
Spaces between any elements in the expression will be ignored
The focus constraint may optionally be followed by a refinement constraint separated from the focus constraint by a colon :
The Procedure does not support:
The Procedure also requires that: