...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
71388002 |Procedure|:
{ { 260686004 |Method| = 312251004 |Computed tomography imaging action|,
405813007 |Procedure site - Direct| =
[[+id (<< 442083009 |Anatomical or acquired body structure|)]] } |
Because the concept
Concept |
---|
ShowParts | term |
---|
t | 16982005 |Shoulder region structure| |
---|
|
is a descendant or self of
Concept |
---|
ShowParts | term |
---|
t | 442083009 |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 |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
71388002 |Procedure|:
{ { 260686004 |Method| = 312251004 |Computed tomography imaging action|,
405813007 |Procedure site - Direct| = 16982005 |Shoulder region structure| } |
However, the concept
Concept |
---|
ShowParts | term |
---|
t | 278001007 |Nonspecific site| |
---|
|
may not be used as a replacement (because it is not a descendant or self of
Concept |
---|
ShowParts | term |
---|
t | 442083009 |Anatomical or acquired body structure| |
---|
|
).
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
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 tok, str, int and dec.
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
[[+tok (<<< ===)]] 281647001 |Adverse reaction (disorder)|:
246075003 |Causative agent (attribute)| = [[+id]] |
If the causative agent is assigned the value Concept |
---|
ShowParts | term |
---|
t | 372687004 |Amoxicillin| |
---|
|
then the following two expressions can be generated (depending on the token selected to replace the first slot).
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
<<< 281647001 |Adverse reaction (disorder)|: 246075003 |Causative agent (attribute)| = 372687004 |Amoxicillin| |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
=== 281647001 |Adverse reaction (disorder)|: 246075003 |Causative agent (attribute)| = 372687004 |Amoxicillin| |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = [[+str ("PANADOL" "TYLENOL" "HERRON")]] |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "PANADOL" |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "TYLENOL" |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
322236009 |Paracetamol 500mg tablet| : 209999999104 |Has trade name| = "HERRON" |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
323510009 |Amoxycillin 500mg capsule| :
{ 749999999108 |Has pack size magnitude| = [[+int (#10 #20 #30)]],
759999999106 |Has pack size units| = 428641000 |Capsule| } |
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
323510009 |Amoxycillin 500mg capsule| :
{ 749999999108 |Has pack size magnitude| = #10,
759999999106 |Has pack size units| = 428641000 |Capsule| } |
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
323510009 |Amoxycillin 500mg capsule| :
{ 749999999108 |Has pack size magnitude| = #20,
759999999106 |Has pack size units| = 428641000 |Capsule| } |
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
323510009 |Amoxycillin 500mg capsule| :
{ 749999999108 |Has pack size magnitude| = #30,
759999999106 |Has pack size units| = 428641000 |Capsule| } |
Range Constraints
...
Scg expression |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
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 |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
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 |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
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 |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
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 |
---|
Border | ridge |
---|
ShowFormat | block |
---|
|
323510009 |Amoxycillin 500mg capsule| :
{ 749999999108 |Has pack size magnitude| = [[+int (..#20)]],
759999999106 |Has pack size units| = 428641000 |Capsule| } |