> For the complete documentation index, see [llms.txt](https://docs.b2ihealthcare.com/snowray/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2ihealthcare.com/snowray/reference/resources/valuesets.md).

# Value Sets

Value Sets may be used to create subsets of any [Code System ](/snowray/reference/resources/codesystems.md)resource's codes. They can be used to create SNOMED CT reference sets or generic Value Sets. They compose clauses to form the definition of the Value Set. Clauses represent query expressions (like the [Expression Constraint Language](https://confluence.ihtsdotools.org/display/DOCECL)) that select a substrate from the currently configured source Code System, called domain. A clause can be either included or excluded to precisely add the concepts you'd like as members to the Value Set.

{% hint style="info" %}
Can't find a resource? Please visit the Resources [Features](/snowray/reference/resources.md#features) section.
{% endhint %}

## Browsing

Concepts that are part of the Value Set can be browsed after navigating to the ***Content*** tab.&#x20;

![Value Set Content Page](/files/nGL4BVM425zXk1NWL2F2)

This tab displays the latest published set of members of the Value Set in a tree form. Users can expand the tree to find all members in their respective hierarchies. The search bar at the top of the section eases the way of searching for specific members.

{% hint style="info" %}
For more information about filtering, check out the [Searching Concepts](/snowray/reference/resources/codesystems.md#searching-concepts) section.
{% endhint %}

The domain header advises users on Code System that the Value Set depends on, along with its version. Besides the domain details, the header also displays information about the total number of  member concepts.

## Editing

On the ***Content*** tab of a Value Set, users with `Write` permission can change the definition by pressing the <img src="/files/-MgKVp2L5HDY9DtV5zWv" alt="" data-size="line"> button in the upper right corner, which navigates users to the Value Set's latest editable version. When defining Value Set clauses, users either need to construct [ECL](https://confluence.ihtsdotools.org/display/DOCECL) queries or simply drag and drop concepts from the concept tree to the desired section, i.e. *Inclusions* or *Exclusions*.

![Value Set Definition Authoring](/files/WNn7yVOAcKeN5oiHhTzt)

{% hint style="info" %}
Want to know more about authoring? Check out the Value Set [Authoring](/snowray/reference/resources/valuesets/authoring.md) section.
{% endhint %}

## Quick Link

Snowray's quick link feature enables users to take a look at the referenced concepts of a Value Set without interrupting their authoring flow.&#x20;

When hovering over concepts in the terminology tree, the <img src="/files/kDwWBfsqYtmDdWqi3iGX" alt="" data-size="line"> icon representing the *Open in new tab* option will appear.

{% hint style="info" %}
If you press <img src="/files/kDwWBfsqYtmDdWqi3iGX" alt="" data-size="line">, you will be taken to a new browser tab with the selected concept opened in the corresponding Code System's ***Content*** tab.
{% endhint %}

## Reference Sets

Reference Sets represent special Value Sets that are connected to a SNOMED CT Code System or Extension. This resource type can only be created and stored within a [Reference Set Collection.](/snowray/reference/resources/bundles.md#reference-set-collections) Reference Sets work as regular Value Sets, therefore the same functionalities apply, but in addition to the existing feature set, users can export this resource type in RF2 format as well.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.b2ihealthcare.com/snowray/reference/resources/valuesets.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.
