# Import

Users also have the option to add Code System by importing content.&#x20;

The import functionality can be accessed from the Resources page by pressing the ![](https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/4zmwj0yrl923hC6r89GW/import_button.png)button located in the header area.

{% hint style="info" %}
Snowray supports FHIR (<img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/9dUSn9QdBn4OrJSl7Uo3/fhir_icon.svg" alt="" data-size="line">), XLS (<img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/6G0y6crt9wVRMLd4gxjJ/xls_icon.svg" alt="" data-size="line">) and CSV (<img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/TxiBCyr37dc3LszKxI2b/csv_icon.svg" alt="" data-size="line">) formats for Code System import.
{% endhint %}

Users have two options to specify the import file in the import wizards: either by clicking in the import area and using the selector, or by drag and dropping it to the designated area.

## FHIR import

<figure><img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/SG6kNXLGXf4mGLVDyfRa/code_system_import_wizard_fhir.png" alt=""><figcaption><p>Code System FHIR Import Wizard</p></figcaption></figure>

With the import file in place, clicking![](https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/pFkbFU4MuRiflCdzz9pJ/next_button.png)will perform the import.

{% hint style="success" %}
Once completed, the wizard will report the successful process <img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/zOuEYNC2u6H3PBD9UlWU/import_complete_icon.svg" alt="" data-size="line">
{% endhint %}

## XLS import

<figure><img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/ELgBbIeU7x10NwQHMWCG/code_system_import_wizard_xls.png" alt=""><figcaption><p>Code System XLS Import Wizard</p></figcaption></figure>

| Field                 | Description                                                                                                                         |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **Code System Title** | The title of the Code System (mandatory)                                                                                            |
| **Code System ID**    | The identifier of the Code System. If you leave this field empty, the system will automatically generate an ID for your Code System |
| **Sheet**             | The sheet of the import file from which content will be imported (mandatory)                                                        |

<figure><img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/KvtHvCrD7lqsgrsrJNki/code_system_import_wizard_xls_parameters.png" alt=""><figcaption><p>Code System XLS Import Wizard - Specifying Parameters</p></figcaption></figure>

| Field              | Description                                                             |
| ------------------ | ----------------------------------------------------------------------- |
| **Concept ID**     | The column from which data will be used to generate concept IDs         |
| **Preferred Term** | The column from which data will be used to generate the preferred terms |
| **Synonyms**       | The column(s) from which data will be used to generate synonyms         |
| **Ignore**         | The column(s) that will be ignored                                      |

With the import file in place and content details specified, clicking![](https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/pFkbFU4MuRiflCdzz9pJ/next_button.png)will perform the import.

{% hint style="success" %}
Once completed, the wizard will report the successful process <img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/zOuEYNC2u6H3PBD9UlWU/import_complete_icon.svg" alt="" data-size="line">
{% endhint %}

{% hint style="info" %}
The imported resource will be placed in the Bundle that is opened in the Resource's page list when you start the import.
{% endhint %}

## CSV import

<figure><img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/j3wp28j0pBO4EdgCrMzW/code_system_import_wizard_csv.png" alt=""><figcaption><p>Code System CSV Import Wizard</p></figcaption></figure>

| Field                 | Description                                                                                                                         |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **Code System Title** | The title of the Code System (mandatory)                                                                                            |
| **Code System ID**    | The identifier of the Code System. If you leave this field empty, the system will automatically generate an ID for your Code System |
| **Delimiter**         | The character that will be used to separate text strings (mandatory)                                                                |

<figure><img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/Jitm63GIKjtdmXV2MEy6/code_system_import_wizard_csv_parameters.png" alt=""><figcaption><p>Code System CSV Import Wizard - Specifying Parameters</p></figcaption></figure>

| Field              | Description                                                             |
| ------------------ | ----------------------------------------------------------------------- |
| **Concept ID**     | The column from which data will be used to generate concept IDs         |
| **Preferred Term** | The column from which data will be used to generate the preferred terms |
| **Synonyms**       | The column(s) from which data will be used to generate synonyms         |
| **Ignore**         | The column(s) that will be ignored                                      |

With the import file in place and content details specified, clicking![](https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/pFkbFU4MuRiflCdzz9pJ/next_button.png)will perform the import.

{% hint style="success" %}
Once completed, the wizard will report the successful process <img src="https://content.gitbook.com/content/ecIrdZnsDkSPypTQNKj0/blobs/zOuEYNC2u6H3PBD9UlWU/import_complete_icon.svg" alt="" data-size="line">
{% endhint %}

{% hint style="info" %}
The imported resource will be placed in the Bundle that is opened in the Resource's page list when you start the import.
{% endhint %}
