Skip to end of metadata
Go to start of metadata

Overview

Replacement slots may be given a replacement type to indicate what type of value may be used to replace the slot. The replacement type directly follows the '+' symbol inside the slot (with optional whitespace between). Permitted replacement types include:

  • id: The slot may be replaced by a single SNOMED CT concept reference.
  • scg: The slot may be replaced by a SNOMED CT compositional grammar expression (either a precoordinated or postcoordinated expression).
  • tok: The slot may be replaced by a token (or symbol) that is defined in the base syntax.
  • str: The slot may be replaced by a quoted string of characters. This is used to represent a concrete attribute value that is typed as a string.
  • int: The slot may be replaced by a integer (preceded by a '#' symbol). This is used to represent a concrete attribute value that is typed as an integer.
  • dec: The slot may be replaced by a decimal (preceded by a '#' symbol). This is used to represent a concrete attribute value that is typed as a decimal.

Please note, that if no replacement type is specified after the '+' symbol, then a replacement type of 'scg' is assumed.

Concept Replacement Slots

Slots with a replacement type of 'id' may only be replaced by a single concept reference. For example, the replacement slot in the following expression template

may be replaced by the concept  82271004 |Injury of head|to form the expression However, it is not possible to generate a nested expression using this expression template, as the slot may not be replaced by a postcoordinated expression.

Expression Replacement Slots

Slots with a replacement type of 'scg' may be replaced by any (precoordinated or postcoordinated) expression. For example, the slot in the following expression template

may be replaced by any of the following values to generate the following expressions. Please note that for the second and third replacements, the template processor must add round brackets around the subexpression to ensure that the resulting expression is syntactically valid.

Token Replacement Slots

Slots with a replacement type of 'tok' may be replaced by any token (or symbol) that is defined in the base language. For example, the following expression has a definition status that has not yet been defined.

If the definitionStatus |'<<<'|is used to complete the slot then the resulting expression would be:

Concrete Value Replacement Slots

Slots with a replacement type of 'str', 'int' or 'dec' may be replaced by any string, integer or decimal value respectively. For example, the slot in the expression template below:1

may be replaced by the string PANADOL to form the following expression Please note that the template processor must add quotation marks around the string to ensure that the resulting expression is syntactically valid.

The slot in the following expression template:

may be replaced by the integer value 30 to form the expression Please note that the template processor must add a hash symbol ("#") before the integer value to ensure that the resulting expression is syntactically valid.

And the slot in the following expression template:

may be replaced by the decimal value 1.5 to form the expression Please note that the template processor must add a hash symbol ("#") before the decimal value to ensure that the resulting expression is syntactically valid.


Footnotes
Ref Notes
1 Please note that these example expression templates are based on a hypothetical drug concept model, and are not intended to reflect any specific drug model. In these expressions, the SNOMED CT identifiers created with the '9999999' namespace are for example only, and should not be used in a production environment.


Feedback
  • No labels