SNOMED Documentation Search


Versions Compared

Key

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

...

Please note that these steps do not necessarily need to be performed in this order. 

Add Repetition and Connectors

Expression templates may use explicit or default cardinalities to indicate parts of the expression that may be repeated (i.e. where the maximum cardinality is great than 1). In particular, a focus concept may be repeated, a relationship group may be repeated, or an attribute-value pair may be repeated. Repetition, however, is only required when multiple values are provided in the input data for a particular part of the template (see 7.1. Preparing Input Data). When multiple values are found in the input data, and this corresponds to a repeatable part of the expression template, the associated part of the expression must be duplicated to enable each separate value to be included.

...

Please note that when an expression is used to populate an attribute value, it may be required to add brackets around the attribute value to ensure syntactic correctness of the resulting expression

Replace Slot Values

With the repetition and connectors in place, the replacement slots must now be replaced with values. Each definition status, focus concept, attribute name and attribute value replacement slot must be removed, and the corresponding value from the input data inserted into the expression. After this step, the expression template above would look like the following:

Scg expression
Borderridge
ShowFormatblock
	[[1..*]] 40733004 |Disorder due to infection| + 19342008 |Subacute disease|:
		[[1..* @Group]] { [[1..* @CausedBy]] 246075003 |Causative agent| = 80166006 |Streptococcus pyogenes|,
											246075003 |Causative agent| = 113985000 |Streptococcus gallolyticus|,
							[[0..1 @After]] 255234002 |After| = 58718002 |Rheumatic fever| },
						{ [[1..* @CausedBy]] 246075003 |Causative agent| = 49872002 |Virus|,
							[[0..1 @After]] 255234002 |After| = }

Remove Information Slots

Once the information contained in the information slots has been interpreted and processed, the information slots can be removed from the template. After this step, the expression template above would look like the following:

Scg expression
Borderridge
ShowFormatblock
	40733004 |Disorder due to infection| + 19342008 |Subacute disease|:
		{ 246075003 |Causative agent| = 80166006 |Streptococcus pyogenes|,
			246075003 |Causative agent| = 113985000 |Streptococcus gallolyticus|,
			255234002 |After| = 58718002 |Rheumatic fever| },
		{ 246075003 |Causative agent| = 49872002 |Virus|,
			255234002 |After| = }

Clean Up

Clean up is an activity that can occur at any or all stages of template processing. However, any clean up that has not occurred during the previous stages, should be performed before completion. 

...