# Read Historical Document

> Perform Read Historical Document through athenahealth.

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

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

- Handler: `athena_read_historical_document`

## 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.
  Default: `"PATIENTCASE"`

## Outputs

- `success` — Success
- `document_id` — Document Id
- `document_class` — Document Class
- `patient_id` — Patient Id
- `chart_id` — Chart Id
- `status` — Status
- `assigned_to` — Assigned To
- `document_present` — Document Present
- `error` — Error
- `error_message` — Error Message
- `document_count` — Document Count
- `documents` — Documents
- `payload_present` — Payload Present

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": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_class": {
      "default": "PATIENTCASE",
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "success": {},
    "chart_id": {},
    "documents": {},
    "patient_id": {},
    "assigned_to": {},
    "document_id": {},
    "error_message": {},
    "document_class": {},
    "document_count": {},
    "payload_present": {},
    "document_present": {}
  },
  "additionalProperties": true
}
```
