SNOMED Documentation Search


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

In addition to the simple examples shown on the previous pages, more advanced expression templates can also be used. On this page we show some examples of expression constraints with multiple replacement slots, multiple cardinality constraints and slot co-dependency constraints.

Multiple Replacement Slots

In many situations, it is useful for an expression template to contain more than one replacement slot. Below are some examples.

Example 1

The following expression template uses three replacement slots to generate an expression that represents a type of procedure. The first slot (named "Procedure") is a placeholder for the focus concept, while the second slot (named "BodySite") is a placeholder for the

Concept
ShowPartsterm
t405813007 |Procedure site - Direct|
, and the third slot (named "Method") is a placeholder for the
Concept
ShowPartsterm
t260686004 |Method|

...

Scg expression
Borderridge
ShowFormatblock
	387713003 |Surgical procedure|: 
		{ 405813007 |Procedure site - direct| = 66754008 |Appendix structure|, 
			260686004 |Method| = 129304002 |Excision - action| }

Example 2 

Another example of an expression template with multiple slots is shown below. This expression template is used to generate expressions that represent the family history of a patient. The template contains two slots - the first slot (named "Finding") is a placeholder for the 

Concept
ShowPartsterm
t404684003 |Clinical finding|
 known to be present in the family member, while the second slot (named "Relationship") is a placeholder for the 
Concept
ShowPartsterm
t408732007 |Subject relationship context|
 of this
Concept
ShowPartsterm
t404684003 |Clinical finding|
.

...

Scg expression
Borderridge
ShowFormatblock
	243796009 |Situation with explicit context|:
		{ 246090004 |Associated finding| = 46635009 |Diabetes mellitus type 1|,
			408731000 |Temporal context| = 410511007 |Current or past (actual)|,
			408729009 |Finding context| = 410515003 |Known present|,
			408732007 |Subject relationship context| = 444301002 |Mother of subject| }

Multiple Cardinality Constraints

Expression templates may also use more than one cardinality constraint to indicate the repeatability of different parts of the expression. Below are some examples.

Example 1

The following expression template uses three replacement slots to generate an expression that represents a type of procedure. The first slot (named "Procedure") is a placeholder for the focus concept, while the second slot (named "BodySite") is a placeholder for the 

Concept
ShowPartsterm
t405813007 |Procedure site - Direct|
, and the third slot (named "Method") is a placeholder for the 
Concept
ShowPartsterm
t260686004 |Method|

...

Scg expression
Borderridge
ShowFormatblock
	387713003 |Surgical procedure|: 
		{ 405813007 |Procedure site - direct| = 66754008 |Appendix structure|, 260686004 |Method| = 129304002 |Excision - action| }

Example 2

Another example of an expression template with multiple cardinality constraints is shown below. This expression template is used to generate expressions that represent a clinical finding with explicit context.

...