# Read Document History

> Perform Read Document History through athenahealth.

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

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

- Handler: `athena_read_document_history`

- 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": {
    "include_action_notes": false
  },
  "handler": "athena_read_document_history"
}

```

[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.
- `document_class` — Document Class (expression, required)
  Required literal value or workflow expression.
- `patient_id` — Patient Id (expression)
  Optional literal value or workflow expression.
- `chart_id` — Chart Id (expression)
  Optional literal value or workflow expression.
- `actor_username` — Actor Username (expression)
  Optional literal value or workflow expression.
- `include_action_notes` — Include Action Notes (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `entries` — Entries
- `entry_count` — Entry Count
- `touched_by_actor` — Touched By Actor
- `last_actor_action` — Last Actor Action
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "document_id",
    "document_class"
  ],
  "properties": {
    "chart_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "actor_username": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_class": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "include_action_notes": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "entries": {},
    "success": {},
    "entry_count": {},
    "error_message": {},
    "touched_by_actor": {},
    "last_actor_action": {}
  },
  "additionalProperties": true
}
```
