# List/filter medical concepts

Operation ID: `graph.listMedicalConceptsGet`

List or filter concept nodes by id, code, sctid, substring query, vocabulary, semantic tag, term type, or active status. Neo4j only — no relationship traversal.

## Public method

`listMedicalConcepts`

Signature: `graph.listMedicalConcepts(query)`

Return type: `Promise<MedicalConcept[]>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`GET /medical-concepts`

## Path parameters

None.

## Query parameters

| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `active` | `boolean` | No |  |  |  | No |  |
| `code` | `string` | No |  |  |  | No |  |
| `id` | `string` | No |  |  |  | No |  |
| `limit` | `integer` | No |  |  | `50` | No |  |
| `offset` | `integer` | No |  |  | `0` | No |  |
| `q` | `string` | No |  |  |  | No |  |
| `sctid` | `string` | No |  |  |  | No |  |
| `semantic_tag` | `string` | No |  |  |  | No |  |
| `tty` | `string` | No |  |  |  | No |  |
| `vocabulary` | `string` | No |  | SNOMED, RXNORM, MESH |  | No |  |

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

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

## Success response examples

### 200

```json
[
  {
    "active": true,
    "code": "195967001",
    "definition_status": "primitive",
    "effective_time": "2004-07-31",
    "fsn": "Asthma (disorder)",
    "id": "SNOMED:195967001",
    "module_id": "900000000000207008",
    "preferred_term": "Airway hyperreactivity",
    "score": 0.98,
    "sctid": "195967001",
    "semantic_tag": "disorder",
    "synonyms": [],
    "top_category": null,
    "tree_numbers": null,
    "tty": null,
    "vocabulary": "SNOMED"
  }
]
```

## 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 query = {
  "active": true,
  "code": "<CODE>",
  "id": "<ID>",
  "limit": 50,
  "offset": 0,
  "q": "<Q>",
  "sctid": "<SCTID>",
  "semantic_tag": "<SEMANTIC_TAG>",
  "tty": "<TTY>",
  "vocabulary": "SNOMED"
};

const result = await graph.listMedicalConcepts(query);
```

## cURL

```bash
curl -X GET \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  'https://dev-api-graph.health.cloud/medical-concepts?active=true&code=%3CCODE%3E&id=%3CID%3E&limit=50&offset=0&q=%3CQ%3E&sctid=%3CSCTID%3E&semantic_tag=%3CSEMANTIC_TAG%3E&tty=%3CTTY%3E&vocabulary=SNOMED'
```

## 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.
