Path Parameters
The unique identifier of the concept to retrieve ancestors for
Example:
Example:
201826
(Type 2 diabetes mellitus)Query Parameters
Filter ancestors to specific vocabulary (useful for cross-vocabulary concepts)
Example:
Example:
SNOMED
Maximum number of hierarchy levels to traverse (default: unlimited)
Range:
Range:
1-10
Relationship types to follow for hierarchy traversal. Spaces must be percent-encoded when used in query strings (e.g., “Is%20a,Part%20of”).
Default:
Allowed values:
Example:
Default:
Is a
Allowed values:
Is a
, Part of
, Has part
, Subsumes
, Has ingredient
, RxNorm has dose form
Example:
Is%20a,Part%20of
(URL-encoded)Include complete classification paths from concept to root
Include hierarchical distance (level) for each ancestor
Only return standard concepts in the hierarchy
Include deprecated/invalid concepts in ancestry
Number of ancestor concepts to return per page (max 1000)
Page number for pagination (1-based)
Response
The concept ID for which ancestors were retrieved
Standard name of the source concept
Vocabulary containing the source concept
Array of ancestor concepts in hierarchical order
Summary statistics about the ancestor hierarchy
Response metadata and pagination information
Usage Examples
Basic Ancestor Retrieval
Get all ancestors for a specific concept:Limited Hierarchy Depth
Retrieve ancestors up to a specific number of levels:Classification Path Analysis
Get complete classification paths from concept to root:Cross-Vocabulary Hierarchy
Analyze ancestors within specific vocabulary:Multiple Relationship Types
Follow different types of hierarchical relationships:Related Endpoints
- Get Concept Descendants - Retrieve child concepts
- Get Concept Hierarchy - Complete hierarchy view
- Get Concept Relationships - All concept relationships
- Get Concept Details - Complete concept information
Notes
- Hierarchy traversal follows “Is a” relationships by default, but can be customized
- Some concepts may have multiple classification paths to different root concepts
- Cross-vocabulary concepts may have ancestors in different vocabularies
- Standard concepts are prioritized in hierarchy traversal unless explicitly disabled
- Deprecated concepts are excluded from ancestry unless specifically requested
- Maximum hierarchy depth is typically 6-8 levels for most medical vocabularies