SNOMED Documentation Search


  

In addition to a type and a constraint, replacement slots may also be given a name. Slot names are explained in more detail below.

Slot Names

Replacement slots may be given a slot name, to allow them to be referenced from outside the slot. There are a variety of reasons to do this, including assigning a value to each slot and creating a co-dependency constraint between slots. The most common use of slot names is to refer to the slot to which a value is assigned, during the process of populating the template.

Slot names are defined within the slot using an '@' prefix. For example, the following expression template includes one slot that represents the value of  | Associated with| . This slot has been given the slot name "finding".

If a segment of code, a data file or a document assigns the value  56265001 | Heart disease|  to the finding slot (e.g.  finding =  56265001 | Heart disease| ), then the following expression can be created.

Repeated Slot Names

Slot names may be repeated within a template. When the same slot name is associated with more than one slot in the same template, it indicates that these slots must be populated with the same value.

For example, the expression template below has two slots, which have each been given the name "site".

     404684003 |Finding| :
        { 
363698007 |Finding site|  = [[+ @site]],
            
363714003 |Interprets|  = ( 363787002 |Observable entity| 704319004 |Inheres in|  = [[+ @site]]) }
If we assign the value  | Liver structure|  to the slots named "site" (i.e. site = | Liver structure| ), the below expression would be created. For additional uses of slot names, please refer to  8.6. Advanced Expression Templates.


Feedback
  • No labels