# Plan details

Subscribe to `plan_details` to receive the list of services on a member's plan.

| `event_type` | Sent when |
| --- | --- |
| `plan_details.created` | A member is enrolled and their plan details are set. |
| `plan_details.updated` | A member's plan details are changed. |

## plan_details.created and plan_details.updated

Both events send the full list, not just what changed.

```json
{
  "event_type": "plan_details.updated",
  "data": {
    "medical_record_number": "3f2b8c1e-7a4d-4e9b-9c55-0d6a1f2e8b47",
    "plan_name": "Standard Plan",
    "plan_details": ["BAC Monitoring", "Coaching 1x Per Week", "Saliva Test 1x Per Week"],
    "updated_at": "2026-01-01T15:00:00.000Z"
  }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `medical_record_number` | string (UUID) | The member's medical record number. |
| `plan_name` | string | The member's plan. Optional. |
| `plan_details` | array of strings | Every service on the member's plan. Empty when the plan has none. |
| `updated_at` | string (date-time) | When this request was built. A retry has a new value. |

## Plan detail values

New values can be added. Don't reject a value you don't recognize.

| Service | Values |
| --- | --- |
| Breathalyzer | `BAC Monitoring` |
| Coaching | `Coaching 1x Per Week`, `Coaching 2x Per Week`, `Coaching 3x Per Week`, `Coaching 1x Per Month`, `Coaching 2x Per Month` |
| Saliva test | `Saliva Test 1x Per Week`, `Saliva Test 2x Per Week`, `Saliva Test 3x Per Week`, `Saliva Test 4x Per Week`, `Saliva Test 1x Per Month`, `Saliva Test 2x Per Month` |
| Saliva lab test | `Saliva Lab Test Weekly`, `Saliva Lab Test 2x Per Week`, `Saliva Lab Test 1x Per Month`, `Saliva Lab Test 2x Per Month`, `Saliva Lab Test 3x Per Month` |
| Urine test | `UA Test Weekly`, `UA Test 1x Per Month`, `UA Test 2x Per Month` |
| Cotinine test | `Cotinine Test 1x Per Week`, `Cotinine Test 2x Per Week`, `Cotinine Test 3x Per Week` |
| Medication monitoring | `Medication Monitoring Daily`, `Medication Monitoring 5x Per Week`, `Medication Monitoring 3x Per Week` |

## JSON Schemas

- [`plan_details.created`](https://developers.youareaccountable.com/schemas/plan_details.created.json)
- [`plan_details.updated`](https://developers.youareaccountable.com/schemas/plan_details.updated.json)
