# Simplify Concept Sets that use standard code descendants

{% hint style="info" %}
This page is a continuation of [Create concept set using standard-code descendants](/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/selecting-descendants-for-a-concept-set-in-atlas.md) tutorial.
{% endhint %}

[Including descendants](/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/selecting-descendants-for-a-concept-set-in-atlas.md) may lead to a large number of standard codes having no record counts (RC).

{% hint style="info" %}
If you include only descendants with record counts (RC) then this will give the same result but decreases the number of included codes and simplifies the Concept Set.
{% endhint %}

### Simplify Concept Set

The following example shows how to simplify a Concept Set using standard code-descendants using the **Included Concepts** and **Concept Set Expression** page.

* On the **Included Concepts** page, order the codes by record count ![](/files/TrWuJ1PtD3eiHgZzsYiQ)
* Select all codes with record count (RC) > 0 using the **Id** column checkbox ![](/files/DFnI5qQCWDNHIsXR1T6B)
* Scroll to the bottom of the page and click the **Add to Concept Set** button. Codes with RC > 0 are now included in the Concept Set.

<figure><img src="/files/ksW8cHHmFew9S472jj3H" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iSzPLRJ8M00axC6bq6x8" alt=""><figcaption></figcaption></figure>

* On the **Concept Set Expression** page, select all codes with descendants using the **Id** column checkbox ![](/files/DFnI5qQCWDNHIsXR1T6B)
* Scroll to the bottom of the page and click the **Remove Selected** button.

<figure><img src="/files/iuwOKiZXHl6EdqYS1dDR" alt=""><figcaption></figcaption></figure>

The Concept Set now only contains codes with a record count (RC) > 0. All standard codes without records (107 codes in this example) have been removed from the Concept Set.

<figure><img src="/files/Gfklxf1fcieknx6cB7rl" alt=""><figcaption></figcaption></figure>


---

# 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.finngen.fi/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/simplify-concept-sets-that-use-standard-code-descendants.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.
