---
title: "Create a new caregap."
method: POST
path: "/caregaps/api/{quality_program}/caregap/"
tags: ["Caregaps"]
---

# Create a new caregap.

`POST /caregaps/api/{quality_program}/caregap/`

Create a new caregap.

## Path parameters

- `quality_program` string, required

## Request body

- CaregapAPIModel
  - `definition_id` string, required — Definition id this caregap is associated with.
  - `patient_id` string, required — Patient id this caregap is associated with.
  - `practice_id` string, required — Practice id this caregap is associated with.
  - `created_date` string, date, required — ISO timestamp for when this caregap was created.
  - `status` 'open' | 'closed', required — An enumeration.
  - `detail` string — Extra detail about the caregap.
  - `closed_date` string, date — ISO timestamp for when the caregap was closed.
  - `closed_by` 'API' | 'condition-saved' | 'feedback' — An enumeration.

## Response `200`

Successful Response

- CaregapAPI
  - `definition_id` string, required — Definition id this caregap is associated with.
  - `patient_id` string, required — Patient id this caregap is associated with.
  - `practice_id` string, required — Practice id this caregap is associated with.
  - `created_date` string, date, required — ISO timestamp for when this caregap was created.
  - `status` 'open' | 'closed', required — An enumeration.
  - `detail` string — Extra detail about the caregap.
  - `closed_date` string, date — ISO timestamp for when the caregap was closed.
  - `closed_by` 'API' | 'condition-saved' | 'feedback' — An enumeration.
  - `id` string, required — UUID to identify the caregap
  - `quality_program` string, required — Quality program this caregap is associated with.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/elationhealth/apis/billing-api.md) · [All operations](https://skmtc.dev/elationhealth/apis/billing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elationhealth/billing-api/revisions/0acfdeb9bd9b/schema)
