curl --request GET \
--url https://api.sandbox.metriport.com/medical/v1/patient/{patientId}/care-gaps \
--header 'x-api-key: <api-key>'Lists care gaps for a single patient as FHIR Bundles (analytics).
curl --request GET \
--url https://api.sandbox.metriport.com/medical/v1/patient/{patientId}/care-gaps \
--header 'x-api-key: <api-key>'patientId in the path. Each result
is a FHIR Bundle with a Patient entry, a MeasureReport, and a Parameters resource with supporting
calculation details.
For more context on care gaps and how to interpret results, see the
Care Gaps guide.
20.0.Patient, a MeasureReport, and a Parameters resource.Show Bundle properties
Show Patient properties
"Patient".use: "secondary".given (string
array) and/or family (string).male, female,
other, or unknown (FHIR).YYYY-MM-DD) when
present.Show MeasureReport properties
"MeasureReport".{measureName}.{patientId}.{periodStart} (e.g. "BreastCancerScreening.00000000-0000-0000-0000-000000000000.2025-01-01").complete, pending, or error.individual, subject-list, summary, or data-collection."http://ncqa.org/fhir/Measure/BreastCancerScreening").Show subject properties
Patient/{patientId}.Show Extension properties
https://public.metriport.com/fhir/StructureDefinition/job-id. The analytics job that produced this report.Show MeasureReportGroup properties
Show Parameters properties
"Parameters".Show Parameter properties
"Age at end of measurement period", "Is continuously enrolled").{
"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": "BreastCancerScreening.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"
}
],
"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:33333333-3333-3333-3333-333333333333",
"resource": {
"resourceType": "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"
}
}
]
}
}
]
}
]
}