curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/concepts?page_size=10&include_relationships=true&include_synonyms=true" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.omophub.com/v1/vocabularies/SNOMED/concepts",
params={
"page_size": 10,
"standard_concept": "S",
"include_relationships": True,
"include_synonyms": True,
},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
for concept in data["data"]:
print(f"{concept['concept_name']}: {concept['concept_id']}")
import { OMOPHub } from '@omophub/omophub-node';
const client = new OMOPHub();
const { data, meta } = await client.vocabularies.concepts('SNOMED', {
pageSize: 10,
standardConcept: 'S',
});
console.log(`Found ${meta?.pagination?.total_items} concepts`);
curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/concepts?search=diabetes&standard_concept=S&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": [
{
"concept_id": 201826,
"concept_name": "Type 2 diabetes mellitus",
"concept_code": "44054006",
"vocabulary_id": "SNOMED",
"domain_id": "Condition",
"concept_class_id": "Clinical Finding",
"standard_concept": "S",
"invalid_reason": null,
"valid_start_date": "2002-01-31",
"valid_end_date": "2099-12-31",
"synonyms": ["Diabetes mellitus type 2", "Type II diabetes mellitus"],
"relationships": {
"parents": [
{
"concept_id": 201820,
"concept_name": "Diabetes mellitus",
"relationship_id": "Is a"
}
],
"children": [
{
"concept_id": 40483315,
"concept_name": "Brittle type 2 diabetes mellitus",
"relationship_id": "Subsumes"
}
]
}
},
{
"concept_id": 201254,
"concept_name": "Hypertensive disorder",
"concept_code": "38341003",
"vocabulary_id": "SNOMED",
"domain_id": "Condition",
"concept_class_id": "Clinical Finding",
"standard_concept": "S",
"invalid_reason": null,
"valid_start_date": "2002-01-31",
"valid_end_date": "2099-12-31"
}
],
"meta": {
"request_id": "req_abc123",
"vocab_release": "2025.1",
"timestamp": "2025-01-05T10:00:00Z",
"pagination": {
"page": 1,
"page_size": 10,
"total_items": 125847,
"total_pages": 12585,
"has_next": true,
"has_previous": false
}
}
}
Get Vocabulary Concepts
Get concepts within a specific OMOP vocabulary with pagination - browse SNOMED, ICD-10, LOINC, RxNorm, or any of 120+ vocabulary code lists.
curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/concepts?page_size=10&include_relationships=true&include_synonyms=true" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.omophub.com/v1/vocabularies/SNOMED/concepts",
params={
"page_size": 10,
"standard_concept": "S",
"include_relationships": True,
"include_synonyms": True,
},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
for concept in data["data"]:
print(f"{concept['concept_name']}: {concept['concept_id']}")
import { OMOPHub } from '@omophub/omophub-node';
const client = new OMOPHub();
const { data, meta } = await client.vocabularies.concepts('SNOMED', {
pageSize: 10,
standardConcept: 'S',
});
console.log(`Found ${meta?.pagination?.total_items} concepts`);
curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/concepts?search=diabetes&standard_concept=S&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": [
{
"concept_id": 201826,
"concept_name": "Type 2 diabetes mellitus",
"concept_code": "44054006",
"vocabulary_id": "SNOMED",
"domain_id": "Condition",
"concept_class_id": "Clinical Finding",
"standard_concept": "S",
"invalid_reason": null,
"valid_start_date": "2002-01-31",
"valid_end_date": "2099-12-31",
"synonyms": ["Diabetes mellitus type 2", "Type II diabetes mellitus"],
"relationships": {
"parents": [
{
"concept_id": 201820,
"concept_name": "Diabetes mellitus",
"relationship_id": "Is a"
}
],
"children": [
{
"concept_id": 40483315,
"concept_name": "Brittle type 2 diabetes mellitus",
"relationship_id": "Subsumes"
}
]
}
},
{
"concept_id": 201254,
"concept_name": "Hypertensive disorder",
"concept_code": "38341003",
"vocabulary_id": "SNOMED",
"domain_id": "Condition",
"concept_class_id": "Clinical Finding",
"standard_concept": "S",
"invalid_reason": null,
"valid_start_date": "2002-01-31",
"valid_end_date": "2099-12-31"
}
],
"meta": {
"request_id": "req_abc123",
"vocab_release": "2025.1",
"timestamp": "2025-01-05T10:00:00Z",
"pagination": {
"page": 1,
"page_size": 10,
"total_items": 125847,
"total_pages": 12585,
"has_next": true,
"has_previous": false
}
}
}
Retrieve concepts that belong to a specific vocabulary with optional filtering and pagination.
Path Parameters
Query Parameters
Page number for pagination (1-based, max 1000). For large vocabularies, use
the
search parameter to filter results instead of deep pagination.Filter by standard concept status. Options:
S (standard), C
(classification), all.Response
Array of concept objects.
Show Concept Object
Show Concept Object
Response metadata.
Show Metadata Object
Show Metadata Object
curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/concepts?page_size=10&include_relationships=true&include_synonyms=true" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.omophub.com/v1/vocabularies/SNOMED/concepts",
params={
"page_size": 10,
"standard_concept": "S",
"include_relationships": True,
"include_synonyms": True,
},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
for concept in data["data"]:
print(f"{concept['concept_name']}: {concept['concept_id']}")
import { OMOPHub } from '@omophub/omophub-node';
const client = new OMOPHub();
const { data, meta } = await client.vocabularies.concepts('SNOMED', {
pageSize: 10,
standardConcept: 'S',
});
console.log(`Found ${meta?.pagination?.total_items} concepts`);
curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/concepts?search=diabetes&standard_concept=S&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": [
{
"concept_id": 201826,
"concept_name": "Type 2 diabetes mellitus",
"concept_code": "44054006",
"vocabulary_id": "SNOMED",
"domain_id": "Condition",
"concept_class_id": "Clinical Finding",
"standard_concept": "S",
"invalid_reason": null,
"valid_start_date": "2002-01-31",
"valid_end_date": "2099-12-31",
"synonyms": ["Diabetes mellitus type 2", "Type II diabetes mellitus"],
"relationships": {
"parents": [
{
"concept_id": 201820,
"concept_name": "Diabetes mellitus",
"relationship_id": "Is a"
}
],
"children": [
{
"concept_id": 40483315,
"concept_name": "Brittle type 2 diabetes mellitus",
"relationship_id": "Subsumes"
}
]
}
},
{
"concept_id": 201254,
"concept_name": "Hypertensive disorder",
"concept_code": "38341003",
"vocabulary_id": "SNOMED",
"domain_id": "Condition",
"concept_class_id": "Clinical Finding",
"standard_concept": "S",
"invalid_reason": null,
"valid_start_date": "2002-01-31",
"valid_end_date": "2099-12-31"
}
],
"meta": {
"request_id": "req_abc123",
"vocab_release": "2025.1",
"timestamp": "2025-01-05T10:00:00Z",
"pagination": {
"page": 1,
"page_size": 10,
"total_items": 125847,
"total_pages": 12585,
"has_next": true,
"has_previous": false
}
}
}
Usage Examples
Basic List
Get concepts from a vocabulary:GET /v1/vocabularies/SNOMED/concepts?page_size=50
Search Within Vocabulary
Search for concepts by name:GET /v1/vocabularies/SNOMED/concepts?search=diabetes&standard_concept=S
With Sorting
Sort by concept name descending:GET /v1/vocabularies/RxNorm/concepts?sort_by=name&sort_order=desc
Include Additional Data
Include relationships and synonyms:GET /v1/vocabularies/SNOMED/concepts?include_relationships=true&include_synonyms=true
Related Endpoints
- List Vocabularies - Get all vocabularies
- Get Vocabulary - Get vocabulary details
- Get Concept - Get individual concept details
Was this page helpful?