# List a patient's conditions

Operation ID: `ehr.listConditions`

List FHIR Condition resources for a patient, optionally filtered by ?clinical_status= (e.g. active, resolved).

## Public method

`listConditions`

Signature: `ehr.listConditions(patientId, clinicalStatus)`

Return type: `Promise<ListConditionsResponse>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`GET /patients/{patient_id}/conditions`

## Path parameters

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

## Query parameters

| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `clinical_status` | `string` | No |  |  |  | No | Filter: active, recurrence, relapse, inactive, remission, resolved |

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

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

## Success response examples

### 200

```json
{
  "conditions": [
    {
      "asserted_date": "2026-01-15T10:00:00Z",
      "asserter_name": "Dr. Alex Smith",
      "asserter_type": "Practitioner",
      "body_site": "Respiratory system",
      "categories": [
        "problem-list-item"
      ],
      "clinical_status": "active",
      "description": "Mild persistent asthma",
      "encounter_id": "encounter-example-001",
      "fhir_id": "condition-example-001",
      "icd10_code": "J45.30",
      "laterality": "not_applicable",
      "notes": "Controlled with maintenance therapy",
      "onset_age": 25,
      "onset_date": "2015-01-01",
      "problem_id": "00000000-0000-4000-8000-000000000302",
      "recorded_date": "2026-01-15",
      "recorder_name": "Dr. Alex Smith",
      "resolved_date": null,
      "severity": "mild",
      "snomed_code": "195967001",
      "verification_status": "confirmed"
    }
  ],
  "patient_id": "patient-example-001",
  "total": 1
}
```

## Common errors

| Status | Shape | Content type | Description |
|---|---|---|---|
| `401` | [`StandardErrorResponse`](../models/StandardErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
| `500` | [`StandardErrorResponse`](../models/StandardErrorResponse.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 patientId = "<PATIENT_ID>";

const clinicalStatus = "<CLINICAL_STATUS>";

const result = await ehr.listConditions(patientId, clinicalStatus);
```

## cURL

```bash
curl -X GET \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  'https://dev-api-ehr.health.cloud/patients/%3CPATIENT_ID%3E/conditions?clinical_status=%3CCLINICAL_STATUS%3E'
```

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