> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omophub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Concept Mappings

## Overview

Retrieve mappings from a concept to equivalent or related concepts in other vocabulary systems.

Each row carries the target's `target_domain_id` and `target_standard_concept`,
so a single call is enough both to **route the mapping to the right CDM table**
and to **verify that a `Maps to` target is standard**. Neither previously
required a second request per target; before 2026-09-09 the response omitted
both fields and each one did.

> [!NOTE]
>
> The row shape matches `POST /v1/concepts/map` field for field, plus
> `target_domain_id`, `target_standard_concept`. Use this endpoint for one
> concept, `map` for up to 100.

> [!WARNING]
>
> OMOP vocabulary releases do not provide a measured probability or confidence
> for each mapping, so this endpoint does not publish a confidence score. Use
> `relationship_id`, `mapping_type`, `invalid_reason`, and
> `target_standard_concept` to interpret and validate each mapping.

## Path Parameters

**concept\_id** `integer` *required*

The OMOP concept ID to get mappings for

## Query Parameters

**target\_vocabulary** `string`

Filter mappings to a specific target vocabulary (e.g., "ICD10CM", "SNOMED")

**relationship\_ids** `string`

Comma-separated relationship types to return. Defaults to `Maps to`.

Use `Maps to,Maps to value` to include the Value-as-Concept decomposition of
composite concepts. Like `include_invalid`, this parameter was accepted but
not applied before 2026-08-11.

**page** `integer` (default: 1)

Page number, 1-based

**page\_size** `integer` (default: 100)

Mappings per page. Values above 200 are clamped to 200 without an error, so
requesting more returns a smaller page than asked for.

**include\_invalid** `boolean` (default: true)

Include mappings whose relationship or target concept is deprecated. Defaults
to `true` - pass `false` to return only currently-valid mappings.

Note that `POST /v1/concepts/map` defaults this to **`false`**. The two differ
deliberately: this endpoint lists what exists for one concept, where hiding
deprecated mappings would misrepresent the record, while `map` resolves sources
for downstream use. Pass the parameter explicitly on both if you need them to
agree.

The source concept itself is never filtered, so a deprecated concept still
returns what it maps to.

**vocab\_release** `string`

Specific vocabulary release version to use (e.g., "2025.1", "2024.2"). When
not specified, uses the default/latest vocabulary version.

## Response

**success** `boolean`

Indicates if the request was successful

**data** `object`

Contains the mapping results

**data**

**mappings** `array`

Array of concept mappings

**mappings**

**source\_concept\_id** `integer`

OMOP concept ID of the source concept

**source\_concept\_name** `string`

Name of the source concept

**source\_concept\_code** `string`

The source concept's code within its own vocabulary

**source\_vocabulary\_id** `string`

Vocabulary the source concept belongs to (e.g., "ICD10CM")

**target\_concept\_id** `integer`

OMOP concept ID of the mapped target concept

**target\_concept\_name** `string`

Name of the target concept

**target\_concept\_code** `string`

The target concept's code within its own vocabulary

**target\_vocabulary\_id** `string`

Vocabulary the target concept belongs to (e.g., "SNOMED")

**target\_domain\_id** `string`

The target's OMOP domain -- **this is what decides which CDM table the
row belongs in.** `Condition` goes to `condition_occurrence`, `Drug` to
`drug_exposure`, `Measurement` to `measurement`, `Procedure` to
`procedure_occurrence`, `Observation` to `observation`.

Read it from the **target**, never from the source. Cross-domain maps
are ordinary: ICD10CM `P09.6` is a `Condition` code whose two `Maps to`
targets are a `Condition` *and* a `Measurement`, so the source's domain
does not determine the destination -- and within a single response,
different rows can belong in different tables.

**target\_standard\_concept** `string | null`

`S` for a standard concept, `C` for a classification concept, `null`
otherwise.

