> ## 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 Mapping Coverage

> Analyze mapping coverage between a source and target OMOP vocabulary - quantify how many concepts translate across SNOMED, ICD-10, LOINC, and RxNorm.

## Overview

This endpoint analyzes mapping coverage between two vocabularies, providing domain-level breakdown and identifying unmapped concepts. Useful for understanding interoperability between vocabulary pairs.

## Query Parameters

**source\_vocabulary** `string` *required*

Source vocabulary ID to analyze mappings from

**Example:** `SNOMED`

**target\_vocabulary** `string` *required*

Target vocabulary ID to analyze mappings to

**Example:** `ICD10CM`

**domain\_ids** `string`

Comma-separated domain IDs to filter the analysis. Whitespace and empty
comma-delimited entries are ignored; at least one non-empty domain ID is
required when the parameter is supplied.

**Example:** `Condition,Drug`

**vocab\_release** `string`

Specific vocabulary release version (e.g., "2025.1")

## Response

**success** `boolean` *required*

Indicates if the request was successful

**data** `object` *required*

Coverage analysis results

**data**

**source\_vocabulary** `string`

Source vocabulary ID analyzed

**target\_vocabulary** `string`

Target vocabulary ID analyzed

**domain\_coverage** `array`

Coverage breakdown by domain

**domain\_coverage**

**domain\_id** `string`

Domain identifier

**domain\_name** `string`

Human-readable domain name

**source\_concepts** `integer`

Number of source concepts in this domain

**mapped\_concepts** `integer`

Number of concepts with mappings to target vocabulary

**coverage\_percentage** `number`

Percentage of concepts with mappings (0-100)

**overall\_coverage** `number`

Overall coverage percentage across all domains (0-100)

**unmapped\_concepts** `array`

Sample of concepts without mappings (up to 100)

**unmapped\_concepts**

**concept\_id** `integer`

Concept identifier

**concept\_name** `string`

Concept name

**domain\_id** `string`

Domain of the concept

**reason** `string`

Reason for no mapping

**meta** `object` *required*

Response metadata and API information

**meta**

**request\_id** `string`

Unique request identifier for debugging

**timestamp** `string`

ISO 8601 timestamp of the response

**vocab\_release** `string`

Vocabulary release version used

```bash cURL theme={null}
curl -X GET "https://api.omophub.com/v1/mappings/coverage?source_vocabulary=SNOMED&target_vocabulary=ICD10CM&domain_ids=Condition,%20,%20Drug," \
  -H "Authorization: Bearer YOUR_API_KEY"
```

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

// Not yet exposed as a dedicated SDK method - use the typed low-level helper.
const client = new OMOPHub();

interface CoverageResult {
  overall_coverage: number;
  domain_coverage: Array<{
    domain_id: string;
    domain_name: string;
    coverage_percentage: number;
    mapped_concepts: number;
    source_concepts: number;
  }>;
}

const { data } = await client.get<CoverageResult>('/mappings/coverage', {
  query: {
    source_vocabulary: 'SNOMED',
    target_vocabulary: 'ICD10CM',
    domain_ids: 'Condition, ,Drug,',
  },
});

console.log(`Overall coverage: ${data?.overall_coverage}%`);
data?.domain_coverage.forEach(domain => {
  console.log(
    `${domain.domain_name}: ${domain.coverage_percentage}% (${domain.mapped_concepts}/${domain.source_concepts})`
  );
});
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.omophub.com/v1/mappings/coverage",
    params={
        "source_vocabulary": "SNOMED",
        "target_vocabulary": "ICD10CM",
        "domain_ids": "Condition, ,Drug,"
    },
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)

result = response.json()
print(f"Overall coverage: {result['data']['overall_coverage']}%")

for domain in result['data']['domain_coverage']:
    print(f"{domain['domain_name']}: {domain['coverage_percentage']}%")
```

```json theme={null}
{
  "success": true,
  "data": {
    "source_vocabulary": "SNOMED",
    "target_vocabulary": "ICD10CM",
    "domain_coverage": [
      {
        "domain_id": "Condition",
        "domain_name": "Condition",
        "source_concepts": 234567,
        "mapped_concepts": 178234,
        "coverage_percentage": 75.9
      },
      {
        "domain_id": "Drug",
        "domain_name": "Drug",
        "source_concepts": 89234,
        "mapped_concepts": 45678,
        "coverage_percentage": 51.2
      }
    ],
    "overall_coverage": 65.5,
    "unmapped_concepts": [
      {
        "concept_id": 4087682,
        "concept_name": "Finding related to ability to move",
        "domain_id": "Condition",
        "reason": "No direct mapping"
      },
      {
        "concept_id": 4273391,
        "concept_name": "Coronary artery bypass graft",
        "domain_id": "Procedure",
        "reason": "No direct mapping"
      }
    ]
  },
  "meta": {
    "request_id": "req_coverage_abc123",
    "timestamp": "2024-12-22T10:00:00Z",
    "vocab_release": "2025.2"
  }
}
```

## Usage Examples

### Basic Coverage Analysis

Analyze coverage from SNOMED to ICD-10-CM:

```ts TypeScript theme={null}
const { data: coverage } = await client.get('/mappings/coverage', {
  query: { source_vocabulary: 'SNOMED', target_vocabulary: 'ICD10CM' },
});
```

### Filter by Domain

Analyze coverage for specific domains only:

```ts TypeScript theme={null}
const { data: filteredCoverage } = await client.get('/mappings/coverage', {
  query: {
    source_vocabulary: 'SNOMED',
    target_vocabulary: 'ICD10CM',
    domain_ids: 'Condition,Procedure',
  },
});

const requestedDomains = new Set(['Condition', 'Procedure']);
if (
  filteredCoverage?.domain_coverage.some(
    domain => !requestedDomains.has(domain.domain_id)
  )
) {
  throw new Error('Mapping coverage response was not filtered by domain_ids');
}
```

### Use Specific Vocabulary Version

Analyze coverage for a specific vocabulary release:

```ts TypeScript theme={null}
const { data: coverage } = await client.get('/mappings/coverage', {
  query: {
    source_vocabulary: 'SNOMED',
    target_vocabulary: 'ICD10CM',
    vocab_release: '2025.1',
  },
});
```

## Related Endpoints

* [Get Concept Mappings](https://docs.omophub.com/api-reference/mappings/get-concept-mappings.md) - Mappings for specific concepts
* [Get Mapping Quality](https://docs.omophub.com/api-reference/mappings/get-mapping-quality.md) - Quality metrics between vocabularies
* [Map Concepts](https://docs.omophub.com/api-reference/mappings/map-concepts.md) - Map concepts to a target vocabulary

## Notes

* Both `source_vocabulary` and `target_vocabulary` are required parameters
* The `unmapped_concepts` array contains a sample of up to 100 unmapped concepts
* Coverage percentages are calculated based on valid, non-deprecated concepts
* Use `domain_ids` to focus analysis on specific medical domains
* `domain_ids=Condition, ,Drug,` is normalized to `Condition` and `Drug`


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