> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Patient Care Gaps

> Lists care gaps for a single patient as FHIR Bundles (analytics).

> [!WARNING]
>
> Analytics must be enabled for your account to receive data
> from this endpoint. [Contact
> us](mailto:contact@metriport.com) to get started.

Returns a paginated list of care gaps for the patient identified by `patientId` in the path. Each result
is a FHIR `Bundle` for one measure: a `Patient` entry, a `MeasureReport` with calculation `Parameters`
contained on the report, and the clinical resources used as evidence.

For more context on care gaps and how to interpret results, see the
[Care Gaps guide](https://docs.metriport.com/medical-api/handling-data/care-gaps.md).

## Path Params

**patientId** `string` *required*

The Metriport Patient ID.

## Query Params

**limit** `number`

Maximum number of results to return. Must be between 1 and
100\. Defaults to `20`.

**offset** `number`

Number of results to skip for pagination. Must be 0 or
greater. Defaults to `0`.

**measurementYear** `number`

Calendar year of the care-gap bundle to read. Patient must
have been queried in that year. Defaults to the current
calendar year.

## Response

**metadata** `object` *required*

Pagination metadata.

**metadata properties**

**total** `number` *required*

Total number of care gap records matching the query
for this patient.

**limit** `number` *required*

The limit used for this request.

**offset** `number` *required*

The offset used for this request.

**results** `Bundle[]` *required*

Array of FHIR Bundle resources. Each bundle contains a
`Patient`, one `MeasureReport` (with contained
`Parameters`), and the evidence resources that report
references.

**Bundle properties**

**Patient** `Patient` *required*

The patient this measure report applies to.

**Patient properties**

<Snippet file="analytics-bundle-patient-response.mdx" />

**MeasureReport** `MeasureReport` *required*

The care gap measure report. Calculation parameters
are contained on this resource.

**MeasureReport properties**

<Snippet file="care-gap-measure-report-response.mdx" />

**Observation | Procedure | DiagnosticReport | Encounter | MedicationDispense | Condition** `Resource`

Evidence resources referenced by the measure report's
`evaluatedResource`.

```json Response theme={null}
{
  "metadata": {
    "total": 1,
    "limit": 20,
    "offset": 0
  },
  "results": [
    {
      "resourceType": "Bundle",
      "type": "collection",
      "entry": [
        {
          "fullUrl": "urn:uuid:11111111-1111-1111-1111-111111111111",
          "resource": {
            "resourceType": "Patient",
            "id": "00000000-0000-0000-0000-000000000000",
            "identifier": [
              {
                "value": "1234567890",
                "system": "https://public.metriport.com/fhir/StructureDefinition/external-id.json",
                "use": "secondary"
              }
            ],
            "name": [
              { "given": ["Alex"], "family": "Example" }
            ],
            "gender": "female",
            "birthDate": "1980-01-15"
          }
        },
        {
          "fullUrl": "urn:uuid:22222222-2222-2222-2222-222222222222",
          "resource": {
            "resourceType": "MeasureReport",
            "id": "BCSE.00000000-0000-0000-0000-000000000000.2025-01-01",
            "status": "complete",
            "type": "individual",
            "measure": "http://ncqa.org/fhir/Measure/BreastCancerScreening",
            "subject": {
              "reference": "Patient/00000000-0000-0000-0000-000000000000"
            },
            "period": {
              "start": "2025-01-01",
              "end": "2025-12-31"
            },
            "extension": [
              {
                "url": "https://public.metriport.com/fhir/StructureDefinition/job-id",
                "valueString": "99999999-9999-9999-9999-999999999999"
              }
            ],
            "contained": [
              {
                "resourceType": "Parameters",
                "id": "parameters",
                "parameter": [
                  {
                    "name": "Age at end of measurement period",
                    "valueInteger": 42
                  },
                  {
                    "name": "Is continuously enrolled",
                    "valueBoolean": true
                  },
                  {
                    "name": "Mammography screening period",
                    "valuePeriod": {
                      "start": "2023-10-01",
                      "end": "2025-12-31"
                    }
                  }
                ]
              }
            ],
            "evaluatedResource": [
              {
                "reference": "Observation/44444444-4444-4444-4444-444444444444"
              }
            ],
            "group": [
              {
                "id": "BreastCancerScreening",
                "code": {
                  "coding": [
                    {
                      "system": "https://ncqa.org/fhir/CodeSystem/measure-group",
                      "code": "BreastCancerScreening"
                    }
                  ]
                },
                "population": [
                  {
                    "code": {
                      "coding": [
                        {
                          "system": "https://ncqa.org/fhir/CodeSystem/measure-group",
                          "code": "initial-population"
                        }
                      ]
                    },
                    "count": 1
                  },
                  {
                    "code": {
                      "coding": [
                        {
                          "system": "https://ncqa.org/fhir/CodeSystem/measure-group",
                          "code": "denominator"
                        }
                      ]
                    },
                    "count": 1
                  },
                  {
                    "code": {
                      "coding": [
                        {
                          "system": "https://ncqa.org/fhir/CodeSystem/measure-group",
                          "code": "denominator-exclusion"
                        }
                      ]
                    },
                    "count": 0
                  },
                  {
                    "code": {
                      "coding": [
                        {
                          "system": "https://ncqa.org/fhir/CodeSystem/measure-group",
                          "code": "numerator"
                        }
                      ]
                    },
                    "count": 0
                  }
                ]
              }
            ]
          }
        },
        {
          "fullUrl": "urn:uuid:44444444-4444-4444-4444-444444444444",
          "resource": {
            "resourceType": "Observation",
            "id": "44444444-4444-4444-4444-444444444444",
            "status": "final",
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "24604-1"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.