# Get the patient dashboard summary

Operation ID: `patient.getPatientDashboard`

Return the authenticated patient's dashboard summary. Widget fields (`summary`, `recent_encounters`, `active_medications`, `upcoming_appointments`, `latest_vitals`, `alerts`) are currently always empty — this is an intentional placeholder shell pending per-widget implementation; only `patient_id` and the photo/telehealth enrichment fields carry real data today. Requires a patient Bearer JWT; the patient is always resolved from the token.

## Public method

`getDashboard`

Signature: `patient.getDashboard()`

Return type: `Promise<PatientDashboardResponse>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`GET /patients/dashboard`

## Path parameters

None.

## Query parameters

None.

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

| Status | Shape | Content type | Description |
|---|---|---|---|
| `200` | [`GetPatientDashboardResponse`](../models/GetPatientDashboardResponse.md) | application/json | Patient dashboard summary |

## Success response examples

### 200

```json
{
  "active_medications": [],
  "alerts": [],
  "latest_vitals": null,
  "patient_id": "patient-example-001",
  "photo_binary_id": "photo-example-001",
  "recent_encounters": [],
  "summary": {},
  "telehealth_id": 1700000000,
  "upcoming_appointments": []
}
```

## Common errors

| Status | Shape | Content type | Description |
|---|---|---|---|
| `401` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Authorization required — missing, invalid, expired, or non-patient Bearer JWT |
| `404` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | The authenticated patient has no FHIR Patient record |

## Error examples

### 401 — Missing or invalid access token

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

### 404 — Patient not found

```json
{
  "error": "Patient not found"
}
```

## NodeJS / TypeScript implementation

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

```ts
const result = await patient.getDashboard();
```

## cURL

```bash
curl -X GET \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  'https://dev-api-patient.health.cloud/patients/dashboard'
```

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