> 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](https://content.gitbook.com/content/qCGAqlIn2vgCXJQadBh7/blobs/eut91v9EJqmLj5UKuuCx/value_set_browse.png)

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="https://content.gitbook.com/content/qCGAqlIn2vgCXJQadBh7/blobs/YL5TiFQCv7fGMb6a814g/edit_button.png" 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](https://content.gitbook.com/content/qCGAqlIn2vgCXJQadBh7/blobs/RDVEGSMAFS8fiSOEton3/value_set_edit.png)

{% 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="https://content.gitbook.com/content/qCGAqlIn2vgCXJQadBh7/blobs/GCAW4D1Xj8iq35CYGDHh/open_in_new_tab_icon.svg" alt="" data-size="line"> icon representing the *Open in new tab* option will appear.

{% hint style="info" %}
If you press <img src="https://content.gitbook.com/content/qCGAqlIn2vgCXJQadBh7/blobs/GCAW4D1Xj8iq35CYGDHh/open_in_new_tab_icon.svg" 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.

{% hint style="info" %}
The Reference Set option is only available in the <img src="https://content.gitbook.com/content/qCGAqlIn2vgCXJQadBh7/blobs/EXnp2cmDYyq14BsCdlRq/new_resource_button.png" alt="" data-size="line"> list when creating the resource from within a Reference Set Collection.
{% endhint %}
