> For the complete documentation index, see [llms.txt](https://docs.b2ihealthcare.com/snowray/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2ihealthcare.com/snowray/v2.9/reference/resources/codesystems/custom-code-systems/import.md).

# 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2Fpeu6SIHqLsdu0A4pnIsx%2Fimport_code_system_button.png?alt=media\&token=3b117d7e-a5f4-48cd-a44e-c3a67d321696)button located in the header area.

{% hint style="info" %}
Snowray supports FHIR (<img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2F9tygzzi3e3nEp32yZa7X%2Ffhir_icon.svg?alt=media&amp;token=09528151-f9d0-4ad5-9145-0a2231fb4e10" alt="" data-size="line">), XLS (<img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FUip1T9h6lXdbSFmQ2FrQ%2Fxls_icon.svg?alt=media&amp;token=844ea75e-62e3-4c7b-887c-8d7fb929aefc" alt="" data-size="line">) and CSV (<img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FRPk9KKisoG8XTCBQvoHL%2Fcsv_icon.svg?alt=media&amp;token=76aa14da-1a54-45fa-8c87-1f3e197e270c" 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2F8CprSnhlFiPir2jqVPFl%2Fcode_system_import_wizard_fhir.png?alt=media&amp;token=c71d4624-f103-4750-84d7-c8158c7bf0db" alt=""><figcaption><p>Code System FHIR Import Wizard</p></figcaption></figure>

With the import file in place, clicking![](https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FrCsFiS471BEO7aQ8zTTC%2Fnext_button.png?alt=media\&token=40264d5e-4111-4128-8bc6-0d4d8f4cc38f)will perform the import.

{% hint style="success" %}
Once completed, the wizard will report the successful process <img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FgnNag8SR3dNRvnItJEyF%2Fimport_complete_icon.svg?alt=media&amp;token=b7b12cc5-ad5a-4644-8d2f-7ab916fad047" alt="" data-size="line">
{% endhint %}

## XLS import

<figure><img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FRewNXi6gX0mzpfcPS0m0%2Fcode_system_import_wizard_xls.png?alt=media&amp;token=df01405b-56f3-46d5-a15e-76c2b98930df" 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FtcdUWjAEMYDn9xnA1JRn%2Fcode_system_import_wizard_xls_parameters.png?alt=media&amp;token=60630b1a-484c-4d7f-879a-8d32e0024292" 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FrCsFiS471BEO7aQ8zTTC%2Fnext_button.png?alt=media\&token=40264d5e-4111-4128-8bc6-0d4d8f4cc38f)will perform the import.

{% hint style="success" %}
Once completed, the wizard will report the successful process <img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FgnNag8SR3dNRvnItJEyF%2Fimport_complete_icon.svg?alt=media&amp;token=b7b12cc5-ad5a-4644-8d2f-7ab916fad047" 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FzLgMXOkw5ieJLN7FlrGN%2Fcode_system_import_wizard_csv.png?alt=media&amp;token=f2243048-9132-4502-8f9a-20aba9da1237" 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FHndVppeo5ejiurPDGtru%2Fcode_system_import_wizard_csv_parameters.png?alt=media&amp;token=a5c127f8-4e65-45e6-836c-bd4e5f0fac10" 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://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FrCsFiS471BEO7aQ8zTTC%2Fnext_button.png?alt=media\&token=40264d5e-4111-4128-8bc6-0d4d8f4cc38f)will perform the import.

{% hint style="success" %}
Once completed, the wizard will report the successful process <img src="https://848337088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNfVt73uJmV35VTVsq2mk%2Fuploads%2FgnNag8SR3dNRvnItJEyF%2Fimport_complete_icon.svg?alt=media&amp;token=b7b12cc5-ad5a-4644-8d2f-7ab916fad047" 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 %}
