# Compare the hierarchy location of two SNOMED CT concepts

| Steps                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | References                                                                                                                                                                                                                                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>From any view in the SCT Browser, press <i class="fa-chevron-down">:chevron-down:</i> on the<code>Perspective</code> button in the header bar to see a drop-down options list of available perspectives:<br></p><ul><li><code>Full</code></li><li><code>Comparing</code></li><li><code>Comparing hierarchy</code></li><li><code>Responsive (tablets, phones)</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | <div><figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-844659c58a9149e7ee373efb0171e72fb2ae58f8%2F167511533.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| Select `Comparing hierarchy` to switch the presentation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | <div><figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-2d9a5bb0422ca8cb702b0d6175afad2b9692e76d%2F167511797.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| <p><code>Perspective: Comparing hierarchy</code> maintains the browser header bar, but changes to show two side-by-side <em>Taxonomy</em> panels, with a <em>Search</em> panel below the left-hand <em>Taxonomy</em> panel and a <em>Concept Details</em> panel below the right-hand <em>Taxonomy</em> panel.<br></p><p>The <em>Search</em> panel is identical in features and behaviour to that of <code>Perspective: Full</code>, primarily for the purpose of populating the two <em>Taxonomy</em> panels, although it can also be used to load and view concepts in the <em>Concept Details</em> panel just as in <code>Perspective: Full</code>.<br></p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p><strong>Reloading clears Perspective: Comparing hierarchy</strong><br></p><p>Reloading the page will reset the SCT Browser to the <code>Perspective: Full</code> default presentation.</p></div><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Panel sizes can be adjusted</strong><br></p><p>The relative sizes of the four panels can be adjusted by pressing and dragging their grey border bars.<br></p><p>This can be useful to maximise a particular panel if the default sizes cause some desired viewing content to be hidden whilst comparing.<br></p><p>The panels can also be scrolled vertically independently to alleviate such situations.</p></div> | <div><figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-fef5817309c3c6ace914fd3c9a8a7f58f027328f%2F167511807.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| <p>In the <em>Search</em> panel, find the first concept to be compared (as described in <a href="find-the-sctid-for-a-known-concept-term">Find the SCTID for a known concept term</a> or <a href="https://github.com/SNOMED-Documents/snomedct-browser-user-guide/blob/main/how-to/how-do-i/find-the-fsn-or-pt-for-a-known-concept-sctid.md">Find the FSN or PT for a known concept SCTID</a>).<br></p><p>Selecting a search result will load that concept into the <em>Concept Details</em> panel, within which all the context details tabs are available, as in the <code>Perspective: Full</code> presentation.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | <div><figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-0f8d885c99b590af196eb1057d2244c147bcff0e%2F167511817.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| In the *Search Results* list, press and hold the result row for the first concept to be compared. The selected row will be highlighted in blue, and a "Drag this" tooltip will appear.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | <div><figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-9cbc1ddea201e7c7f7e8c39fb79122d58f6964d0%2F167511823.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| <p>Whilst holding the cursor selection, drag the selected item onto the left-hand <em>Taxonomy</em> panel.<br></p><p>Whilst dragging, the concept <em>FSN</em> term will appear alongside the cursor arrow.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | <div><figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-1719d716ae0b4b6ce5a63c8f3ccaa7e576720818%2F167511853.png?alt=media" alt=""><figcaption></figcaption></figure></div> |
| <p>When the cursor is over the <em>Taxonomy</em> panel "drop-zone" a drop-target <i class="fa-circle-plus">:circle-plus:</i> symbol will appear.<br></p><p>Release the cursor hold to "drop" the concept.<br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                             |

{% hint style="warning" %}
**Following a search result link does not change Taxonomy focus**<br>

Following a search result in \`Perspective: Comparing hierarchy\` changes the focus concept in the *Concept Details* panel, but does not change the focus concept in a *Taxonomy* panel.
{% endhint %}

|

<figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-7bb8e4e0c0f88c11cf55f12caea9ee1f8d8eab0e%2F167511833.png?alt=media" alt=""><figcaption></figcaption></figure>

\| |

The left-hand *Taxonomy* panel will now show a hierarchical tree view focused on the dropped concept.

|

<figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-a871263f6f34b005d3e4a9c15eae4f9dbe72701d%2F167511864.png?alt=media" alt=""><figcaption></figcaption></figure>

\| |

Now use the *Search* panel again to find the desired comparison concept, and repeat the same steps to select, drag and drop, but this time drag the comparison concept to the right-hand *Taxonomy* panel.

|

<figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-e8fc7aa9dda1fc70faa86205440b5216628181e7%2F167511870.png?alt=media" alt=""><figcaption></figcaption></figure>

\| |

The two *Taxonomy* context panel hierarchies can now be compared side-by-side.<br>

Each hierarchy can be navigated individually (as described in \[Browse SNOMED CT International Edition concepts]\(Browse-SNOMED-CT-International-Edition-concepts\_154250246.html)).<br>

Following a concept link in either *Taxonomy* panel will load that concept into the *Concept Details* panel, allowing deeper analysis via its context details tabs if needed.<br>

The two *Concept Details* context tabs can be navigated independently whilst retaining their focus concept for side-by-side comparisons of the information in each context tab.<br>

{% hint style="info" %}
**Drag and drop can be used across the Taxonomy panels**<br>

If desired, a concept in one *Taxonomy* panel can also be dragged and dropped into the other to change its focus concept.<br>

In selecting it for drag and drop, that concept will also be loaded into the *Concept Details* panel.
{% endhint %}

|

<figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-bf9ba504889cf5c7647b4b969d80f83da354952e%2F167511874.png?alt=media" alt=""><figcaption></figcaption></figure>

\| |

Following another search result will load that concept into the *Concept Details* panel, regardless of the current status of the *Taxonomy* panels, which remain unchanged until either their hierarchy navigation is used, or another concept is dragged and dropped to change their focus.

|

<figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-bfa232da96b903c2eca394f6e5d7e3ba1d76a71e%2F167511896.png?alt=media" alt=""><figcaption></figcaption></figure>

\| |

Once done with comparisons, select \`Full\` in the header bar \`Perspective\` button drop-down options list to switch back to \`Perspective: Full\`.

|

<figure><img src="https://4047345178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1kHdBxHtH99oJ85gNaa3%2Fuploads%2Fgit-blob-d3631e72beea953786bc414e71590b7e774712fa%2F167511908.png?alt=media" alt=""><figcaption></figcaption></figure>

|

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=Browser+User+Guide&#x26;entry.670899847=Compare%20the%20hierarchy%20location%20of%20two%20SNOMED%20CT%20concepts" 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-user-guides/snomed-ct-browser-guide/how-to/compare-the-hierarchy-location-of-two-snomed-ct-concepts.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.
