Snow Owl Authoring Platform User Guide
9.5
9.5
  • Table of Content
  • 🦉Introduction
    • Getting Started
      • Features
      • How can I run it?
      • Login
        • Repositories
        • SNOMED CT Code Systems Configuration
        • Included SNOMED CT Version
    • User Interface
      • Editors
        • Introduction
        • Vertical Display
        • Horizontal Display
      • Views
        • Bookmarks View
          • Bookmarking
          • Delete
        • Remote Jobs View
      • Perspectives
      • Notification Center
    • Preferences
      • SNOMED CT Settings
      • Editor Tables
      • Reasoners
      • Keyboard Preferences
      • Avatars
  • 🔎Browsing and Searching
    • SNOMED CT View
      • Hierarchy
      • Sub-hierarchy
      • Link with Editor
      • Context Menu
      • Authoring Mode
      • Icons
      • Extension Modules
      • Parents View
    • Searching
      • Filter Search
        • Features
      • Quick Search
        • Features
      • Advanced Search
        • Search Dialog
          • SNOMED CT Concept Search
          • SNOMED CT Description Search
          • Searching for Reference Sets
        • Search View
          • Sorting Results
          • Toolbar
          • Preferences
    • Semantic Queries
      • ECL Operators
      • ECL Editor
      • Project Explorer View
        • Create
        • Expression File
          • Content Assist
          • Concept to Expression
          • Executing a Query
          • Validation
        • Template Preferences
    • Scripting
      • Create
      • Executing Scripts
    • Copying Content
  • 📝Editing and Authoring
    • Authoring Mode Selection
      • OWL Axiom Support
    • SNOMED CT Concept Editor
      • Preferences
      • Navigation
      • Features
      • Overview Page
        • Descriptions Section
        • Properties Section
        • SNOMED CT Properties Section
      • Descriptions Page
      • Relationship Pages
        • Source relationships Page
        • Destination relationships Page
      • Memberships Page
      • SNOMED CT Mappings Page
      • References Page
      • Visualization Page
    • SNOMED CT Editing
      • Concept Creation
        • Creating a Child Concept
        • Creating Sibling Concept
      • Concept Editing
        • Adding a Synonym
        • Changing the Preferred Term
        • Adding a Relationship
        • Editing Relationships
        • Adding Descriptions
        • Concept Reactivation
      • Removing Components
        • Concept Deleting
        • Concept Inactivation
        • Description Inactivation
    • Evaluating Changes
      • Concept History
      • Validation
      • Classification
  • 🧠Description Logic
    • Running the Classification
    • Classification Results
      • Relationship Changes Page
      • Equivalent Concepts Changes Page
      • Concept Changes Page
    • Reasoners
      • ELK
  • 🧱Concept model
    • Machine Readable Concept Model
      • MRCM domain members
      • MRCM attribute domain members
      • MRCM attribute range members
    • Editing MRCM
      • Module scope
      • Domain
      • Attribute
      • Range
  • 📄Reference Sets
    • Reference Set Types
      • Content type Reference Sets
        • Simple type Reference Sets
        • Query type Reference Sets
        • Attribute Value type Reference Sets
        • OWL Expression type Reference Sets
      • Language type Reference Sets
      • Map type Reference Sets
        • Simple Map type Reference Sets
        • Complex Map Type Reference Sets
        • Complex Map Extended with Map Block type Reference Sets
        • Extended Map type Reference Sets
      • Metadata type Reference Sets
        • MRCM Domain Reference Sets
        • MRCM Attribute Domain Reference Sets
        • MRCM Attribute Range Reference Sets
        • MRCM Module Scope Reference Set
        • Module Dependency Reference Set
        • Description Format type Reference Set
    • Reference Set View
      • Link Reference Set Editor with SNOMED CT View
      • Context Menu
      • Tooltips
    • Reference Set Editor
      • Toolbar
      • Context Menu
      • Preferences
    • Authoring
      • Creating Reference Sets
      • Removing/Inactivating Reference Sets
      • Adding Reference Set Members
      • Removing Reference Set Members
    • Combining Reference Sets
    • Compare Reference Sets
  • 🏥Local Code Systems
    • Import
      • Custom Spreadsheet
    • Searching
    • Authoring
      • Creating Local Code Systems
        • Additional Property Definitions
        • Property Validation
      • Deleting Local Code Systems
      • Adding Local Codes
      • Reparenting Local Codes
      • Inactivating Local Codes
      • Deleting Local Codes
    • Validation
    • Export
  • 📅Versioning
    • Introduction
    • Creating a New Version
    • Switching Between Versions
    • Version Compare
      • Browse Changes
      • Export Results
  • 🔁Content Management
    • Code Systems
    • Code Systems View
    • SNOMED CT Importing
    • SNOMED CT Publishing
      • SNOMED CT Reference Set Export
    • SNOMED CT Extensions
    • SNOMED CT Upgrade
      • Perform Upgrade
      • Complete Upgrade Process
  • 👩‍⚕️👨‍⚕️ Collaborative authoring
    • Task Life Cycle
    • The Task List View
    • Task Editor
      • Overview Page
      • Task Changes Page
      • Review Changes Page
    • Authoring
      • Creating a Task
      • Assigning Tasks
      • Activating Tasks
      • Synchronizing Tasks
      • Module-based Editing
      • Promoting and Closing Tasks
      • Commenting on Tasks
      • Review Tasks
        • Approve Changes
        • Reject Changes
        • Request Changes
    • Task Query
  • ✅Validation
    • Run Validation
    • Validation Issues View
      • Filters
      • Validation Result & Export
    • Whitelisting
      • Import
      • Export
  • 📓SNOMED CT Templates
    • SNOMED CT Templates
    • Import
    • Templates View
    • Authoring
      • Creating Templates
      • Deleting Templates
    • Concept Creation by Templates
      • Single Concept Creation
      • Bulk Concept Creation
    • Export
  • 🩺UMLS Code Systems
    • Import
    • Manage Code Systems
    • Searching and Browsing
  • 🛑Error Handling
    • Troubleshooting
      • Error Log View
    • Error Messages
