Overview
This guide will help you make your first API call to OMOPHub in just a few minutes. By the end, you’ll be able to search medical concepts and explore healthcare vocabularies.PrerequisitesYou’ll need:
- A OMOPHub account (sign up here)
- An API key (generate one here)
- A programming environment (Python, JavaScript/Node.js, R, or cURL)
Step 1: Set Up Required Libraries
Choose your preferred programming language and install the necessary HTTP libraries:Step 2: Set Up Authentication
Prepare your API key and authentication headers for making requests:Never hardcode your API key in your source code. Use environment variables or secure key management systems in production.
Step 3: Make Your First Request
Let’s search for concepts related to “hypertension”:Step 4: Explore Concept Details
Once you have a concept ID, you can get detailed information:Step 5: Navigate Concept Hierarchies
Explore parent and child concepts:Next Steps
Congratulations! You’ve successfully made your first API calls to OMOPHub. Here’s what you can explore next:Authentication
Learn about OAuth setup and API key management
Advanced Search
Master complex search queries and filters
Concept Mapping
Map concepts between different vocabularies
Use Cases
See real-world healthcare implementations
Common Issues
Authentication Error
Authentication Error
If you receive a 401 Unauthorized error:
- Check that your API key is correct
- Ensure you’re using the correct authorization header format
- Verify your API key hasn’t expired
Rate Limit Exceeded
Rate Limit Exceeded
If you receive a 429 Too Many Requests error:
- Check your current rate limit in the response headers
- Implement exponential backoff for retries
- Consider upgrading your plan for higher limits
No Results Found
No Results Found
If your search returns no results:
- Try broader search terms
- Check spelling and remove special characters
- Use wildcards or partial matching
- Verify the vocabulary ID is correct