Get Disease Ancestors
get_disease_ancestorsRetrieve all broader disease ancestors for an Orphanet disorder using precomputed closure, with paginated 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 |
|---|---|---|---|
| hint | No | ||
| name | No | ||
| _meta | No | ||
| field | No | ||
| limit | No | ||
| total | No | ||
| offset | No | ||
| message | No | ||
| success | No | ||
| returned | No | ||
| ancestors | No | ||
| retryable | No | ||
| truncated | No | ||
| candidates | No | ||
| error_code | No | ||
| orpha_code | No | ||
| next_offset | No | ||
| allowed_values | No | ||
| recovery_action | No |