# Simple Reference Set

## Purpose

A [|Simple type reference set|](http://snomed.info/id/446609009) allows a set of components to be specified for inclusion or exclusion for a specified purpose. This type of reference set represents an extensional definition of a subset of SNOMED CT components. Thus it can be used to fully enumerate a subset of concepts, descriptions or relationships.

See also [Query specification reference set](https://docs.snomed.org/snomed-ct-specifications/snomed-ct-release-file-specification/reference-set-release-file-specification/5.2-reference-set-types/5.2.1-content-reference-sets/5.2.1.7-query-specification-reference-set), which can be used to represent an intensional definition of a subset of SNOMED CT components. In an intensional definition, the members of the subset are specified by rules rather than by enumerations (e.g. all subtypes of a specified concepts).

## Reference Set Data Structure

A Simple Reference Set does not have any additional fields.

**Simple Reference Set - Data Structure**

<table data-full-width="true"><thead><tr><th width="208.56640625">Field</th><th width="99.15234375">Data type</th><th width="604.4766235351562">Purpose</th><th width="89.484375">Mutable</th><th>PK*</th></tr></thead><tbody><tr><td>id</td><td>UUID</td><td>A 128 bit unsigned Integer, uniquely identifying this reference set member.Different versions of a <em>reference set member</em> share the same id but have different effectiveTime. This allows a <em>reference set member</em> to be modified or made inactive (i.e. removed from the active set) at a specified time.</td><td><strong>NO</strong></td><td><strong>YES</strong><br>(Full/Snapshot)</td></tr><tr><td>effectiveTime</td><td>Time</td><td><p>The inclusive date or time at which this version of the identified reference set member became the current version.</p><p><strong>Note</strong> : In distribution files the effectiveTime should follow the short ISO date format (<em>YYYYMM DD</em>) and should not include the hours, minutes, seconds or timezone indicator.The current version of this reference set member at time <em>T</em> is the version with the most recent effectiveTime prior to or equal to time <em>T</em>.</p></td><td><strong>YES</strong></td><td><strong>YES</strong><br>(Full)<br>Optional (Snapshot)</td></tr><tr><td>active</td><td>Boolean</td><td>The state of the identified reference set member as at the specified effectiveTime. If active = 1 (true) the reference set member is part of the current version of the set, if active = 0 (false) the reference set member is not part of the current version of the set.</td><td><strong>YES</strong></td><td><strong>NO</strong></td></tr><tr><td>moduleId</td><td>SCTID</td><td><p>Identifies the SNOMED CT module that contains this reference set member as at the specified effectiveTime .</p><p>The value must be a subtype of <a href="http://snomed.info/id/900000000000443000">900000000000443000 |Module (core metadata concept)|</a> within the metadata hierarchy.</p></td><td><strong>YES</strong></td><td><strong>NO</strong></td></tr><tr><td>refsetId</td><td>SCTID</td><td><p>Identifies the reference set to which this reference set member belongs.</p><p>A subtype descendant of:</p><p><a href="http://snomed.info/id/446609009">446609009 |Simple type reference set|</a></p></td><td><strong>NO</strong></td><td><strong>NO</strong></td></tr><tr><td>referencedComponentId</td><td>SCTID</td><td>A reference to the SNOMED CT component to be included in the reference set.</td><td><strong>NO</strong></td><td><strong>NO</strong></td></tr></tbody></table>

***

{% hint style="info" %}
PK\* indicates if the attribute is part of the primary key for that file/table.
{% endhint %}

## Metadata

Simple References Sets are subtypes of [446609009 | Simple type reference set|](http://snomed.info/id/446609009) in the metadata hierarchy.

**Simple Reference Sets in the Metadata Hierarchy**

> [900000000000441003 |SNOMED CT Model Component|](http://snomed.info/id/900000000000441003)\
> [900000000000454005 |Foundation metadata concept|](http://snomed.info/id/900000000000454005)\
> [900000000000455006 |Reference set|](http://snomed.info/id/900000000000455006)\
> [446609009 |Simple type reference set|](http://snomed.info/id/446609009)

***

## Reference Set Descriptor and Example Data

{% hint style="info" %}
**Notes on the tables used to show descriptors and examples**

The reference set example tables on this page have been revised as follows to aid clarity and understanding:

* The first four columns which are present in all release files are not shown. The omitted columns (id, effectiveTime, active, moduleId) are used in the same way in all referenced sets to support identification, versioning and packaging. They do not directly affect the specific features of a particular reference set or reference set type.
* Reference set columns that contain SNOMED CT identifiers are expanded to show details of the concept or description referenced by that identifier. In some cases, the term is shown in the same column using the expression syntax, in other cases an additional column with a name suffix '\_term' has been added. In the standard reference set files only the identifier is present in the column and there is no added column for the term. When using reference sets, the term and other details of the component are looked up from the relevant component release files.
  {% endhint %}

#### Descriptor Template

The table below shows the descriptor for a specific reference set that follows the [|Simple type reference set|](http://snomed.info/id/446609009) pattern.

**Refset Descriptor rows for the Simple Reference Set Type**

<table data-full-width="true"><thead><tr><th width="221.7327880859375">refsetId</th><th width="271.93048095703125">referencedComponentId</th><th width="226.82110595703125">attributeDescription (Attribute description)</th><th width="223.36480712890625">attributeType (Attribute type)</th><th width="100">attributeOrder (Attribute order</th></tr></thead><tbody><tr><td><a href="http://snomed.info/id/900000000000456007">900000000000456007 |Reference set descriptor|</a></td><td><a href="http://snomed.info/id/447566000">447566000 |Virtual medicinal product simple reference set|</a></td><td><a href="http://snomed.info/id/449608002">449608002 |Referenced component|</a></td><td><a href="http://snomed.info/id/900000000000461009">900000000000461009 </a><a href="http://snomed.info/id/900000000000461009">|Concept type component|</a></td><td>0</td></tr></tbody></table>

***

#### Example

**Example Data for a Simple Reference Set**

<table><thead><tr><th width="358.66015625">refsetId</th><th>referencedComponentId (Referenced component)</th></tr></thead><tbody><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/211009">211009 |Product containing norethandrolone|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/302007">302007 |Product containing spiramycin|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/449005">449005 |Product containing procaine benzylpenicillin|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/544002">544002 |Product containing melphalan|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/796001">796001 |Product containing digoxin|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/847003">847003 |Product containing dextrothyroxine|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/922004">922004 |Product containing pralidoxime|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/1039008">1039008 |Product containing mercaptopurine|</a></td></tr><tr><td><a href="http://snomed.info/id/447565001">447565001 |Virtual therapeutic moiety simple reference set|</a></td><td><a href="http://snomed.info/id/1148001">1148001 |Product containing ticarcillin|</a></td></tr></tbody></table>

***

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=Release+File+Specification&#x26;entry.670899847=Simple%20Reference%20Set" 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-release-file-specification/reference-set-release-file-specification/5.2-reference-set-types/5.2.1-content-reference-sets/5.2.1.1-simple-reference-set.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.
