SNOMED Documentation Search


Versions Compared

Key

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

...

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

Because the concept 

Concept
ShowPartsterm
t16982005 |Shoulder region structure|
 is a descendant or self of 
Concept
ShowPartsterm
t442083009 |Anatomical or acquired body structure|
, it may be used to replace the slot in the above expression template, resulting in the following expression.

Scg expression
Borderridge
ShowFormatblock
   	71388002 |Procedure|:
      {		{ 260686004 |Method| = 312251004 |Computed tomography imaging action|, 
         			405813007 |Procedure site - Direct| = 16982005 |Shoulder region structure| }

However, the concept 

Concept
ShowPartsterm
t278001007 |Nonspecific site|
 may not be used as a replacement (because it is not a descendant or self of
Concept
ShowPartsterm
t442083009 |Anatomical or acquired body structure|
).

...

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
   	[[+tok (<<< ===)]] 281647001 |Adverse reaction (disorder)|:
      		246075003 |Causative agent (attribute)| = [[+id]]                           

If the causative agent is assigned the value 

Concept
ShowPartsterm
t372687004 |Amoxicillin|
 then the following two expressions can be generated (depending on the token selected to replace the first slot).

Scg expression
Borderridge
ShowFormatblock
   	<<< 281647001 |Adverse reaction (disorder)|: 246075003 |Causative agent (attribute)| = 372687004 |Amoxicillin|

...

Scg expression
Borderridge
ShowFormatblock
   	=== 281647001 |Adverse reaction (disorder)|: 246075003 |Causative agent (attribute)| = 372687004 |Amoxicillin|

...

Scg expression
Borderridge
ShowFormatblock
     	322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = [[+str ("PANADOL" "TYLENOL" "HERRON")]]

...

Scg expression
Borderridge
ShowFormatblock
     	322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "PANADOL"

...

Scg expression
Borderridge
ShowFormatblock
     	322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "TYLENOL"

...

Scg expression
Borderridge
ShowFormatblock
     	322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "HERRON"

...

Scg expression
Borderridge
ShowFormatblock
  	323510009 |Amoxycillin 500mg capsule| : 
      
	{ 749999999108 |Has pack size magnitude|  = [[+int (#10 #20 #30)]], 
        		759999999106 |Has pack size units|  =  428641000 |Capsule| }

...

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


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


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

Range Constraints

...

Scg expression
Borderridge
ShowFormatblock
  	323510009 |Amoxycillin 500mg capsule| : 
      
		{ 749999999108 |Has pack size magnitude|  = [[+int (#20..#30)]], 
        			759999999106 |Has pack size units|  =  428641000 |Capsule| }

To specify exclusive minimum values, a greater than sign (‘>’) is placed before the minimum value, and to specify exclusive maximum values, a less than sign (‘<’) is placed before the maximum value. For example, the following expression template allows any pack size that is between 20 and 30 capsules (exclusive). This range constraint is equivalent to an inclusive range of 21..29.

Scg expression
Borderridge
ShowFormatblock
  	323510009 |Amoxycillin 500mg capsule| : 
      
		{ 749999999108 |Has pack size magnitude|  = [[+int (>#20..<#30)]], 
        
			759999999106 |Has pack size units|  =  428641000 |Capsule| }

Multiple ranges may be specified in a single range constraint. When multiple ranges are specified, these should be interpreted as alternative ranges. For example, the expression template below permits any pack size between 10 and 20 capsules (inclusive), or between 30 and 40 capsules (inclusive). This template does not, for example, permit a pack size between 21 and 29 capsules. 

Scg expression
Borderridge
ShowFormatblock
  	323510009 |Amoxycillin 500mg capsule| : 
      
		{ 749999999108 |Has pack size magnitude|  = [[+int (#10..#20 #30..#40)]], 
        			759999999106 |Has pack size units|  =  428641000 |Capsule| }

When a minimum value is required with no maximum, it is possible to omit the maximum value in a range constraint. For example, the expression template below permits any pack size greater than or equal to 20 capsules.

Scg expression
Borderridge
ShowFormatblock
  	323510009 |Amoxycillin 500mg capsule| : 
      
		{ 749999999108 |Has pack size magnitude|  = [[+int (#20..)]], 
        
			759999999106 |Has pack size units|  =  428641000 |Capsule| }

Similarly, it is also possible to state a maximum without a minimum constraint. For example, the expression template below permits any pack size less than or equal to 20 capsules. It should be noted that without a concept model rule to ensure that all pack sizes are greater than zero, this template will, by default, allow a pack size of zero or a negative pack size to be defined.

Scg expression
Borderridge
ShowFormatblock
  	323510009 |Amoxycillin 500mg capsule| : 
      
		{ 749999999108 |Has pack size magnitude|  = [[+int (..#20)]], 
        
			759999999106 |Has pack size units|  =  428641000 |Capsule| }


Display Footnotes Macro