SNOMED Documentation Search


Versions Compared

Key

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

Overview

The value that can be used to replace a slot in an expression template may be constrained by an expression constraint, value list constraint or range constraint (depending on the type of replacement slot). The following types of slot constraint may be used:

...

The following sections provide examples of each of these types of replacement constraints.

Expression Constraints

Expression constraints may be used to constrain the values permitted to replace a slot of type id or scg in an expression template.

...

Scg expression
Borderridge
ShowFormatblock
   71388002 |Procedure|:
      {260686004 |Method| = 312251004 |Computed tomography imaging action|, 
         405813007 |Procedure site - Direct| = 
            [[+scg (<< 442083009 |Anatomical or acquired body structure|)]]}

Value List Constraints

Value list constraints can be used to constrain the possible values that may replace slots of type tokstrint and dec.

...

Scg expression
Borderridge
ShowFormatblock
  323510009 |Amoxycillin 500mg capsule| : 
      { 749999999108 |Has pack size magnitude|  = #30, 
        759999999106 |Has pack size units|  =  428641000 |Capsule| }

Range Constraints

Range constraints can be used by slots of type int or dec to constrain the permitted replacement values. Range constraints may specify the minimum permitted value, the maximum permitted value or both. By default, ranges are inclusive (that is, the range includes the stated minimum and maximum values). However exclusive ranges (in which the stated minimum or maximum is not itself allows as a value) may be specified.

...