Search



Versions Compared

Key

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

...

The following expression constraint is satisfied only by amoxicillin tablets, whose strength is greater than or equal to 200 mg

Footnote Macro

Please note that these examples example expressions are based on a hypothetical drug concept model, and is are not intended to reflect any specific drug model. Concepts for which an identifier has not been assigned have been shown with an identifier of '111115'.

is satisfied only by amoxicillin capsules, whose strength is greater than or equal to 500 mg.

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.

Scg expression
Borderridge
ShowFormatblock
   < 27658006 |Amoxicillin |:
         411116001 |Has dose form| = << 385049006428673006 |CapsuleTablet|,
       { 111115179999999100 |Has basis of strength| = ( 111115219999999102 |Amoxicillin only|:
               111115189999999103 |StrengthHas strength magnitude| >= #500#200, 111115199999999101 |StrengthHas strength unit| = 258684004 |mg|)}
Please note that, as per SNOMED CT Compositional Grammar, integer and decimal values are preceded by a hash character (e.g. "#500"), while string values are surrounded by double quotes (e.g. "PANADOL").

To find those capsules that have a strength between 500 and 800 mg (inclusive), the following expression constraint may be used:

Scg expression
Borderridge
ShowFormatblock
   < 27658006 |Amoxicillin |:
         411116001 |Has dose form| = << 385049006428673006 |CapsuleTablet|,
       { 111115179999999100 |Has basis of strength| = ( 111115219999999102 |Amoxicillin only|:
               111115189999999103 |StrengthHas strength magnitude| >= #500, 111115189999999103 |StrengthHas strength magnitude| <= #800, 111115199999999101 |StrengthHas strength unit| = 258684004 |mg|)}
Concrete values of type string may also be included in an expression constraint, and compared using an 'equal to' (i.e. "=") or 'not equal to' (i.e. "!=") operator. The following expression constraint is satisfied only by products with a trade name equal to "PANADOL".
Scg expression
Borderridge
ShowFormatblock
   < 373873005 |Pharmaceutical / biologic product|:
         111115209999999104 |TradeHas trade name| = "PANADOL"

Reverse Attributes

...

The previous expression constraint (which finds the set of body sites for any subtype of bone fracture) has an equivalent representation using the 'dot notation' of:

Scg expression
Borderridge
ShowFormatblock
   < 91723000 |Anatomical structure| AND < 125605004 |Fracture of bone|.363698007 |Finding site|
Because all values of
Scg expression
363698007 |Finding site|
 must be
Scg expression
< 91723000 |Anatomical structure|
 (according to the), this expression constraint can be further simplified to:
Scg expression
Borderridge
ShowFormatblock
   < 125605004 |Fracture of bone|.363698007 |Finding site|
The next example below finds the set of substances, which are active ingredients of a 'TRIPHASIL tablet'.
Scg expression
Borderridge
ShowFormatblock
   < 105590001 |Substance|: 
         R 127489000 |Has active ingredient| = 111115249999999101 |TRIPHASIL tablet|
This expression constraint is represented in the long syntax as:
Scg expression
Borderridge
ShowFormatblock
   descendantOf 105590001 |Substance|:
         reverseOf 127489000 |Has active ingredient| = 111115249999999101 |TRIPHASIL tablet|
An equivalent way of representing this constraint, using the 'dot notation' is:
Scg expression
Borderridge
ShowFormatblock
    < 105590001 |Substance| AND 111115249999999101 |TRIPHASIL tablet|.127489000 |Has active ingredient|
or (using the to simplify):
Scg expression
Borderridge
ShowFormatblock
   111115249999999101 |TRIPHASIL tablet|.127489000 |Has active ingredient|

...