# Get a concept's descendants

Operation ID: `graph.getMedicalConceptDescendants`

Return transitive descendants of a medical concept, traversed via IS_A / BROADER relationships up to max_depth hops.

## Public method

`listMedicalConceptDescendants`

Signature: `graph.listMedicalConceptDescendants(conceptId, query)`

Return type: `Promise<MedicalConcept[]>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`GET /medical-concepts/{concept_id}/descendants`

## Path parameters

| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `concept_id` | `string` | Yes |  |  |  | No |  |

## Query parameters

| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `limit` | `integer` | No |  |  | `100` | No |  |
| `max_depth` | `integer` | No |  |  | `5` | No |  |

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

| Status | Shape | Content type | Description |
|---|---|---|---|
| `200` | [`GetMedicalConceptDescendantsResponse`](../models/GetMedicalConceptDescendantsResponse.md) | application/json | Successful Response |

## Success response examples

### 200

```json
[]
```

## Common errors

| Status | Shape | Content type | Description |
|---|---|---|---|
| `401` | [`graph.ErrorResponse`](../models/graph.ErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
| `500` | [`graph.ErrorResponse`](../models/graph.ErrorResponse.md) | application/json | Internal server error |

## Error examples

### 401 — Missing or invalid access token

```json
{
  "error": "Authorization required"
}
```

### 500 — Unexpected service failure (sanitized example)

```json
{
  "error": "Internal server error"
}
```

## NodeJS / TypeScript implementation

```ts
import { HCSDK } from "@healthcloudai/hc-sdk";
```

```ts
const conceptId = "<CONCEPT_ID>";

const query = {
  "limit": 100,
  "max_depth": 5
};

const result = await graph.listMedicalConceptDescendants(conceptId, query);
```

## cURL

```bash
curl -X GET \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  'https://dev-api-graph.health.cloud/medical-concepts/%3CCONCEPT_ID%3E/descendants?limit=100&max_depth=5'
```

## Notes

None.

## Prepared Test Console scenario

No canonical scenario is currently associated.

## Real response

No approved real integration response is currently published. Unapproved candidates are never rendered as examples.
