# Resolve Patient Chart Context

> Perform Resolve Patient Chart Context through athenahealth.

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

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

- Handler: `athena_resolve_patient_chart_context`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `department_id` — Department Id (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `chart_id` — Chart Id
- `department_id` — Department Id
- `athena` — Athena
- `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": [
    "patient_id"
  ],
  "properties": {
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "department_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "athena": {},
    "success": {},
    "chart_id": {},
    "patient_id": {},
    "department_id": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
