# Logical Model

A SNOMED CT template is a SNOMED CT expression, expression constraint, or query that contains one or more *slots.* Each template slot either provides information as to how the template should be processed (i.e. an information slot), or serves as a placeholder for a specific value that may be completed at a subsequent time. Each replacement slot may have a replacement type (e.g. concept, expression, token, string, integer, decimal or boolean), a slot name, and a replacement constraint. Depending on the replacement type, the replacement constraint may either be an expression constraint, a value list constraint or a range constraint. Each information slot may have a cardinality and a slot name.

## Logical Model

The SNOMED CT template syntax defines the syntax used for these slots, irrespective of the computable language in which they are embedded. Figure 4-1 below illustrates the abstract model of the SNOMED CT template syntax. Please note that no specific semantics should be attributed to each arrow in this diagram.

<figure><img src="/files/ftCmh6Gr05PO1MKQvLrf" alt=""><figcaption><p>Figure 4-1: Abstract model of SNOMED CT Template Syntax</p></figcaption></figure>

## UML Class Diagram

The figure below provides a non-normative representation of the logical model of the SNOMED CT Template Syntax using a UML class diagram.

Please note that each of the classes in this diagram corresponds to a rule in the syntax specification defined in [Syntax Specification](/snomed-ct-specifications/snomed-ct-template-syntax-specification/5-syntax-specification.md). For a short description of each of these, please refer to [Informative Comments](/snomed-ct-specifications/snomed-ct-template-syntax-specification/5-syntax-specification/5.2-informative-comments.md).

<figure><img src="/files/wYKcwFIACK6K4oBDcx2O" alt=""><figcaption><p>Figure 4.1-1: UML class diagram of template syntax</p></figcaption></figure>

\*\*\
\*\*

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=SNOMED+Template+Syntax+Specification&#x26;entry.670899847=Logical%20Model" class="button primary">Provide Feedback</a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snomed.org/snomed-ct-specifications/snomed-ct-template-syntax-specification/4-logical-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
