# Retrieve Chart

> Perform Retrieve Chart through Epic CareLink.

Source: [https://genhealth.ai/docs/workflows/integrations/epic-care-link/epic_carelink_retrieve_chart](https://genhealth.ai/docs/workflows/integrations/epic-care-link/epic_carelink_retrieve_chart)

Integration: [Epic CareLink](https://genhealth.ai/docs/workflows/integrations/epic-care-link.md)

- Handler: `epic_carelink_retrieve_chart`

## Inputs

- `account` — Account (select, required)
  Required selected identifier or value.
  Options: UNC CareLink ("unc"), Atrium Health CareLink ("atrium"), Cone Health CareLink ("cone")
- `patient_first_name` — Patient First Name (expression, required)
  Required literal value or workflow expression.
- `patient_last_name` — Patient Last Name (expression, required)
  Required literal value or workflow expression.
- `patient_dob` — Patient Dob (expression, required)
  Required literal value or workflow expression.
- `patient_gender` — Patient Gender (expression, required)
  Required literal value or workflow expression.
- `order_type` — Order Type (expression)
  Optional literal value or workflow expression.
- `persist_documents` — Persist Documents (boolean)
  Optional true-or-false value.
  Default: `true`
- `show_document_in_inbox` — Show Document In Inbox (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `status` — Status
- `account` — Account
- `patient_found` — Patient Found
- `mrn` — Mrn
- `duration_seconds` — Duration Seconds
- `document_id` — Document Id
- `document_status` — Document Status
- `demographics_document_id` — Demographics Document Id
- `error_message` — Error Message
- `error` — Error

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": [
    "account",
    "patient_first_name",
    "patient_last_name",
    "patient_dob",
    "patient_gender"
  ],
  "properties": {
    "account": {
      "enum": [
        "unc",
        "atrium",
        "cone"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "order_type": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_dob": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_gender": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_last_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "persist_documents": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "patient_first_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "show_document_in_inbox": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "mrn": {},
    "error": {},
    "status": {},
    "account": {},
    "success": {},
    "document_id": {},
    "error_message": {},
    "patient_found": {},
    "document_status": {},
    "duration_seconds": {},
    "demographics_document_id": {}
  },
  "additionalProperties": true
}
```