Powered by GitBook
On this page
  1. Browsing and Searching
  2. Semantic Queries

ECL Operators

PreviousSemantic QueriesNextECL Editor

For a step by step introduction about writing ECL queries, please refer to the from SNOMED International.

Table 1. ECL operators

Operator

Function

<<

Retrieves concepts and all of their subtypes

<

Retrieves all subtypes of the selected concept

<!

Retrieves all immediate children of the specified concept

>>

Retrieves the concept and all ancestors of the specified concept

>

Retrieves all ancestors of the specified concept

>!

Retrieves all immediate parents of the specified concept

!!<

Bottom (concept in the lowest position - no descendants - among the results of the subexpression)

!!>

Top (concept in the highest position - no ancestor - among the results of a subexpression)

|text|

Display Preferred term of the concept to aid readability

^

Retrieves all the members of this reference set

*

Retrieves all concepts

R

Represents reverse attributes

:

Defines an attribute refinement, e.g. a Finding site or a Causative agent

=

Refines an attribute range, the operator is used in combination with an attribute

!=

Defines an attribute range, represents not equals to

MINUS

Exclude concepts or members

AND

Used to express intersections of attribute ranges

OR

Used to express unions of attribute ranges

[..]

Used to express cardinality on attributes and attribute groups

Table 2. ECL examples

Query

Meaning

22298006|Myocardial infarction|

Retrieves the specified concept

<<267038008|Oedema|

Retrieves the specified concept and all of its subtypes

<267038008|Oedema|

Retrieves the subtypes of the specified concept, but not the concept itself

<! 405533003|Adverse incident outcome categories|

Retrieves the immediate children of the specified concept

>>247441003|Erythema|

Retrieves the concept and all ancestors of the concept

> 247441003|Erythema|

Retrieves all ancestors of the concept

>! 40541001|Acute pulmonary edema|

Retrieves the immediate parents of the specified concept

^999001381000000100|Activity of daily living simple reference set|

Retrieves all members of the specified reference set

*

Retrieves all concepts

<91723000|Anatomical structure|:R 363698007|Finding site|= <125605004|Fracture of bone|

Retrieves the set of anatomical structures, which are the finding site of a type of bone fracture

< 19829001|Disorder of lung|: 116676008|Associated morphology|= <<79654002|Edema|

Retrieves the specified lung disorder and their subtypes which have an associated morphology relationship with the value of Edema or its subtypes

*:246075003|Causative agent|= 387517004|Paracetamol|

Retrieves all those concepts which have a Causative agent with the value of Paracetamol

< 404684003|Clinical finding|:{363698007|Finding site|= <<39057004|Pulmonary valve structure|, 116676008|Associated morphology|= <<415582006|Stenosis|}

Retrieves the subtypes of Clinical finding which have Finding site with the value of Pulmonary valve structure or its subtypes and Associated morphology with the value of Stenosis or its subtypes in the same relationship group. Curly braces represent relationship group

<373873005|Pharmaceutical / biologic product|: [1..3] 127489000|Has active ingredient|= <105590001|Substance|

Retrieves those pharmaceutical /biological products which have one, two, or three active ingredients with the value of Substance subtypes

< 19829001|Disorder of lung|AND <301867009|Edema of trunk|

Retrieves the subtypes of Disorder of lung and the subtypes of Edema of trunk

<404684003|Clinical finding|: 363698007|Finding site|= <<39057004|Pulmonary valve structure|AND 116676008|Associated morphology|= << 415582006|Stenosis|

Retrieves the subtypes of Clinical finding which have a Finding site with the specified value range and an Associated morphology with the specified value range

< 404684003|Clinical finding|: 116676008|Associated morphology|= << 55641003|Infarct|OR 42752001|Due to|= <<22298006|Myocardial infarction|

Retrieves the subtypes of Clinical finding which have either an Associated morphology with the value of Infarct or its subtypes or a Due to relationship with the value of Myocardial infarction or its subtypes

<< 19829001|Disorder of lung|MINUS <<301867009|Edema of trunk|

Retrieves the subtypes of and the specified concept itself with the exception of the subtypes of and Edema of trunk itself

In order to help writing ECL queries, Snow Owl offers a built-in content assist. To invoke it, press Ctrl/Cmd + Space and you can pick from a set of operators that are valid depending on the current position of the cursor.

For more examples, please visit the Examples section of .

🔎
Expression Constraint Language specification and guide
Expression Constraint Language specification and guide