Overview
This endpoint returns all available relationship types that can be applied to or from a specific concept, along with metadata about relationship options. This is useful for building dynamic UI components and understanding what relationships are possible for a concept.Path Parameters
The unique OMOP concept ID to get relationship options for
Query Parameters
Filter by relationship direction: “outbound”, “inbound”, or “both” (default: “both”)
Comma-separated list of vocabularies to filter relationship options
Include count of relationships for each relationship type
Include invalid/deprecated relationship types
Specific vocabulary release version (e.g., “2024.1”)
Response
Response data containing relationship options
Response metadata and API information
Usage Examples
Basic Relationship Options
Get all available relationship types:Outbound Only with Counts
Get outbound relationship options with counts:Filtered by Vocabularies
Get relationship options for specific vocabularies:UI Integration Example
Use in dropdown components:Important Notes
- Dynamic options - Available relationship types vary by concept and vocabulary
- Hierarchical indicators - Use
is_hierarchical
anddefines_ancestry
flags for navigation - Performance - Including counts increases response time but provides valuable context
- UI components - Perfect for building dynamic relationship selection interfaces
- Reverse relationships - Each relationship type has a corresponding reverse relationship
Related Endpoints
- Get Concept Relationships - Get actual relationships
- Get Relationships by Type - Get relationships of specific type
- Get Relationship Types - All relationship types in system