# Check CareLink Patient Write Ready

> Perform Check CareLink Patient Write Ready through Epic CareLink.

Source: [https://genhealth.ai/docs/workflows/integrations/epic-care-link/carelink_check_patient_write_ready](https://genhealth.ai/docs/workflows/integrations/epic-care-link/carelink_check_patient_write_ready)

Integration: [Epic CareLink](https://genhealth.ai/docs/workflows/integrations/epic-care-link.md)

- Handler: `carelink_check_patient_write_ready`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `patient_exists` — Patient Exists (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `ready` — Ready
- `review_required` — Review Required
- `missing_fields` — Missing Fields
- `missing_field_count` — Missing Field Count
- `error` — Error
- `failure_category` — Failure Category

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "document_id",
    "patient_exists"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_exists": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "ready": {},
    "success": {},
    "missing_fields": {},
    "review_required": {},
    "failure_category": {},
    "missing_field_count": {}
  },
  "additionalProperties": true
}
```
