# Coverage

Source: https://www.flexpa.com/docs/fhir/coverage
Description: Coverage is a financial FHIR Resource that describes the financial terms of a specific health insurance plan for a specific person.

GET `https://api.flexpa.com/fhir/Coverage`

* [Coverage](https://www.hl7.org/fhir/coverage.html) is a base FHIR Resource ( [JSON example](https://www.hl7.org/fhir/coverage-example.json))
* Commonly available via the [C4BB Coverage Profile](https://hl7.org/fhir/us/carin-bb/StructureDefinition-C4BB-Coverage.html).

**Coverage** is a financial FHIR Resource that describes the financial terms of a specific health insurance plan for a specific person.

Accessing a patient's coverage can aid in workflows such as:
* Validating that a patient has an active health plan
* Retrieving information commonly found on an health insurance card such as Member ID and Group ID

As a core financial resource, almost all payers make this available. However, this resource typically does not provide a more detailed view of a patient's eligibility or accumulators.

**Note:**
For supported Medicare Advantage Part C coverage, Flexpa API may generate an [InsurancePlan](https://www.flexpa.com/docs/fhir/insurance-plan) resource from CMS PBP reference data and attach a reference to it on the Coverage.

## Search parameters
The full list of search parameters can be found [here](http://hl7.org/FHIR/coverage.html#search). Some of the most important are:

**Parameters**

- `patient` (string):
The ID of the patient for whom the coverage is or was active. We recommend using this search parameter along with the `$PATIENT_ID` [wildcard](https://www.flexpa.com/docs/records#wildcard-parameters)

## Sample request

**Note:**
While some servers may support a resource-level search without any parameters, not all do. We recommend using the format below with the patient ID via the `$PATIENT_ID` [wildcard](https://www.flexpa.com/docs/records#wildcard-parameters) as a search parameter.

This is a sample request using `curl`

```shell
ACCESS_TOKEN=patient-access-token

curl "https://api.flexpa.com/fhir/Coverage?patient=$PATIENT_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

## Sample response

This is a sample response from Humana using Flexpa API in [test mode](https://www.flexpa.com/docs/test-mode#health-insurers)

## Notable fields
A **Coverage** response contains many fields. You can get an exhaustive list and explanation of each field [here](https://www.hl7.org/fhir/coverage.html).
Some notable fields:

* `entry` - A collection of **Coverages** (see [response type](#response-type) on best practice of checking `resourceType`)
* `entry[i].status` - A string representing the status of the Coverage, can have a value of `"active"`, `"cancelled"`, `"draft"`, `"entered-in-error"`
* `entry[i].type` - An object describing the [Coverage category](https://www.hl7.org/fhir/valueset-coverage-type.html) (e.g., drug policy, dental policy, automobile injury policy)
* `entry[i].period` - A [period datatype](https://www.hl7.org/fhir/datatypes.html#Period) describing the Coverage's start and end date
* `entry[i].identifier` - (optional) The primary identifier of the insured and the Coverage. May contain the insured's member ID, group ID, etc.
* `entry[i].extension` - (optional) May include a Flexpa InsurancePlan reference extension when a related [InsurancePlan](https://www.flexpa.com/docs/fhir/insurance-plan) resource is generated. Where the payer supplies them it also carries the [CARIN Digital Insurance Card](https://hl7.org/fhir/us/insurance-card/) extensions: `C4DIC-ColorPalette-extension` for the plan's colors, nested as `C4DIC-BackgroundColor-extension`, `C4DIC-ForegroundColor-extension` and `C4DIC-HighlightColor-extension`; `C4DIC-Logo-extension` for the payer's logo, inline or by URL; and `C4DIC-AdditionalCardInformation-extension` for free text the payer prints on the card
* `entry[i].meta.profile` - (optional) Lists the profiles the Coverage claims, such as the [C4BB Coverage Profile](https://hl7.org/fhir/us/carin-bb/StructureDefinition-C4BB-Coverage.html). Read the card extensions above directly rather than inferring their presence from this list
