---
title: "MAP_NUMERIC_TO_LIST(): convert a numeric code into a List value"
description: map_numeric_to_list() returns a List value by mapping a Numeric code to a reference List variable. It is mainly used to standardize answers when the same…
---

[Skip to content](https://help.easymedstat.com/support/solutions/articles/77000592916-map-numeric-to-list-convert-a-numeric-code-into-a-list-value#main-content)

English

Show submenu for translations

![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

[Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [EasyMedStat Knowledge Base](https://help.easymedstat.com/?hsLang=en)
2. [Variables](https://help.easymedstat.com/variables?hsLang=en)
3. [Dynamic Variables](https://help.easymedstat.com/variables?hsLang=en#dynamic-variables)

# MAP\_NUMERIC\_TO\_LIST(): convert a numeric code into a List value

`map_numeric_to_list()` returns a **List** value by mapping a **Numeric** code to a **reference List** variable.  
It is mainly used to **standardize answers** when the same question exists in multiple languages (or multiple versions), and you want one analysis-ready variable in a single reference language.

## Syntax

```

            map_numeric_to_list(NumericCode, ReferenceList)

```

- **NumericCode**: a `Numeric` value (often produced by `first_numeric_value()`)
- **ReferenceList**: a `List` variable used as the mapping dictionary (the output will use its labels)

**Return type:** `List` (same structure and labels as `ReferenceList`)

## How it works

`map_numeric_to_list()` searches the **reference list** for a modality whose **numeric value** matches `NumericCode`.

- If a match is found → returns the corresponding **List modality** (with the reference labels)
- If no match is found → returns **null** (shown as **“NC”** in the eCRF)
- If `NumericCode` is null → returns **null**

## Typical use case: build one analysis variable from a multilingual ePRO question

### Example: Smoking status (List) in 3 languages

You collect the same question in multiple languages:

- `Smoking_EN` (List)
- `Smoking_FR` (List)
- `Smoking_DE` (List)

Each List uses the **same numeric codes**:

- `0` = Never smoked
- `1` = Stopped smoking
- `2` = Currently smoking

Patients answer only one variable, depending on their language.

### Goal

Create one variable for analysis, always expressed using **English labels**:

- `Smoking` (List, English)

### Formula

```

            Smoking = map_numeric_to_list( first_numeric_value(Smoking_EN, Smoking_FR, Smoking_DE), Smoking_EN )

```

What happens:

1. `first_numeric_value(...)` returns the numeric code of the answered language variable (0/1/2)
2. `map_numeric_to_list(..., Smoking_EN)` converts that code into the **English List modality**

## Requirements and expected behavior

- **Numeric codes must be aligned across language-specific Lists.**  
  If “Stopped smoking” is `1` in `Smoking_EN`, then the equivalent modality must also be `1` in `Smoking_FR` and `Smoking_DE`.
- **If the numeric code does not exist in the reference list → result is null** (displayed as **“NC”**).
- **If the numeric input is null → result is null** (displayed as **“NC”**).

## Practical tips

- Use a stable reference list as the second argument (usually the language you want for statistics and exports, e.g., `*_EN`).
- If you change the reference list structure or numeric codes, it can change the mapping result. Keep codes stable once your study is live.

- [Account](https://help.easymedstat.com/account?hsLang=en#main-content)

    - [Account](https://help.easymedstat.com/account?hsLang=en#account)
- [Collect data](https://help.easymedstat.com/collect-data?hsLang=en#main-content)

    - [Questionnaires (ePRO)](https://help.easymedstat.com/collect-data?hsLang=en#questionnaires-epro)
    - [Add and edit patients](https://help.easymedstat.com/collect-data?hsLang=en#add-and-edit-patients)
    - [Randomization](https://help.easymedstat.com/collect-data?hsLang=en#randomization)
    - [Export](https://help.easymedstat.com/collect-data?hsLang=en#export)
    - [Create a series / eCRF](https://help.easymedstat.com/collect-data?hsLang=en#create-a-series-ecrf)
    - [Multilingual studies](https://help.easymedstat.com/collect-data?hsLang=en#multilingual-studies)
- [Variables](https://help.easymedstat.com/variables?hsLang=en#main-content)

    - [Organize in categories](https://help.easymedstat.com/variables?hsLang=en#organize-in-categories)
    - [Dynamic Variables](https://help.easymedstat.com/variables?hsLang=en#dynamic-variables)
    - [Manage variables](https://help.easymedstat.com/variables?hsLang=en#manage-variables)
- [Statistical analyses](https://help.easymedstat.com/statistical-analyses?hsLang=en#main-content)

    - [Statistical tests](https://help.easymedstat.com/statistical-analyses?hsLang=en#statistical-tests)
    - [Compare groups](https://help.easymedstat.com/statistical-analyses?hsLang=en#compare-groups)
    - [Multivariate analysis](https://help.easymedstat.com/statistical-analyses?hsLang=en#multivariate-analysis)
    - [Filter patients](https://help.easymedstat.com/statistical-analyses?hsLang=en#filter-patients)
    - [Descriptive Statistics](https://help.easymedstat.com/statistical-analyses?hsLang=en#descriptive-statistics)
- [Collaborate](https://help.easymedstat.com/collaborate?hsLang=en#main-content)

    - [Share your series](https://help.easymedstat.com/collaborate?hsLang=en#share-your-series)
    - [Manage your organization](https://help.easymedstat.com/collaborate?hsLang=en#manage-your-organization)
- [Monitoring](https://help.easymedstat.com/monitoring?hsLang=en#main-content)

    - [Automations](https://help.easymedstat.com/monitoring?hsLang=en#automations)
    - [Electronic Signatures](https://help.easymedstat.com/monitoring?hsLang=en#electronic-signatures)
    - [Queries](https://help.easymedstat.com/monitoring?hsLang=en#queries)
    - [Clean data](https://help.easymedstat.com/monitoring?hsLang=en#clean-data)

[![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)](http://www.easymedstat.com)

<https://www.linkedin.com/company/easymedstat/> <https://www.youtube.com/@easymedstat9719> [mailto:support@easymedstat.com](mailto:support@easymedstat.com)

Copyright © 2026, EasyMedStat