Skip to main content

Get Mappings for a Concept

Find how a concept maps to other vocabularies:
get() returns one page. page_size defaults to 100 and the server caps it at 200, so a concept with more mappings than that yields a subset that looks exactly like a complete answer. When you are building a code list, use get_all() below.

Get Every Mapping

get_all() walks all pages and returns a single tibble:
It takes max_pages and progress like the other *_all() methods:

Page Through Manually

Filter by Target Vocabulary

Get mappings to a specific vocabulary only:

Relationship Types

The endpoint returns Maps to relationships by default. Composite concepts decompose across two relationships, and asking only for the default gets you half the answer:
Without Maps to value you learn the patient is allergic to a drug but not which drug. This is the Value-as-Concept pattern - the target belongs in value_as_concept_id on the OMOP row, not in the main concept column. get_all() takes the same argument.

Invalid Mappings

include_invalid defaults to TRUE on this endpoint. Pass FALSE to return only mappings whose relationship and target concept are currently valid:
The source concept is never filtered, so a deprecated concept still returns what it maps to - which is usually why you looked it up.
This parameter was accepted but not applied before 2026-08-11. The default matches what the endpoint returned then, so nothing changes unless you pass FALSE.

Use Specific Vocabulary Version

Query mappings from a specific vocabulary release:

Map Multiple Concepts

Map a batch of concept IDs to a target vocabulary:

Map Using Vocabulary Codes

Map concepts directly using vocabulary codes instead of OMOP concept IDs:
Use source_codes when you have vocabulary-specific codes (e.g., SNOMED codes from your source system). Use source_concepts when you already have OMOP concept IDs. You cannot use both parameters in the same request.

Map with Specific Mapping Type

Filter mappings by type:

Common Use Case: SNOMED to ICD-10

Option 1: Direct mapping using vocabulary codes (recommended)
Option 2: Using OMOP concept IDs

Working with Mapping Results

Convert mappings to a data frame for analysis: