> For the complete documentation index, see [llms.txt](https://docs.snomed.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snomed.org/snomed-ct-user-guides/authoring-user-guide/how-to/task-taxonomy-and-concept-search/search-for-concepts-by-template-matching.md). Agents can also search and read this documentation through its [MCP server](https://docs.snomed.org/~gitbook/mcp).

# Search for concepts by Template matching

| Steps                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | References                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>When in text search mode (default on opening <em>Task View - Search</em> tab), first press <code>Switch to ECL.</code><br></p><p>When in ECL search mode, press <code>Switch to Template</code>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-2380808c28aff055781e8e1f271ea1920935d16c%2F100893680?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-9a08542303af364e0bb59bbebb40b5691213de8a%2F100893918.png?alt=media" alt=""><figcaption></figcaption></figure></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p>The search tab changes to Template search mode, with a template name query box at the top of the search panel.<br></p><p>Type a template name (or part of a name) into the search query box - type-ahead searching starts after at least three characters are entered, with matching available template names presented in a drop-down selection box below the query.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-47f3d5400e5e2fb4dff419b884d048dfa19f0ebb%2F100893916.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-26d4c08e576972b4f6172b45a7ff2a3555315135%2F100893920.png?alt=media" alt=""><figcaption></figcaption></figure></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p>Select a template from the drop-down selection box.<br></p><p>The selected full template name is placed into the query box and a search commences for matching concepts.<br></p><p>The phrase "Searching..." shows in the results panel until results are available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-1b3eb00eb9d2ccd178207d8ca8c470aaca88f45f%2F100893921.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-cff415b6a51db66394dce8a77199e05924532fe5%2F100893922.png?alt=media" alt=""><figcaption></figcaption></figure></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p>When matches are found the search results list all concepts that match the selected template, with the default options of:</p><ul><li><code>Stated</code> view</li><li>All definition statuses ( <code>Primitive</code> and <code>Fully defined</code> )</li><li><code>Logical</code> model matches</li></ul><div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p><strong>Working with Template search results</strong><br></p><p>Template search results are formatted and presented in the same way as text search and ECL search results.<br></p><p>See <a href="https://docs.snomed.org/snomed-ct-user-guides/authoring-user-guide/how-to/task-taxonomy-and-concept-search/search-for-concepts-by-template-matching.md">Work with large search results sets</a> and <a href="https://docs.snomed.org/snomed-ct-user-guides/authoring-user-guide/how-to/task-taxonomy-and-concept-search/search-for-concepts-by-template-matching.md">Act on search results</a> for more information.</p></div> | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-bdedec8523e52eab2a51c5d2044ee4704382f9a7%2F100893923.png?alt=media" alt=""><figcaption></figcaption></figure></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| The default Template search finds matches in the `Stated` view, however this can be switched to `Inferred view` matches using the drop-down view mode selector.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-65ed31c460ab08c679f32bd11133e49709f97835%2F100893924.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-abd9ce84297aad3bae90b5f030534ee73c5993e4%2F100893925.png?alt=media" alt=""><figcaption></figcaption></figure></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| The `Def.` (definition status) results filter option defaults to All ( `Primitive` and `Fully Defined` ) but also allows `Primitive` only and `Fully Defined` only matches to be listed in the search results.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-845940fdd3917bac787a3c25479c4f8ce99754a8%2F100893926.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-3412543b9afbf17c25d58be52de90e71afc86adb%2F100893930.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-2069343faa339b3756f967dfa533eb2c7426484d%2F100893927.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-f15c65faa551275ef789f80a96e2d4430ab63cdf%2F100893928.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| <p>A third results filter supports matching different aspects of the concept modelling defined by the selected template:<br></p><ul><li><code>Logical</code> (default) - concepts which match the logical model regardless of their lexical content.</li><li><code>Logical and Lexical</code> - concepts which match both the logical and lexical models.</li><li><code>Logical not Lexical</code> - concepts with the same logical model but which do not conform to the lexical model.</li><li>/ul></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | <div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-c30a7cd3d2e263ec25a4b39faceb7b754270282a%2F100893931.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-7acbf7c689380aa08152af0ccee16f2eb4e71db0%2F100893932.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-85f1850a4e3caa7935a00b70ad830d2ed60ada30%2F100893933.png?alt=media" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://956592758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8kNzHFIgz2UFgwrcB08%2Fuploads%2Fgit-blob-67da89a650fafb700a560b8221483139223075d1%2F100893934.png?alt=media" alt=""><figcaption></figcaption></figure></div> |

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=AP+UG&#x26;entry.670899847=Search%20for%20concepts%20by%20Template%20matching" class="button primary">Provide Feedback</a>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.snomed.org/snomed-ct-user-guides/authoring-user-guide/how-to/task-taxonomy-and-concept-search/search-for-concepts-by-template-matching.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
