curl -X GET "https://api.omophub.com/v1/domains/Condition/statistics" \
-H "Authorization: Bearer YOUR_API_KEY"
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 DomainStats {
statistics: {
total_concepts: number;
standard_concepts: number;
vocabulary_breakdown: Array<{ vocabulary_id: string; concept_count: number }>;
};
}
const { data } = await client.get<DomainStats>('/domains/Condition/statistics');
console.log(`Total concepts: ${data?.statistics.total_concepts}`);
console.log(`Standard: ${data?.statistics.standard_concepts}`);
data?.statistics.vocabulary_breakdown.forEach(v => {
console.log(`${v.vocabulary_id}: ${v.concept_count} concepts`);
});
import requests
response = requests.get(
"https://api.omophub.com/v1/domains/Drug/statistics",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
stats = data["data"]["statistics"]
print(f"Total: {stats['total_concepts']}")
print(f"Standard: {stats['standard_concepts']}")
print(f"Non-standard: {stats['non_standard_concepts']}")
# Vocabulary breakdown
for v in stats["vocabulary_breakdown"]:
print(f" {v['vocabulary_id']}: {v['concept_count']}")
{
"success": true,
"data": {
"domain_id": "Condition",
"statistics": {
"domain_id": "Condition",
"domain_name": "Condition",
"total_concepts": 845672,
"standard_concepts": 423891,
"non_standard_concepts": 421781,
"invalid_concepts": 12453,
"vocabulary_breakdown": [
{
"vocabulary_id": "SNOMED",
"vocabulary_name": "Systematized Nomenclature of Medicine Clinical Terms",
"concept_count": 387421
},
{
"vocabulary_id": "ICD10CM",
"vocabulary_name": "International Classification of Diseases, Tenth Revision, Clinical Modification",
"concept_count": 98234
},
{
"vocabulary_id": "ICD10",
"vocabulary_name": "International Classification of Diseases, Tenth Revision",
"concept_count": 87456
}
],
"concept_class_breakdown": [
{
"concept_class_id": "Clinical Finding",
"concept_class_name": "Clinical Finding",
"concept_count": 312456
},
{
"concept_class_id": "Disorder",
"concept_class_name": "Disorder",
"concept_count": 156789
}
],
"creation_date_range": {
"earliest": "1970-01-01",
"latest": "2024-12-01"
}
}
},
"meta": {
"request_id": "req_abc123",
"vocab_release": "2025.1",
"timestamp": "2025-01-05T10:00:00Z"
}
}
Get Domain Statistics
Get statistical overview for an OMOP domain including concept counts, standard concept coverage, and vocabulary distribution for capacity planning.
curl -X GET "https://api.omophub.com/v1/domains/Condition/statistics" \
-H "Authorization: Bearer YOUR_API_KEY"
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 DomainStats {
statistics: {
total_concepts: number;
standard_concepts: number;
vocabulary_breakdown: Array<{ vocabulary_id: string; concept_count: number }>;
};
}
const { data } = await client.get<DomainStats>('/domains/Condition/statistics');
console.log(`Total concepts: ${data?.statistics.total_concepts}`);
console.log(`Standard: ${data?.statistics.standard_concepts}`);
data?.statistics.vocabulary_breakdown.forEach(v => {
console.log(`${v.vocabulary_id}: ${v.concept_count} concepts`);
});
import requests
response = requests.get(
"https://api.omophub.com/v1/domains/Drug/statistics",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
stats = data["data"]["statistics"]
print(f"Total: {stats['total_concepts']}")
print(f"Standard: {stats['standard_concepts']}")
print(f"Non-standard: {stats['non_standard_concepts']}")
# Vocabulary breakdown
for v in stats["vocabulary_breakdown"]:
print(f" {v['vocabulary_id']}: {v['concept_count']}")
{
"success": true,
"data": {
"domain_id": "Condition",
"statistics": {
"domain_id": "Condition",
"domain_name": "Condition",
"total_concepts": 845672,
"standard_concepts": 423891,
"non_standard_concepts": 421781,
"invalid_concepts": 12453,
"vocabulary_breakdown": [
{
"vocabulary_id": "SNOMED",
"vocabulary_name": "Systematized Nomenclature of Medicine Clinical Terms",
"concept_count": 387421
},
{
"vocabulary_id": "ICD10CM",
"vocabulary_name": "International Classification of Diseases, Tenth Revision, Clinical Modification",
"concept_count": 98234
},
{
"vocabulary_id": "ICD10",
"vocabulary_name": "International Classification of Diseases, Tenth Revision",
"concept_count": 87456
}
],
"concept_class_breakdown": [
{
"concept_class_id": "Clinical Finding",
"concept_class_name": "Clinical Finding",
"concept_count": 312456
},
{
"concept_class_id": "Disorder",
"concept_class_name": "Disorder",
"concept_count": 156789
}
],
"creation_date_range": {
"earliest": "1970-01-01",
"latest": "2024-12-01"
}
}
},
"meta": {
"request_id": "req_abc123",
"vocab_release": "2025.1",
"timestamp": "2025-01-05T10:00:00Z"
}
}
This endpoint provides statistical information about a domain, including concept counts, vocabulary distribution, and concept class breakdown.
Path Parameters
The domain identifier to get statistics for.
Example:
Example:
Condition, Drug, ProcedureQuery Parameters
Specific vocabulary release version to query
Example:
Example:
2025.1Response
Domain identifier.
Statistical overview of the domain.
Show Statistics Object
Show Statistics Object
Domain identifier.
Human-readable domain name.
Total number of concepts in the domain.
Number of standard concepts (standard_concept = ‘S’).
Number of non-standard concepts.
Number of invalid/deprecated concepts.
curl -X GET "https://api.omophub.com/v1/domains/Condition/statistics" \
-H "Authorization: Bearer YOUR_API_KEY"
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 DomainStats {
statistics: {
total_concepts: number;
standard_concepts: number;
vocabulary_breakdown: Array<{ vocabulary_id: string; concept_count: number }>;
};
}
const { data } = await client.get<DomainStats>('/domains/Condition/statistics');
console.log(`Total concepts: ${data?.statistics.total_concepts}`);
console.log(`Standard: ${data?.statistics.standard_concepts}`);
data?.statistics.vocabulary_breakdown.forEach(v => {
console.log(`${v.vocabulary_id}: ${v.concept_count} concepts`);
});
import requests
response = requests.get(
"https://api.omophub.com/v1/domains/Drug/statistics",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
stats = data["data"]["statistics"]
print(f"Total: {stats['total_concepts']}")
print(f"Standard: {stats['standard_concepts']}")
print(f"Non-standard: {stats['non_standard_concepts']}")
# Vocabulary breakdown
for v in stats["vocabulary_breakdown"]:
print(f" {v['vocabulary_id']}: {v['concept_count']}")
{
"success": true,
"data": {
"domain_id": "Condition",
"statistics": {
"domain_id": "Condition",
"domain_name": "Condition",
"total_concepts": 845672,
"standard_concepts": 423891,
"non_standard_concepts": 421781,
"invalid_concepts": 12453,
"vocabulary_breakdown": [
{
"vocabulary_id": "SNOMED",
"vocabulary_name": "Systematized Nomenclature of Medicine Clinical Terms",
"concept_count": 387421
},
{
"vocabulary_id": "ICD10CM",
"vocabulary_name": "International Classification of Diseases, Tenth Revision, Clinical Modification",
"concept_count": 98234
},
{
"vocabulary_id": "ICD10",
"vocabulary_name": "International Classification of Diseases, Tenth Revision",
"concept_count": 87456
}
],
"concept_class_breakdown": [
{
"concept_class_id": "Clinical Finding",
"concept_class_name": "Clinical Finding",
"concept_count": 312456
},
{
"concept_class_id": "Disorder",
"concept_class_name": "Disorder",
"concept_count": 156789
}
],
"creation_date_range": {
"earliest": "1970-01-01",
"latest": "2024-12-01"
}
}
},
"meta": {
"request_id": "req_abc123",
"vocab_release": "2025.1",
"timestamp": "2025-01-05T10:00:00Z"
}
}
Usage Examples
Get Condition Domain Statistics
GET /v1/domains/Condition/statistics
Get Drug Domain Statistics
GET /v1/domains/Drug/statistics
Get Procedure Domain Statistics
GET /v1/domains/Procedure/statistics
Related Endpoints
- Get Domains - List all available domains
- Get Domain Concepts - Get concepts within a domain
Notes
- Statistics are calculated from the current vocabulary release
- The vocabulary_breakdown shows which source vocabularies contribute concepts to the domain
- The concept_class_breakdown shows the distribution of concept types within the domain
- Standard concepts are preferred for clinical applications
Was this page helpful?
⌘I