fhir_resolve
Resolve FHIR coded values (system+code) or text display to OMOP standard concepts and CDM target tables, with semantic search fallback and optional recommendation inclusion.
Instructions
Resolve a FHIR coded value (system URI + code) to its OMOP standard concept and CDM target table. Supports text-only input via semantic search fallback and optional Phoebe recommendations. Examples: system='http://snomed.info/sct' code='44054006' for Type 2 diabetes, or display='heart attack' for text-only resolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No | FHIR code system URI (e.g. http://snomed.info/sct, http://loinc.org) | |
| code | No | Code value from the FHIR Coding | |
| display | No | Display text for semantic search fallback when code is unavailable | |
| vocabulary_id | No | Direct OMOP vocabulary_id (e.g. SNOMED, ICD10CM), bypasses URI resolution | |
| resource_type | No | FHIR resource type (Condition, Observation, MedicationRequest, Procedure, etc.) | |
| include_recommendations | No | Include Phoebe-recommended related concepts | |
| include_quality | No | Include mapping quality signal (high/medium/low/manual_review) | |
| on_unmapped | No | Behavior when nothing resolves: 'error' (default, 404) or 'sentinel' (return a concept_id 0 record) |