> For the complete documentation index, see [llms.txt](https://docs.finngen.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finngen.fi/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/find-mapped-equivalents-for-standard-and-non-standard-codes-in-atlas.md).

# Create Concept Sets using equivalent standard and non-standard codes

In this tutorial, we will show you:

* How to create a new Concept set that uses standard codes equivalent to original non-standard codes
* How to create a new Concept set that uses non-standard codes equivalent to original standard codes

### Find equivalent non-standard codes for standard codes

We start by having a Concept Set defined using standard codes. In the example below, we have defined an Asthma Concept Set with nine standard codes. **Our goal is to create an equivalent concept that uses non-standard codes**.

<figure><img src="/files/-MhYMcTtYNca34WipdH3" alt=""><figcaption></figcaption></figure>

* Go to the **Included Source Codes** page.
* The **Vocabulary** filter on the left shows, SNOMED, ICD10fi, ICD9fi, and ICPC codes. SNOMED codes are standard codes, while the other codes are non-standard codes.

{% hint style="info" %}
The **Included Source Codes** page shows all codes in blue regardless if they are standard, non-standard or classification codes.
{% endhint %}

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

* Select all ICD10fi and ICD9fi non-standard codes using the **Id** column checkbox.
* Scroll to the bottom of the page and click the **Add To Concept Set** button.

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

* Go to the **Concept Set Expression** page. Non-standard codes (in red) are now also listed (see screenshot below).

{% hint style="info" %}
The red shopping cart icon on the left of the **Concept Set** indicates that the Concept Set has been changed but not saved.
{% endhint %}

* Copy the Concept Set using the <img src="/files/GN8nR6gZYQ5d9Ny6wyI4" alt="" data-size="line"> button.
* Rename the Concept Set.
* Select all standard codes (shown in blue) using the **Id** column checkbox.
* Scroll down the page, and click the **Remove Selected** button.
* Save the Concept Set.

<figure><img src="/files/891bTWmGzrM70QtFtSYf" alt=""><figcaption></figcaption></figure>

![](/files/r2tpxwWKCstb5vaZJt8J)

* **The new Concept Set is now ready. It contains non-standard codes that are the mapped equivalents for the standard SNOMED codes used to define the original Concept Set.**

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

{% hint style="info" %}
Mapped equivalent codes can also be selected using the **Mapped** checkbox option on the **Included Concepts** page.
{% endhint %}

* On the **Included Concepts** page, after selecting standard codes, select the **Mapped** checkbox and click the **Add To Concept Set** button. This will add all equivalent non-standard codes to the Concept Set.

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

### Find equivalent standard codes for non-standard codes

We start by having a Concept Set defined using non-standard codes. In the example below, we have defined a Concept Set with nine non-standard codes. **Our goal is to create an equivalent concept that uses standard codes**.

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

* Click a **Concept Name** to show **Details** of the code. In the example below, you see that the code is **Non-Standard:**

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

* Go to the **Related Concepts** tab. There you can see the mapped standard (in blue) and non-standard (in red) codes.
* Select the standard code using the **Id** column check box.
* Scroll to the bottom of the page and click the **Add to Concept Set** button.

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

* Go to the **Concept Sets** page to see that the standard code (shown in blue) has been included in the Concept Set. You can add other standard codes in the same way.

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

* Copy the Concept Set using the <img src="/files/GN8nR6gZYQ5d9Ny6wyI4" alt="" data-size="line"> button.
* Rename the Concept Set.
* Select all non-standard codes (in red).
* Scroll to the bottom of the page and click the **Remove Selected** button.

<figure><img src="/files/0UityfwmY1SonOhWJhWk" alt=""><figcaption></figcaption></figure>

* Save the new Concept Set.

**The new Concept Set is now ready. It contains standard codes that are the mapped equivalents for the non-standard used to define the original Concept Set.**