Every valid `Maps to` target is expected to be standard. A `Maps to`
row whose `target_standard_concept` is anything but `S` should not be
written to a CDM -- a non-standard target silently corrupts it. This
field is what makes that check possible from the mapping response
itself, instead of one extra request per target.

**relationship\_id** `string`

Type of relationship (e.g., "Maps to")

**relationship\_name** `string`

Human-readable name of the relationship (e.g., "Non-standard to
Standard map (OMOP)")

**valid\_start\_date** `string`

When the **mapping relationship** became valid, ISO 8601.

These three validity fields describe the `concept_relationship` row --
the mapping itself -- not either concept, matching their meaning on
`POST /v1/concepts/map`. To exclude mappings whose *target concept* is
deprecated, use `include_invalid=false`, which filters on both the
relationship and the target.

**valid\_end\_date** `string`

When the mapping relationship stops being valid, ISO 8601.
`2099-12-31` means "currently valid".

**invalid\_reason** `string | null`

`D` (deleted) or `U` (updated) if the mapping relationship has been
deprecated, `null` if it is current.

**mapping\_type** `string`

`direct` (`Maps to`, `Mapped from`), `equivalent`, `broader`,
`narrower`, or `related`.

**meta** `object`

Response metadata

**meta**

**request\_id** `string`

Unique request identifier for tracing and support

**timestamp** `string`

ISO 8601 timestamp of when the request was processed

**vocab\_release** `string`

Vocabulary release version used for this request

**pagination** `object`

Pagination state for this response

**pagination**

**page** `integer`

Current page number

**page\_size** `integer`

Mappings per page, after clamping

**total\_items** `integer`

Total mappings for this concept across all pages

**total\_pages** `integer`

Total number of pages

**has\_next** `boolean`

Whether another page follows. **Read this before treating the result
as complete.**

**has\_previous** `boolean`

Whether a previous page exists

## Examples

```bash cURL theme={null}
curl -X GET "https://api.omophub.com/v1/concepts/35207668/mappings?page=1&page_size=100" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```ts TypeScript theme={null}
import { OMOPHub } from '@omophub/omophub-node';

const client = new OMOPHub();

// Every mapping, not just the first page
const { data, errors } = await client.mappings.getAll(35207668);
if (errors.length > 0) throw new Error(errors[0].message);
console.log(`Found ${data.length} mappings`);
```

```python Python theme={null}
from omophub import OMOPHub

client = OMOPHub()

# Every mapping, not just the first page
mappings = list(client.mappings.get_iter(35207668))
print(f"Found {len(mappings)} mappings")
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "mappings": [
      {
        "source_concept_id": 35207668,
        "source_concept_name": "Essential (primary) hypertension",
        "source_concept_code": "I10",
        "source_vocabulary_id": "ICD10CM",
        "target_concept_id": 320128,
        "target_concept_name": "Essential hypertension",
        "target_concept_code": "59621000",
        "target_vocabulary_id": "SNOMED",
        "target_domain_id": "Condition",
        "target_standard_concept": "S",
        "relationship_id": "Maps to",
        "relationship_name": "Non-standard to Standard map (OMOP)",
        "valid_start_date": "1969-12-31T23:00:00.000Z",
        "valid_end_date": "2099-12-31T00:00:00.000Z",
        "invalid_reason": null,
        "mapping_type": "direct"
      }
    ]
  },
  "meta": {
    "request_id": "req_abc123",
    "timestamp": "2025-01-05T12:00:00.000Z",
    "vocab_release": "2025.2",
    "pagination": {
      "page": 1,
      "page_size": 100,
      "total_items": 1,
      "total_pages": 1,
      "has_next": false,
      "has_previous": false
    }
  }
}
```

## Related Endpoints

* [Map Concepts](https://docs.omophub.com/api-reference/mappings/map-concepts.md) - Map multiple concepts to a target vocabulary
* [Batch Map Concepts](https://docs.omophub.com/api-reference/mappings/batch-map-concepts.md) - Batch mapping operations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.