# Risk and compliance

> Search the HHS OIG exclusion list (with Medicare revocations by NPI) and the HHS OCR HIPAA breach portal.

Source: https://openpipe.health/docs/api/risk/

These endpoints search federal compliance and security events: people and organizations excluded from Medicare and Medicaid (the HHS OIG List of Excluded Individuals/Entities), revoked Medicare enrollments, and health data breaches of 500 or more individuals reported to the HHS Office for Civil Rights.

For nursing home fines, inspection deficiencies and quarterly contract-staff share, see [Care sites](https://openpipe.health/docs/api/care-sites.md).

Every endpoint on this page costs 1 credit, charged only when the call succeeds. A `400` or `503` (if a table is not loaded yet) is free.

Both endpoints validate query parameters strictly and reject unknown parameters with `400`:

```json
{ "error": "Unknown parameter: foo." }
```

## Search OIG exclusions

```http
GET /api/risk/exclusions
```

Searches the [`exclusions`](https://openpipe.health/docs/data/tables.md#exclusions) table (HHS OIG LEIE, current exclusions in effect), newest exclusion first. When `npi` is supplied, also returns any active Medicare enrollment revocations for that NPI from [`medicare_revocations`](https://openpipe.health/docs/data/tables.md#medicare_revocations). Costs 1 credit.

### Parameters

| Name | Type | Description |
|---|---|---|
| `q` | string | Substring of the excluded person or organization name. 2 to 80 characters. |
| `npi` | string | 10-digit National Provider Identifier (first digit 1 to 9; OIG's `0000000000` placeholder is refused). Also returns `medicare_revocations` for this NPI. |
| `state` | string | Two-letter USPS state code of the last known address. Case-insensitive. |
| `city` | string | City name. Case-insensitive, whole-name match. 2 to 80 characters. |
| `entity_type` | string | `individual` or `organization`. |
| `exclusion_type` | string | OIG Social Security Act section code, for example `1128a1` or `1128b4`. |
| `mandatory` | string | `true` for mandatory section 1128(a) conviction exclusions, `false` for permissive exclusions. |
| `since` | string | Exclusion effective date on or after `YYYY-MM-DD`. |
| `until` | string | Exclusion effective date on or before `YYYY-MM-DD`. Must not precede `since`. |
| `limit` | number | 1 to 200. Default 25. |
| `offset` | number | Rows to skip, 0 to 10,000. Default 0. |

### Example

The name and address below are placeholders; the shape and the other values are what the endpoint returns.

```sh
curl "$OPH_API/api/risk/exclusions?state=FL&mandatory=true&since=2026-01-01&limit=1" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "rows": [
    {
      "id": 84190,
      "entity_type": "individual",
      "name": "JANE EXAMPLE",
      "category": "NURSING PROFESSION",
      "specialty": "NURSE/NURSES AIDE",
      "npi": null,
      "city": "MIAMI",
      "state": "FL",
      "zip5": "33131",
      "exclusion_type": "1128a1",
      "exclusion_basis": "Conviction of a program-related crime",
      "mandatory": true,
      "exclusion_date": "2026-10-20T00:00:00.000Z",
      "waiver_date": null,
      "waiver_state": null
    }
  ],
  "limit": 1,
  "offset": 0,
  "sql": "SELECT id, entity_type, name, ... FROM exclusions WHERE state = $1 AND mandatory = $2 AND exclusion_date >= $3::date ORDER BY exclusion_date DESC, id DESC LIMIT 1 OFFSET 0",
  "params": ["FL", true, "2026-01-01"],
  "sources": ["exclusions"],
  "population": "HHS OIG List of Excluded Individuals/Entities, November 2026: exclusions now in effect (a reinstated party is removed). Only 11% of rows carry an NPI; a name match is a lead to verify on OIG's site, not a finding.",
  "ms": 14,
  "usage": { "credits": 1, "creditsUsed": 12, "creditsLimit": 5000, "txid": "11401" }
}
```

When `npi` is passed, the response also includes `medicare_revocations` (up to 25 active revocations for that NPI), `revocations_sql` (the read-only SQL [receipt](https://openpipe.health/docs/receipts.md) for that lookup), and `"medicare_revocations"` in `sources`.

### Caveats

- Current exclusions only: reinstated parties are removed from OIG's file, so this is not a historical ledger.
- Only about 11% of LEIE rows carry an NPI (9,023 of 84,224 rows). Treat a name match as a lead and verify against OIG's online search (which checks SSN/EIN) before taking action.
- Date of birth and street address are intentionally omitted.
- `id` is a load-time row number and changes when the dataset is reloaded; do not persist it.

## Search HIPAA breaches

```http
GET /api/risk/breaches
```

Searches [`hipaa_breaches`](https://openpipe.health/docs/data/tables.md#hipaa_breaches): breaches of unsecured protected health information affecting 500 or more individuals reported to the HHS Office for Civil Rights since October 2009. Costs 1 credit.

### Parameters

| Name | Type | Description |
|---|---|---|
| `q` | string | Substring of the reporting entity name. 2 to 80 characters. |
| `state` | string | Two-letter USPS state code of the reporting entity. Case-insensitive. |
| `entity_type` | string | `provider`, `health_plan`, `business_associate` or `clearinghouse`. |
| `status` | string | `under_investigation` (reported in the last 24 months and still open) or `archive` (resolved or older than 24 months). |
| `hacking` | string | `true` for breaches whose type includes `Hacking/IT Incident`, `false` otherwise. |
| `business_associate` | string | `true` when a business associate (vendor) was involved, `false` otherwise. |
| `min_individuals` | number | Minimum individuals affected, 0 to 1,000,000,000. HHS publishes only breaches of 500 or more. |
| `since` | string | Submission date on or after `YYYY-MM-DD`. |
| `until` | string | Submission date on or before `YYYY-MM-DD`. Must not precede `since`. |
| `sort` | string | `date` (default, newest submission first) or `individuals` (largest breach first). |
| `limit` | number | 1 to 200. Default 25. |
| `offset` | number | Rows to skip, 0 to 10,000. Default 0. |

### Example

```sh
curl "$OPH_API/api/risk/breaches?hacking=true&min_individuals=10000000&sort=individuals&limit=1" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "rows": [
    {
      "id": 6342,
      "entity_name": "Change Healthcare, Inc.",
      "state": "MN",
      "entity_type": "business_associate",
      "individuals_affected": 192700000,
      "submission_date": "2024-07-19T00:00:00.000Z",
      "breach_type": "Hacking/IT Incident",
      "breach_location": "Network Server",
      "hacking": true,
      "business_associate_involved": true,
      "status": "archive",
      "description": null
    }
  ],
  "limit": 1,
  "offset": 0,
  "sql": "SELECT id, entity_name, state, ... FROM hipaa_breaches WHERE hacking = $1 AND individuals_affected >= $2 ORDER BY individuals_affected DESC NULLS LAST, id DESC LIMIT 1 OFFSET 0",
  "params": [true, 10000000],
  "sources": ["hipaa_breaches"],
  "population": "HHS Office for Civil Rights breach portal, exported 2026-12-06: breaches of 500 or more individuals reported since October 2009. Dates are when the breach was reported. Entities are named as they reported themselves, with no NPI or CCN.",
  "ms": 18,
  "usage": { "credits": 1, "creditsUsed": 13, "creditsLimit": 5000, "txid": "11402" }
}
```

### Caveats

- `submission_date` is when the breach was reported to HHS, which can lag the incident by months.
- Reporting entities carry no NPI, CCN or EIN; match to [Providers](https://openpipe.health/docs/api/providers.md) or [Facilities](https://openpipe.health/docs/api/facilities.md) by name and state and verify by hand.
- When a vendor breach affects multiple covered entities, several organizations can report overlapping affected counts, so summing `individuals_affected` across rows can double-count people.
- `description` (OCR's written summary) is populated on archived breaches only, and not on all of them (7,161 of 7,441).
