# Process CCDA Document

> Perform Process CCDA Document through athenahealth.

Source: [https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_process_ccda_document](https://genhealth.ai/docs/workflows/integrations/athenahealth/athena_process_ccda_document)

Integration: [athenahealth](https://genhealth.ai/docs/workflows/integrations/athenahealth.md)

- Handler: `athena_process_ccda_document`

- Connection type: `athenahealth`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "athenahealth",
  "params": {
    "action": "leave",
    "urgent": false,
    "link_patient": false,
    "write_enabled": false
  },
  "handler": "athena_process_ccda_document"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `chart_id` — Chart Id (expression, required)
  Required literal value or workflow expression.
- `link_patient` — Link Patient (boolean)
  Optional true-or-false value.
  Default: `false`
- `internal_note` — Internal Note (textarea)
  Optional text value.
- `urgent` — Urgent (boolean)
  Optional true-or-false value.
  Default: `false`
- `order_type_id` — Order Type Id (remote_search_select, dynamic options)
  Optional value. Retrieve allowed values from the dynamic options endpoint.
- `assigned_to` — Assigned To (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `provider_username` — Provider Username (expression)
  Optional literal value or workflow expression.
- `action` — Action (select)
  Optional selected identifier or value.
  Default: `"leave"`
  Options: Leave in current status ("leave"), Close ("close")
- `action_note` — Action Note (textarea)
  Optional text value.
- `write_enabled` — Write Enabled (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `write_skipped` — Write Skipped
- `submitted` — Submitted
- `verified` — Verified
- `outcome` — Outcome
- `document_id` — Document Id
- `patient_id` — Patient Id
- `chart_id` — Chart Id
- `status_before` — Status Before
- `status` — Status
- `priority` — Priority
- `order_type_id` — Order Type Id
- `assigned_to` — Assigned To
- `provider_username` — Provider Username
- `internal_note_written` — Internal Note Written
- `patient_linked` — Patient Linked
- `error` — Error
- `error_message` — Error Message

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_id",
    "chart_id"
  ],
  "properties": {
    "action": {
      "enum": [
        "leave",
        "close"
      ],
      "type": "string",
      "default": "leave",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "urgent": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "chart_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "action_note": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "assigned_to": {
      "type": "string",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "link_patient": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "internal_note": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "order_type_id": {
      "description": "Optional value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "remote_search_select"
    },
    "write_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "provider_username": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "outcome": {},
    "success": {},
    "chart_id": {},
    "priority": {},
    "verified": {},
    "submitted": {},
    "patient_id": {},
    "assigned_to": {},
    "document_id": {},
    "error_message": {},
    "order_type_id": {},
    "status_before": {},
    "write_skipped": {},
    "patient_linked": {},
    "provider_username": {},
    "internal_note_written": {}
  },
  "additionalProperties": true
}
```
