Get HPO Term
get_termRetrieve a comprehensive HPO phenotype term record including definition, synonyms, hierarchy, cross-references, and obsolescence info. Accepts an HP id, label, synonym, or external xref CURIE.
Instructions
Return an HPO phenotype term record: definition, synonyms (exact/related/broad/narrow), alt_ids, subsets, comments, cross-references, direct parents and children, and obsolescence (replaced_by). The term accepts an HP id, a label/synonym, or an external xref CURIE (resolved first). Pass fields=['synonyms', 'definition'] for a sparse projection. Signature: get_term(term, response_mode=, fields=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | An HP id (HP:0000118), a phenotype label/synonym, or an external xref CURIE that resolves to a single HPO term. | |
| response_mode | No | Verbosity: minimal|compact|standard|full (default compact). | compact |
| fields | No | Sparse fieldset: return ONLY these top-level keys (dot into a grouped object, e.g. 'xrefs.UMLS'). Identity anchors (hpo_id, name, hpo_version) are always included. Omit for the full payload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| _meta | No | ||
| error_code | No | ||
| message | No | ||
| retryable | No | ||
| recovery_action | No | ||
| field | No | ||
| allowed_values | No | ||
| hint | No | ||
| candidates | No | ||
| hpo_id | No | ||
| name | No | ||
| definition | No | ||
| synonyms | No | ||
| alt_ids | No | ||
| subsets | No | ||
| parents | No | ||
| children | No | ||
| obsolete | No | ||
| hpo_version | No | ||
| recommended_citation | No |