Retrieve all OMOP concept classes that categorize medical concepts - Clinical Finding, Ingredient, Procedure, and the complete OHDSI classification set.
curl -X GET "https://api.omophub.com/v1/concept-classes?include_stats=true" \ -H "Authorization: Bearer YOUR_API_KEY"
import { OMOPHub } from '@omophub/omophub-node';// Top-level `/concept-classes` endpoint is not yet a dedicated SDK method// (the SDK exposes vocabulary-scoped `client.vocabularies.conceptClasses(vocabId)`).// Use the typed low-level helper for the global list.const client = new OMOPHub();const { data } = await client.get<{ concept_classes: Array<{ concept_class_name: string; concept_count?: number }> }>( '/concept-classes', { query: { includeStats: true } },);console.log(`Found ${data?.concept_classes.length} concept classes`);data?.concept_classes.forEach(cc => { console.log(`${cc.concept_class_name}: ${cc.concept_count ?? 'N/A'} concepts`);});
This endpoint returns concept classes, which provide categorization of medical concepts within their domains. Concept classes distinguish between different types of concepts like “Clinical Finding” vs “Disorder” within conditions, or “Ingredient” vs “Clinical Drug” within drugs.
Query Parameters
string
Filter concept classes to those used by specific vocabularies. Comma-separated list. Example:SNOMED,RxNorm,ICD10CM
boolean
default:"false"
Include concept counts and vocabulary coverage for each concept class.
string
Specific vocabulary release version to query Example:2025.1
Response
boolean
Indicates if the request was successful.
object
Response data container.
Show Data Object
array
Array of concept class objects.
Show Concept Class Object
string
Unique identifier for the concept class.
string
Human-readable name of the concept class.
integer
OMOP concept ID representing this concept class.
integer
Number of concepts in this concept class (when include_stats=true).
array
List of vocabulary IDs that have concepts in this class (when include_stats=true).
object
Response metadata.
Show Metadata Object
string
Unique identifier for this request.
string
Vocabulary release version used.
string
Response timestamp (ISO format).
curl -X GET "https://api.omophub.com/v1/concept-classes?include_stats=true" \ -H "Authorization: Bearer YOUR_API_KEY"
import { OMOPHub } from '@omophub/omophub-node';// Top-level `/concept-classes` endpoint is not yet a dedicated SDK method// (the SDK exposes vocabulary-scoped `client.vocabularies.conceptClasses(vocabId)`).// Use the typed low-level helper for the global list.const client = new OMOPHub();const { data } = await client.get<{ concept_classes: Array<{ concept_class_name: string; concept_count?: number }> }>( '/concept-classes', { query: { includeStats: true } },);console.log(`Found ${data?.concept_classes.length} concept classes`);data?.concept_classes.forEach(cc => { console.log(`${cc.concept_class_name}: ${cc.concept_count ?? 'N/A'} concepts`);});