Expression templates can be used to author precoordinated clinical meanings by providing reusable patterns for the definition of similar concepts. Expression templates can define the set of attributes and attribute values that may be used to define concepts in a specific hierarchy or subhierarchy, thereby assisting SNOMED CT authors to create concepts in a consistent way. They can also be used together with an input file to either create or update batches of concepts very efficiently. Using expression templates to author SNOMED CT concepts can help to improve the quality of the terminology, by controlling the consistency of the definitions, and by validating concept definition against appropriate templates. Similarly, they can also be used as a metric to measure the quality of given subhierarchy.

In summary, expression templates can be used by terminology authors to:

The table below shows an expression template that may be used to define computed tomography (CT) concepts of a particular body site (e.g. CT of right arm). The 'bodysite' slot represents the placeholder, which is subsequently replaced with a specific body site concept to form a complete concept definition. 


Template (diagram)Template (syntax)




71388002 |Procedure|:
   {363704007 |Procedure site| = [[+id @bodysite]],
    260686004 |Method| = 312251004 |Computed tomography imaging action|}



An example expression template


The following table shows the expressions that result when processing the template using a specific slot value: 

bodysiteResulting Expression


71388002 |Procedure|:
   {363704007 |Procedure site| = 48979004 |Structure of left lower leg|,
    260686004 |Method| = 312251004 |Computed tomography imaging action|}



71388002 |Procedure|:
   {363704007 |Procedure site| = 368209003 |Right upper arm structure|,
    260686004 |Method| = 312251004 |Computed tomography imaging action|}




Expressions that result from populating the example expression template