Overview
HAPI FHIR can use OMOPHub as an external terminology service for code validation, concept lookup, and cross-vocabulary translation. This replaces the need to download and host ATHENA vocabulary files locally. One configuration change. No database setup, no vocabulary downloads, no maintenance.Quick Setup
YAML Configuration
Add to your HAPI FHIRapplication.yaml:
Java Configuration
For custom HAPI FHIR server builds:Spring Boot Properties
Authentication must be configured separately when using properties files.
Use the Java configuration approach above to set the Bearer token via
BearerTokenAuthInterceptor, or configure it through your YAML config
(remote_terminology_service_urls[].auth.token). The properties-file
remote_terminology_server_base_url is the single-server equivalent
of the YAML remote_terminology_service_urls array.Verify It Works
After configuration, test with a simple $lookup:What OMOPHub Adds vs Local ATHENA
| Capability | OMOPHub | Local ATHENA + HAPI |
|---|---|---|
| Setup time | 1 minute (config change) | Hours (download, DB, HAPI config) |
| Vocabulary updates | Automatic | Manual quarterly download |
| Infrastructure | None (cloud API) | PostgreSQL + HAPI server |
| Semantic search | Yes | Not available |
| FHIR R4/R5/R6 | All three | R4 only (typical) |
$translate with target-table | Yes | No |
| Phoebe recommendations | Yes (opt-in) | Not available |
Supported Operations
When configured as a remote terminology service, HAPI FHIR will use OMOPHub for:- Code validation (
$validate-code) - validating codes during resource validation - Code lookup (
$lookup) - resolving concept details - Code translation (
$translate) - mapping between vocabularies
Rate Limits
FHIR operations share the same quota as REST API calls. For high-volume HAPI servers, consider a Pro or Enterprise plan for higher rate limits.Troubleshooting
“Connection refused” or timeout:- Verify API key:
curl -H "Authorization: Bearer oh_xxx" https://fhir.omophub.com/fhir/r4/metadata - Check network access to
fhir.omophub.com:443
- OMOPHub supports the major vocabularies (SNOMED, ICD-10, LOINC, RxNorm, etc.)
- CPT4 is excluded due to AMA licensing
- See the TerminologyCapabilities for the full list
- Use
/r4for HAPI FHIR R4 servers (default) - Use
/r5for HAPI FHIR R5 servers - The base URL in your config must match your HAPI FHIR version