# List a patient's vitals

Operation ID: `ehr.listVitals`

List vital-sign Observations for a patient, optionally filtered by ?type= (LOINC code), ?date_from=, and/or ?date_to=.

## Public method

`listVitals`

Signature: `ehr.listVitals(patientId, dateFrom, dateTo, type)`

Return type: `Promise<ListVitalsResponse>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`GET /patients/{patient_id}/vitals`

## 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 |
|---|---|---:|---|---|---|---:|---|
| `date_from` | `string` | No |  |  |  | No | ISO date filter start (e.g. 2025-01-01) |
| `date_to` | `string` | No |  |  |  | No | ISO date filter end (e.g. 2025-12-31) |
| `type` | `string` | No |  |  |  | No | Filter: blood-pressure, heart-rate, body-temperature, body-weight, oxygen-saturation, etc. |

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

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

## Success response examples

### 200

```json
{
  "patient_id": "patient-example-001",
  "total": 0,
  "vitals": []
}
```

## 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 dateFrom = "2026-08-01";

const dateTo = "2026-08-31";

const type = "<TYPE>";

const result = await ehr.listVitals(patientId, dateFrom, dateTo, type);
```

## cURL

```bash
curl -X GET \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  'https://dev-api-ehr.health.cloud/patients/%3CPATIENT_ID%3E/vitals?date_from=2026-08-01&date_to=2026-08-31&type=%3CTYPE%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.
