Resolve HPO Term
resolve_termResolve any HPO query (label, synonym, ID, xref) to its canonical HP term with match type. Handles ambiguous or obsolete terms.
Instructions
Resolve a phenotype label, synonym, HP id (HP:0000118), or external cross-reference CURIE (UMLS:C0000737, SNOMEDCT_US:263681008, ...) to the canonical HPO term {hpo_id, name, match_type}. An ambiguous label returns ambiguous_query with candidates; an obsolete HP id returns not_found with its successor in replaced_by. This is the recommended first step — resolve any query to a canonical HP id before calling get_term. Signature: resolve_term(query, response_mode=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:263681008, ...). | |
| response_mode | No | Verbosity: minimal|compact|standard|full (default compact). | compact |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| name | No | ||
| _meta | No | ||
| field | No | ||
| query | No | ||
| hpo_id | No | ||
| message | No | ||
| success | No | ||
| obsolete | No | ||
| retryable | No | ||
| candidates | No | ||
| error_code | No | ||
| match_type | No | ||
| hpo_version | No | ||
| allowed_values | No | ||
| recovery_action | No | ||
| match_confidence | No | ||
| recommended_citation | No |