# Maintenance and Management

Managing the components used to represent the large number of clinical data entries in EHRs is an important part of the work related to maintaining the integrity and accessibility of health information. Like SNOMED CT components, reference sets are supported by a robust versioning mechanism that allows historically consistent views of SNOMED CT components and derivatives. This allows reference sets to be used to specify changes in use of concepts and descriptions in different parts of an EHR.

For more detailed use cases, please refer to the following examples:

## Constrain Value Sets

Most health records are designed and developed using one or more information models, which describe the information that is collected, stored, communicated and displayed. Some information models are designed for a specific proprietary system, while others are based on a common health information standard. Irrespective of the purpose, design and representation of the information models, the use of clinical terminology is an important part of making the models complete, meaningful and useful. Hence, a consistent approach to the interface between structural elements and terminological representations of information is required to support reliable interpretation of the meaning. Subsets of SNOMED CT components can function as [value sets](https://docs.snomed.org/snomed-ct-practical-guides/snomed-ct-reference-set-guide/2-subsets-value-sets-and-reference-sets/2.2-value-set) for any health-related information model to enable well-defined, unambiguous models of meaning.

As shown in the diagram below [simple reference sets](https://docs.snomed.org/snomed-ct-practical-guides/snomed-ct-reference-set-guide/5-reference-set-types#simple-reference-set) can be used to represent the subsets of SNOMED CT components to be populated as value sets within the relevant information models.

<figure><img src="https://1485734576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqOI2v58ZsXOoklmwBOk4%2Fuploads%2Fgit-blob-b15f44f20fe7ed2a39ac775b150b9a7f7ce9cce4%2F35985631.png?alt=media" alt=""><figcaption><p>Relation between SNOMED CT reference sets, value sets and information models</p></figcaption></figure>

## Managing Value Sets

EHR systems will typically utilize a range of different value sets to be used in different places of the system. Representing these value sets using the same terminology will support the comparison of data captured in different contexts. Additionally, using SNOMED CT to represent items value sets instead of locally defined terms enables effective management and overview of information, and helps to mitigate challenges related to redundancy and ambiguity.

**Simple reference sets** can be used to represent extensionally defined subsets of SNOMED CT components, whereas the **query specification reference set** are useful for representing the intensional definition of SNOMED CT subsets. In the **query specification reference set**, the **expression constraints** can be used to represent the query used for defining the set. This means that the **query specification reference set** can be used to manage the intensional definition of SNOMED CT subsets that function as value sets, which is illustrated below.

<figure><img src="https://1485734576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqOI2v58ZsXOoklmwBOk4%2Fuploads%2Fgit-blob-d54472cb062f13a0acef14e86112daa632cc58b9%2F35985641.png?alt=media" alt=""><figcaption><p>Query specification reference set used for generating value sets for different organisational units</p></figcaption></figure>

## Managing Component Inactivation

When a component that is a member of a reference set is inactivated, the person maintaining the reference set needs to decide whether a change is required. This depends on the intended use of the reference set being maintained. In the case of a reference set that is being used to constrain data entry, inactive concepts need to be removed from the reference set or replaced by an appropriate active concept. In other reference sets it may be permissible, or even required, to retain an inactive concept in a reference set (for example if a reference set is used in the criteria for a report which may be applied to historical data).

The following figure and subsequent description introduce the overall process for identifying inactive components and using released reference sets to determine reasons for inactivation and potential replacements.

<figure><img src="https://1485734576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqOI2v58ZsXOoklmwBOk4%2Fuploads%2Fgit-blob-89600e7fbe111454b0e606e2dd56b25a42c2aae8%2F35985648.png?alt=media" alt=""><figcaption><p>Process of determine reasons for inactivation and alternative replacements</p></figcaption></figure>

1. One approach to identify the components that have been inactivated since the last release, is to compare snapshot of previous release with current delta release.
2. The reasons for inactivation can be looked up in the 900000000000480006 <mark style="color:blue;">|</mark> Attribute value type reference set<mark style="color:blue;">|</mark> for the particular component type, for example the 900000000000489007 <mark style="color:blue;">|</mark> Concept inactivation indicator attribute value reference set<mark style="color:blue;">|</mark> . The reason is represented by the value of the valueId attribute. For further information, see [Representing Reasons for Component Inactivation](#representing-reasons-for-component-inactivation).
3. The possible replacements for the components that have been inactivated can be determined in the appropriate 900000000000522004 <mark style="color:blue;">|</mark> Historical association reference set<mark style="color:blue;">|</mark> . For further information, see [Representing Historical Associations](#representing-historical-associations).
4. The preferred approach to manage inactivation of a component depends on the situation and the use of the reference set. However, a typical approach would be to update the reference set to apply the replacement concept instead of the inactivated concept. Please note, that some changes to the reference set may require additional updates to be performed to ensure correct use, see [Managing Reference Set Changes](https://docs.snomed.org/snomed-ct-practical-guides/snomed-ct-reference-set-guide/6-reference-set-development/6.6-manage-and-maintain-reference-sets#managing-reference-set-changes).

### Representing Reasons for Component Inactivation

In the International Edition of SNOMED CT three reference sets of the type 900000000000480006 <mark style="color:blue;">|</mark> Attribute value type reference set<mark style="color:blue;">|</mark> are used to indicate the reason why components have been inactivated. These are:

* 900000000000489007 <mark style="color:blue;">|</mark> Concept inactivation indicator attribute value reference set (foundation metadata concept)<mark style="color:blue;">|</mark>
* 900000000000490003 <mark style="color:blue;">|</mark> Description inactivation indicator attribute value reference set (foundation metadata concept)<mark style="color:blue;">|</mark>
* 900000000000547002 <mark style="color:blue;">|</mark> Relationship inactivation indicator attribute value reference set (foundation metadata concept)<mark style="color:blue;">|</mark>

For example, if the inactivated component is marked as 900000000000484002 <mark style="color:blue;">|</mark> Ambiguous<mark style="color:blue;">|</mark> , this will typically mean that there will be more than one component replacing the inactivated component. The possible replacements will be available in the 900000000000523009 <mark style="color:blue;">|</mark> POSSIBLY EQUIVALENT TO association reference set (foundation metadata concept)<mark style="color:blue;">|</mark> .

Another example is concepts that are inactivated because they were 900000000000482003 <mark style="color:blue;">|</mark> Duplicate<mark style="color:blue;">|</mark> . This is used if two concepts represent the same meaning, because then one of those concepts must be inactivated. The equivalent concept will be represented in the 900000000000527005 <mark style="color:blue;">|</mark> SAME AS association reference set (foundation metadata concept)<mark style="color:blue;">|</mark> . Please refer to [Representing Historical Associations](#representing-historical-associations) to see which reference sets relate to the various reasons for inactivation.

### Representing Historical Associations

When a new version of SNOMED CT is released this may include changes to the content of the terminology. Components may have been added, inactivated or changed as described in [Versioning](https://app.gitbook.com/s/uKngFry3XF9A8phdXFe8/11-challenges/11.4-versioning). As part of the terminology maintenance process, it may be appropriate to evaluate both the [Representing Reasons for Component Inactivation](#representing-reasons-for-component-inactivation) and to determine appropriate alternatives.

The International Edition of SNOMED CT distributes a set of reference sets that record the reason that each inactive component was inactivated. These are referred to as "historical association" reference sets. There is one historical association reference set for each type of historical association as shown in the table below.

Table: Association reference set types in the International Release of SNOMED CT

| Association reference set                                                                                                                  | Descriptions                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 900000000000523009 <mark style="color:blue;">\|</mark> POSSIBLY EQUIVALENT TO association reference set<mark style="color:blue;">\|</mark> | Applies to a concept that is ambiguous. The targetComponent is an active concept that represents one of the possible meanings of the inactive concept . Multiple rows are used to refer to each of the possible meanings of the ambiguous concept. |
| 900000000000524003 <mark style="color:blue;">\|</mark> MOVED TO association reference set<mark style="color:blue;">\|</mark>               | Applies to a component that has been moved to (or are pending a move to) another namespace. The targetComponent identifies the target namespace (not the new component).                                                                           |
| 900000000000525002 <mark style="color:blue;">\|</mark> MOVED FROM association reference set<mark style="color:blue;">\|</mark>             | Applies to a component that has been moved to this namespace from another namespace. The targetComponent identifies the original componentIdentifier in its previous namespace.                                                                    |
| 900000000000526001 <mark style="color:blue;">\|</mark> REPLACED BY association reference set<mark style="color:blue;">\|</mark>            | Applies to an erroneous, obsolete and other inactive component for which there is a single active replacement. The targetComponent identifies the active component that replaces this component.                                                   |
| 900000000000527005 <mark style="color:blue;">\|</mark> SAME AS association reference set<mark style="color:blue;">\|</mark>                | SAME AS association reference set                                                                                                                                                                                                                  |
| 900000000000528000 <mark style="color:blue;">\|</mark> WAS A association reference set<mark style="color:blue;">\|</mark>                  | Links an inactive classification concept such as "not otherwise specified" or "otherwise specified" with the active concept that was formerly its most proximal supertype.                                                                         |
| 900000000000529008 <mark style="color:blue;">\|</mark> SIMILAR TO association reference set<mark style="color:blue;">\|</mark>             | (not used currently)                                                                                                                                                                                                                               |
| 900000000000530003 <mark style="color:blue;">\|</mark> ALTERNATIVE association reference set<mark style="color:blue;">\|</mark>            | Links an inactive classification concept derived from ICD-9 Chapter XVI "Symptoms signs and ill-defined conditions" with the most similar active concept.                                                                                          |
| 900000000000531004 <mark style="color:blue;">\|</mark> REFERS TO concept association reference set<mark style="color:blue;">\|</mark>      | Applies to an inactive description which is inappropriate to the concept it is directly linked to but instead should refer to the concept referenced by the targetComponent.                                                                       |

The following table holds example entries for the 900000000000526001 <mark style="color:blue;">|</mark> Replaced by<mark style="color:blue;">|</mark> reference set. With this reference set is possible to automatically identify that the inactive concept 696005 <mark style="color:blue;">|</mark> Chronobiologic disorder<mark style="color:blue;">|</mark> should be replaced with the concept 387605007 <mark style="color:blue;">|</mark> Abnormal chronobiologic state<mark style="color:blue;">|</mark> . This type of reference set is particularly useful for ensuring consistent use of SNOMED CT over time. The reference set mechanism here provides an easy and standardized way of managing changes to coding or documentation practice over time.

Table: Sample content from 900000000000526001 <mark style="color:blue;">|</mark> REPLACED BY association reference set <mark style="color:blue;">|</mark>

| referencedComponentId | referencedComponentId\_term                        | targetComponentId | targetComponentId\_term                           |
| --------------------- | -------------------------------------------------- | ----------------- | ------------------------------------------------- |
| 100005                | SNOMED RT Concept                                  | 138875005         | SNOMED CT Concept                                 |
| 212002                | Salmonella III arizonae 53:k:z                     | 398450001         | Salmonella IIIb 53:k:z                            |
| 225005                | Special care of patient with contagious disease    | 133895001         | Care of patient with infectious disease           |
| 244003                | Evans and Lloyd-Thomas syndrome                    | 66659007          | Normal variation in position                      |
| 278009                | Epidural injection of neurolytic substance, lumbar | 17753007          | Epidural injection of neurolytic solution, lumbar |
| 558000                | Other disorder of the neurohypophysis, NEC         | 72442006          | Disorder of posterior pituitary                   |
| 659001                | Peptostreptococcus anaerobius                      | 413524006         | Anaerococcus tretradius                           |
| 696005                | Chronobiologic disorder                            | 387605007         | Abnormal chronobiologic state                     |
| 700002                | Salmonella III arizonae 50:z4,z23,z32:--           | 404619004         | Salmonella IIIa 50:z4,z23,z32:-                   |
| 822000                | Salmonella arizonae 53:z4,z23:--                   | 13998005          | Salmonella IV 53:z4,z23:--                        |

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=Refset+Guide&#x26;entry.670899847=Maintenance%20and%20Management" 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-practical-guides/snomed-ct-reference-set-guide/3-requirements-and-use-cases/3.2-use-cases/3.2.6-maintenance-and-management.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.
