# Update Patient

> Perform Update Patient through athenahealth.

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

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

- Handler: `athena_update_patient`

- Connection type: `athenahealth`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `note_to_append` — Note To Append (textarea)
  Optional text value.
- `email` — Email (expression)
  Optional literal value or workflow expression.
- `address_line_1` — Address Line 1 (expression)
  Optional literal value or workflow expression.
- `address_line_2` — Address Line 2 (expression)
  Optional literal value or workflow expression.
- `city` — City (expression)
  Optional literal value or workflow expression.
- `state` — State (expression)
  Optional literal value or workflow expression.
- `zip_code` — Zip Code (expression)
  Optional literal value or workflow expression.
- `home_phone` — Home Phone (expression)
  Optional literal value or workflow expression.
- `mobile_phone` — Mobile Phone (expression)
  Optional literal value or workflow expression.
- `work_phone` — Work Phone (expression)
  Optional literal value or workflow expression.
- `contact_preference` — Contact Preference (select)
  Optional selected identifier or value.
  Options: Leave unchanged (""), Mobile Phone ("MOBILEPHONE"), Home Phone ("HOMEPHONE"), Work Phone ("WORKPHONE")
- `consent_to_call` — Consent To Call (select)
  Optional selected identifier or value.
  Options: Leave unchanged (""), Yes ("Y"), No ("N")
- `consent_to_text` — Consent To Text (select)
  Optional selected identifier or value.
  Options: Leave unchanged (""), Yes ("Y"), No ("N")
- `timezone` — Timezone (expression)
  Optional literal value or workflow expression.
  Default: `"America/Chicago"`
- `write_enabled` — Write Enabled (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `submitted` — Submitted
- `write_skipped` — Write Skipped
- `verified` — Verified
- `patient_id` — Patient Id
- `changed_fields` — Changed Fields
- `note_appended` — Note Appended
- `error` — Error
- `error_message` — Error Message
- `failure_phase` — Failure Phase
- `error_code` — Error Code

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": [
    "patient_id"
  ],
  "properties": {
    "city": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "email": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "state": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "timezone": {
      "default": "America/Chicago",
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "zip_code": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "home_phone": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "work_phone": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "mobile_phone": {
      "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"
    },
    "address_line_1": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "address_line_2": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "note_to_append": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "consent_to_call": {
      "enum": [
        "",
        "Y",
        "N"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "consent_to_text": {
      "enum": [
        "",
        "Y",
        "N"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "contact_preference": {
      "enum": [
        "",
        "MOBILEPHONE",
        "HOMEPHONE",
        "WORKPHONE"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "verified": {},
    "submitted": {},
    "error_code": {},
    "patient_id": {},
    "error_message": {},
    "failure_phase": {},
    "note_appended": {},
    "write_skipped": {},
    "changed_fields": {}
  },
  "additionalProperties": true
}
```
