> 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-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.8-ordered-reference-set/5.2.1.5-ordered-association-reference-set-1.md).

# Ordered Component Reference Set

## Purpose <a href="#id-4.2.2.orderedcomponentreferenceset-purpose" id="id-4.2.2.orderedcomponentreferenceset-purpose"></a>

An [|Ordered component type reference set (foundation metadata concept)|](http://snomed.info/id/733619002) allows a collection of components to be defined with a specified order. This type of reference set is therefore useful for creating ordered lists and to specify groups where the components that belong to the same group share the same order.

## Data structure <a href="#id-4.2.2.orderedcomponentreferenceset-datastructure" id="id-4.2.2.orderedcomponentreferenceset-datastructure"></a>

An Ordered component reference set (an Integer Component reference set) is used to represent ordered lists and alternative hierarchies. Its structure is shown in the following table.

***

**Ordered component reference set - Data structure**

<table data-full-width="true"><thead><tr><th width="208.015625">Field</th><th width="94.0859375">Data structure</th><th width="558.1430053710938">Purpose</th><th width="89.25390625">Mutable</th><th width="144.0390625">PK*</th></tr></thead><tbody><tr><td>id</td><td>UUID</td><td><p>A 128 bit unsigned Integer, uniquely identifying this reference set member.</p><p>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.</p></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>YYYYMMDD</em>) and should not include the hours, minutes, seconds or timezone indicator.</p><p>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><p><strong>YES</strong><br>(Full)</p><p>Optional (Snapshot)</p></td></tr><tr><td>active</td><td>Boolean</td><td><p>The state of the identified reference set member as at the specified effectiveTime .</p><p>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.</p></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>In this case, a subtype descendant of: <a href="http://snomed.info/id/733619002">733619002 |Ordered component type reference set (foundation metadata concept)|</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><tr><td>order</td><td>Integer</td><td><p>Specifies the sort order of the list. The list is ordered by applying an ascending sort of the order value.</p><p>The value of order =1 represents the highest priority. A value of '0' is not allowed. Duplicate values are permitted and the sort order between two members with the same order value is not defined.</p><p>Note: The name "order" is a reserved word in some database environments. Please consider this when using this column.</p></td><td><strong>YES</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 <a href="#id-4.2.2.orderedcomponentreferenceset-metadata" id="id-4.2.2.orderedcomponentreferenceset-metadata"></a>

The following metadata in the "Foundation metadata concept" hierarchy supports this reference set:

**Ordered Component Reference Sets in the Metadata Hierarchy**

> [900000000000454005 |Foundation metadata concept|](http://snomed.info/id/900000000000454005)\
> [900000000000455006 |Reference set|](http://snomed.info/id/900000000000455006)\
> [733619002 |Ordered component type reference set|](http://snomed.info/id/733619002)

***

## Reference Set Descriptor and Example Data <a href="#id-4.2.2.orderedcomponentreferenceset-referencesetdescriptorandexampledata" id="id-4.2.2.orderedcomponentreferenceset-referencesetdescriptorandexampledata"></a>

{% 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 <a href="#id-4.2.2.orderedcomponentreferenceset-descriptortemplate" id="id-4.2.2.orderedcomponentreferenceset-descriptortemplate"></a>

The tables below show the descriptor that defines the structure of the Ordered component type reference set pattern and an example of descriptor for a specific reference set that follows this pattern.

***

**Refset Descriptor rows for an ordered reference set**

<table data-full-width="true"><thead><tr><th width="213.1953125">refsetId</th><th width="250.2008056640625">referencedComponentId</th><th width="226.2086181640625">attributeDescription</th><th width="224.32501220703125">attributeType</th><th width="146.2890625">attributeOrder</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/733619002">733619002 </a><a href="http://snomed.info/id/733619002">|Ordered component type reference set|</a></td><td><a href="http://snomed.info/id/449608002">449608002 |Referenced component|</a></td><td><a href="http://snomed.info/id/900000000000460005">900000000000460005 |Component type|</a></td><td>0</td></tr><tr><td><a href="http://snomed.info/id/900000000000456007">900000000000456007 |Reference set descriptor|</a></td><td><a href="http://snomed.info/id/733619002">733619002 |Ordered component type reference set|</a></td><td><a href="http://snomed.info/id/447255006">447255006 |Priority order reference set attribute|</a></td><td><a href="http://snomed.info/id/900000000000478000">900000000000478000 |Unsigned integer|</a></td><td>1</td></tr></tbody></table>

{% hint style="info" %}
Note: The table above omits the initial four columns of data present in the release file. These follow the standards versioning pattern id, effectiveTime, active, moduleId. Additionally, to aid understanding, the table above also shows the term from one of the descriptions associated with each of the identified concept. The release file only contains the identifier.
{% endhint %}

***

#### Ordered reference set example <a href="#id-4.2.2.orderedcomponentreferenceset-orderedreferencesetexample" id="id-4.2.2.orderedcomponentreferenceset-orderedreferencesetexample"></a>

<div data-full-width="true"><figure><img src="https://1769943195-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FirKbJsZG57nSWZA4GT0M%2Fuploads%2FKj0xHdjt2pau3RKM2DAC%2Fimage.png?alt=media&amp;token=412afeac-e1c6-415e-a9fd-8ab6acc7e09c" alt=""><figcaption></figcaption></figure></div>

**Rational ordering of finger concepts using an ordered component reference set**

<table data-full-width="true"><thead><tr><th>refsetId</th><th>referencedComponentId</th><th>order (Attribute order)</th></tr></thead><tbody><tr><td><p>733619002</p><p>|Fingers ordered component reference set|</p><p><br></p></td><td><a href="http://snomed.info/id/127053016">127053016 |Thumb|</a></td><td>1</td></tr><tr><td><p>733619002</p><p>|Fingers ordered component reference set|</p></td><td><a href="http://snomed.info/id/3690770011">3690770011 |Second digit of hand|</a><br></td><td>2</td></tr><tr><td><p>733619002</p><p>|Fingers ordered component reference set|<br></p><p><br></p></td><td><a href="http://snomed.info/id/3691300016">3691300016 |Third digit of hand|</a><br></td><td>3</td></tr><tr><td><p>733619002</p><p>|Fingers ordered component reference set|<br></p><p><br></p></td><td><a href="http://snomed.info/id/3692499012">3692499012 |Fourth digit of hand|</a><br></td><td>4</td></tr><tr><td><p>733619002</p><p>|Fingers ordered component reference set|</p></td><td><a href="http://snomed.info/id/3694199015">3694199015 |Fifth digit of hand|</a><br></td><td>5</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=Ordered%20Component%20Reference%20Set" 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-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.8-ordered-reference-set/5.2.1.5-ordered-association-reference-set-1.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.
