Get Disease Ancestors
get_disease_ancestorsRetrieve all transitive ancestors (broader diseases) of an Orphanet disorder using a precomputed closure, with pagination for large results.
Instructions
Return all transitive ancestors (broader diseases) of an Orphanet disorder via the precomputed closure, with a pagination block {total, returned, limit, offset, truncated, next_offset}. When truncated, next_commands carries a forward-page step. Use get_disease_classification for only the immediate parents. Signature: get_disease_ancestors(term, limit=, offset=, response_mode=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | An ORPHAcode (ORPHA:166024 or 166024), a disease label/synonym, or an external xref CURIE that resolves to a single Orphanet term. | |
| limit | No | Max rows returned (default 200). | |
| offset | No | Rows to skip for forward paging (default 0). | |
| response_mode | No | Verbosity: minimal|compact|standard|full (default compact). | compact |
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 | ||
| orpha_code | No | ||
| name | No | ||
| total | No | ||
| returned | No | ||
| limit | No | ||
| offset | No | ||
| next_offset | No | ||
| truncated | No | ||
| ancestors | No |