These are reproduced from Appendix A of the Expression Constraint Language - Specification and Guide. For more detailed information and help with ECL please refer to that document.
Simple Expression Constraints
Expression Constraint
Valid Expression1
Precoordinated
Postcoordinated
-
-
*
Footnotes Ref Notes 1 Where necessary, these examples make some assumptions about the membership of the example reference sets. 2 Please note that this makes the assumption that the given expression constraint is executed against a finite set of expressions that has been pre-classified (e.g. in an expression repository), and that after classification there are no intermediate expressions between this expression and 404684003 |Clinical finding|. 3 Please note that this makes the assumption that the given expression constraint is executed against a finite set of expressions that has been pre-classified (e.g. in an expression repository), and that after classification there are no intermediate expressions between 40541001 |Acute pulmonary edema| and this expression.
Refinements
Footnotes Ref Notes 1 Please note that some of these examples are based on a hypothetical drug concept model. These examples are not intended to reflect any specific drug model. 2 SNOMED CT identifiers with the '9999999' namespace were created for example only, and should not be used in a production environment.
Cardinality
Expression Constraint
Valid Expression1
Precoordinated
Postcoordinated
-
64572001 | Disease| :
{ 116676008 | Associated morphology| =
396351009 | Congenital septal defect| ,
363698007 | Finding site| =
25943004 | Structure of atrioventricular node| ,
363698007 | Finding site| =
113262008 | Thoracic aorta structure| }
{ 116676008 | Associated morphology| =
90141005 | Congenital hypertrophy| ,
363698007 | Finding site| =
244384009 | Entire right ventricle| }
< 373873005 |Pharmaceutical / biologic product| : [1..3] { [1..*] 127489000 |Has active ingredient| = < 105590001 |Substance| }
< 404684003 |Clinical finding| :
[0..0] { [2..*] 363698007 |Finding site| = < 91723000 |Anatomical structure| }
Footnotes Ref Notes 1 The SNOMED CT identifiers created with the '9999999' namespace are for example only, and should not be used in a production environment. 2 As mentioned earlier, only non-redundant defining attributes are included in the cardinality count. Because <a href="http://snomed.info/id/62413002" title="62413002 | Bone structure of radius |" class="external-link conf-macro output-inline" rel="nofollow" data-hasbody="false" data-macro-name="concept"> <span style="color: #606060;" class="sctid">62413002</span> <span style="color: #00ccff;" class="sctpipe">|</span> <span style="color: #000000;" class="sctid">Bone structure of radius</span><span style="color: #00ccff;" class="sctpipe">|</span></a> is a subtype of <a href="http://snomed.info/id/299701004" title="299701004 | Bone of forearm |" class="external-link conf-macro output-inline" rel="nofollow" data-hasbody="false" data-macro-name="concept"> <span style="color: #606060;" class="sctid">299701004</span> <span style="color: #00ccff;" class="sctpipe">|</span> <span style="color: #000000;" class="sctid">Bone of forearm</span><span style="color: #00ccff;" class="sctpipe">|</span></a> , the refinement "<span class="conf-macro output-inline" data-hasbody="false" data-macro-name="concept"> <a href="http://snomed.info/id/363698007" title="363698007 | Finding site |" class="external-link" rel="nofollow"> <span style="color: #606060;" class="sctid">363698007</span> <span style="color: #00ccff;" class="sctpipe">|</span> <span style="color: #000000;" class="sctid">Finding site</span><span style="color: #00ccff;" class="sctpipe">|</span></a> <span style="color: #a00000;" class="sctid"> = </span> <a href="http://snomed.info/id/299701004" title="299701004 | Bone of forearm |" class="external-link" rel="nofollow"> <span style="color: #606060;" class="sctid">299701004</span> <span style="color: #00ccff;" class="sctpipe">|</span> <span style="color: #000000;" class="sctid">Bone of forearm</span><span style="color: #00ccff;" class="sctpipe">|</span></a> </span>" is redundant.
Conjunction and Disjunction
Expression Constraint
Valid Expression1
Precoordinated
Postcoordinated
< 404684003 |Clinical finding| :
{ 363698007 |Finding site| = << 39057004 |Pulmonary valve structure| ,
116676008 |Associated morphology| = << 415582006 |Stenosis| } OR
{ 363698007 |Finding site| = << 53085002 |Right ventricular structure| ,
116676008 |Associated morphology| = << 56246009 |Hypertrophy| }-
Footnotes Ref Notes 1 Where necessary, these examples make some assumptions about the membership of the example reference sets.
Exclusion and Not Equals
Expression Constraint
Valid Expression1
Precoordinated
Postcoordinated
< 404684003 | Clinical finding| :
116676008 | Associated morphology| =
((<< 56208002 | Ulcer| AND
<< 50960005 | Hemorrhage| ) MINUS
<< 26036001 | Obstruction| )64572001 | Disease| :
{ 116676008 | Associated morphology| =
26036001 | Obstruction| ,
363698007 | Finding site| =
422897007 | Vascular structure of stomach| }
{ 116676008 | Associated morphology| =
45771005 | Acute bleeding ulcer| ,
363698007 | Finding site| =
422897007 | Vascular structure of stomach| }< 404684003 | Clinical finding| :
[0..0] 116676008 | Associated morphology|
!= << 26036001 | Obstruction| AND
[1..*] 116676008 | Associated morphology|
= << 26036001 | Obstruction|
Footnotes Ref Notes 1 Where necessary, these examples make some assumptions about the membership of the example reference sets.
Nested Expression Constraints
Expression Constraint
Valid Expression1
Precoordinated
Postcoordinated
--
-
<< 125605004 |Fracture of bone| :
[0..0] ((<< 410662002 |Concept model attribute| MINUS 363698007 |Finding site| ) MINUS 116676008 |Associated morphology| ) = *
Footnotes Ref Notes 1 Where necessary, these examples make some assumptions about the membership of the example reference sets.