# Save Patient Case Note

> Perform Save Patient Case Note through athenahealth.

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

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

- Handler: `athena_save_patient_case_note`

- 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": {
    "write_enabled": false,
    "append_signature": true
  },
  "handler": "athena_save_patient_case_note"
}

```

[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.
- `note_text` — Note Text (textarea)
  Optional text value.
- `subject` — Subject (expression)
  Optional literal value or workflow expression.
- `append_signature` — Append Signature (boolean)
  Optional true-or-false value.
  Default: `true`
- `write_enabled` — Write Enabled (boolean)
  Optional true-or-false value.
  Default: `false`
- `append_text` — Append Text (textarea)
  Optional text value.
- `dedupe_marker` — Dedupe Marker (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `submitted` — Submitted
- `write_skipped` — Write Skipped
- `skip_reason` — Skip Reason
- `document_id` — Document Id
- `document_class` — Document Class
- `patient_id` — Patient Id
- `chart_id` — Chart Id
- `status` — Status
- `assigned_to` — Assigned To
- `subject` — Subject
- `signed_note_length` — Signed Note Length
- `max_note_length` — Max Note Length
- `failure_phase` — Failure Phase
- `error_code` — Error Code
- `retryable` — Retryable
- `error` — Error
- `error_message` — Error Message
- `append_mode` — Append Mode
- `append_status` — Append Status
- `appended` — Appended
- `deduplicated` — Deduplicated
- `marker_present` — Marker Present
- `verified` — Verified

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": {
    "subject": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "chart_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "note_text": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "append_text": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "dedupe_marker": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "write_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "append_signature": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "subject": {},
    "success": {},
    "appended": {},
    "chart_id": {},
    "verified": {},
    "retryable": {},
    "submitted": {},
    "error_code": {},
    "patient_id": {},
    "append_mode": {},
    "assigned_to": {},
    "document_id": {},
    "skip_reason": {},
    "deduplicated": {},
    "append_status": {},
    "error_message": {},
    "failure_phase": {},
    "write_skipped": {},
    "document_class": {},
    "marker_present": {},
    "max_note_length": {},
    "signed_note_length": {}
  },
  "additionalProperties": true
}
```
