# List insurance coverage

Operation ID: `patient.getInsurance`

Return the authenticated patient's FHIR Coverage resources as HC-shaped Insurance entries. Reads through a short-TTL strong-consistency cache for coverage ids written by a very recent `patient.addInsurance` call, since the underlying FHIR `_search` is only eventually consistent. Requires a patient Bearer JWT.

## Public method

`listPatientInsurances`

Signature: `patient.listPatientInsurances()`

Return type: `Promise<ListInsurancesResponse>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`GET /patients/insurance`

## 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` | [`GetInsuranceResponse`](../models/GetInsuranceResponse.md) | application/json | The patient's insurance coverages |

## Success response examples

### 200

```json
{
  "insurances": [
    {
      "copay": 25,
      "deductible": 1000,
      "effective_date": "2026-01-01",
      "group_number": "GRP-example-001",
      "member_id": "MEM-example-001",
      "payer_id": "60054",
      "payer_name": "Example Health Plan",
      "plan_name": "Example Gold Plan",
      "plan_type": "PPO",
      "priority": "primary",
      "subscriber_date_of_birth": "1990-05-15",
      "subscriber_first_name": "Test",
      "subscriber_id": "SUB-example-001",
      "subscriber_last_name": "User",
      "subscriber_relationship": "self",
      "termination_date": "2026-12-31"
    }
  ],
  "patient_id": "patient-example-001",
  "total": 1
}
```

## 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 |
| `500` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Internal server error |

## Error examples

### 401 — Missing or invalid access token

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

### 404 — Patient not found

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

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

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

## NodeJS / TypeScript implementation

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

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

## cURL

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

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