# Create Patient

> Perform Create Patient through athenahealth.

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

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

- Handler: `athena_create_patient`

- Connection type: `athenahealth`

## Inputs

- `first_name` — First Name (expression, required)
  Required literal value or workflow expression.
- `last_name` — Last Name (expression, required)
  Required literal value or workflow expression.
- `date_of_birth` — Date Of Birth (expression, required)
  Required literal value or workflow expression.
- `middle_initial` — Middle Initial (expression)
  Optional literal value or workflow expression.
- `name_suffix` — Name Suffix (expression)
  Optional literal value or workflow expression.
- `preferred_name` — Preferred Name (expression)
  Optional literal value or workflow expression.
- `sex` — Sex (select)
  Optional selected identifier or value.
  Options: Leave unset (""), Female ("F"), Male ("M")
- `ssn` — Ssn (expression)
  Optional literal value or workflow expression.
- `marital_status` — Marital Status (select)
  Optional selected identifier or value.
  Options: Leave unset (""), UNKNOWN ("U"), MARRIED ("M"), SINGLE ("S"), DIVORCED ("D"), SEPARATED ("X"), WIDOWED ("W"), PARTNER ("P")
- `assigned_sex_at_birth` — Assigned Sex At Birth (select)
  Optional selected identifier or value.
  Options: Leave unset (""), Male ("M"), Female ("F"), Choose not to disclose ("N"), Unknown ("U")
- `gender_identity` — Gender Identity (select)
  Optional selected identifier or value.
  Options: Leave unset (""), Identifies as Male ("1"), Identifies as Female ("2"), Non-binary gender identity ("21"), Unknown ("22"), Transgender Male/Female-to-Male (FTM) ("3"), Transgender Female/Male-to-Female (MTF) ("4"), Gender non-conforming (neither exclusively male nor female) ("5"), Additional gender category / other, please specify ("6"), Choose not to disclose ("7")
- `sexual_orientation` — Sexual Orientation (select)
  Optional selected identifier or value.
  Options: Leave unset (""), Lesbian, gay or homosexual ("1"), Straight or heterosexual ("2"), Bisexual ("3"), Something else, please describe ("4"), Don't know ("5"), Choose not to disclose ("6")
- `preferred_pronouns` — Preferred Pronouns (select)
  Optional selected identifier or value.
  Options: Leave unset (""), he/him ("he/him"), she/her ("she/her"), they/them ("they/them")
- `address_line_1` — Address Line 1 (expression, required)
  Required literal value or workflow expression.
- `address_line_2` — Address Line 2 (expression)
  Optional literal value or workflow expression.
- `city` — City (expression, required)
  Required literal value or workflow expression.
- `state` — State (select, required)
  Required selected identifier or value.
  Options: Leave unset (""), AA-Armed Forces Americas ("AA"), AE-Armed Forces Africa ("AE"), AK-Alaska ("AK"), AL-Alabama ("AL"), AP-Armed Forces Pacific ("AP"), AR-Arkansas ("AR"), AS-American Samoa ("AS"), AZ-Arizona ("AZ"), CA-California ("CA"), CO-Colorado ("CO"), CT-Connecticut ("CT"), DC-District of Columbia ("DC"), DE-Delaware ("DE"), FL-Florida ("FL"), FM-Federated States of Micronesia ("FM"), GA-Georgia ("GA"), GU-Guam ("GU"), HI-Hawaii ("HI"), IA-Iowa ("IA"), ID-Idaho ("ID"), IL-Illinois ("IL"), IN-Indiana ("IN"), KS-Kansas ("KS"), KY-Kentucky ("KY"), LA-Louisiana ("LA"), MA-Massachusetts ("MA"), MD-Maryland ("MD"), ME-Maine ("ME"), MH-Marshall Islands ("MH"), MI-Michigan ("MI"), MN-Minnesota ("MN"), MO-Missouri ("MO"), MP-Northern Mariana Islands ("MP"), MS-Mississippi ("MS"), MT-Montana ("MT"), NC-North Carolina ("NC"), ND-North Dakota ("ND"), NE-Nebraska ("NE"), NH-New Hampshire ("NH"), NJ-New Jersey ("NJ"), NM-New Mexico ("NM"), NV-Nevada ("NV"), NY-New York ("NY"), OH-Ohio ("OH"), OK-Oklahoma ("OK"), OR-Oregon ("OR"), PA-Pennsylvania ("PA"), PR-Puerto Rico ("PR"), PW-Palau ("PW"), RI-Rhode Island ("RI"), SC-South Carolina ("SC"), SD-South Dakota ("SD"), TN-Tennessee ("TN"), TX-Texas ("TX"), UT-Utah ("UT"), VA-Virginia ("VA"), VI-Virgin Islands ("VI"), VT-Vermont ("VT"), WA-Washington ("WA"), WI-Wisconsin ("WI"), WV-West Virginia ("WV"), WY-Wyoming ("WY")
- `zip_code` — Zip Code (expression, required)
  Required literal value or workflow expression.
- `email` — Email (expression)
  Optional literal value or workflow expression.
- `mobile_phone` — Mobile Phone (expression)
  Optional literal value or workflow expression.
- `home_phone` — Home Phone (expression)
  Optional literal value or workflow expression.
- `work_phone` — Work Phone (expression)
  Optional literal value or workflow expression.
- `contact_preference` — Contact Preference (expression)
  Optional literal value or workflow expression.
- `privacy_notice_given` — Privacy Notice Given (boolean)
  Optional true-or-false value.
  Default: `true`
- `patient_signature_on_file` — Patient Signature On File (boolean)
  Optional true-or-false value.
  Default: `true`
- `insured_signature_on_file` — Insured Signature On File (boolean)
  Optional true-or-false value.
  Default: `true`
- `medication_history_consent` — Medication History Consent (boolean)
  Optional true-or-false value.
  Default: `true`
- `consent_to_call` — Consent To Call (boolean)
  Optional true-or-false value.
  Default: `true`
- `consent_to_text` — Consent To Text (boolean)
  Optional true-or-false value.
  Default: `true`
- `registration_date` — Registration Date (expression)
  Optional literal value or workflow expression.
- `registration_department_id` — Registration Department Id (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `primary_provider_id` — Primary Provider Id (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `referral_source_id` — Referral Source Id (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `notes` — Notes (textarea)
  Optional text value.
- `guarantor_is_self` — Guarantor Is Self (boolean)
  Optional true-or-false value.
  Default: `true`
- `additional_form_fields` — Additional Form Fields (json)
  Optional JSON value.
- `duplicate_check` — Duplicate Check (boolean)
  Optional true-or-false value.
  Default: `true`
- `write_enabled` — Write Enabled (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `submitted` — Submitted
- `write_skipped` — Write Skipped
- `skip_reason` — Skip Reason
- `patient_id` — Patient Id
- `athena` — Athena
- `previous_operation` — Previous Operation
- `duplicate_found` — Duplicate Found
- `duplicate_patient_ids` — Duplicate Patient Ids
- `duplicate_count` — Duplicate Count
- `submitted_field_count` — Submitted Field Count
- `error` — Error
- `error_message` — Error Message
- `failure_phase` — Failure Phase
- `error_code` — Error Code
- `retryable` — Retryable

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": [
    "first_name",
    "last_name",
    "date_of_birth",
    "address_line_1",
    "city",
    "state",
    "zip_code"
  ],
  "properties": {
    "sex": {
      "enum": [
        "",
        "F",
        "M"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "ssn": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "city": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "email": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "notes": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "state": {
      "enum": [
        "",
        "AA",
        "AE",
        "AK",
        "AL",
        "AP",
        "AR",
        "AS",
        "AZ",
        "CA",
        "CO",
        "CT",
        "DC",
        "DE",
        "FL",
        "FM",
        "GA",
        "GU",
        "HI",
        "IA",
        "ID",
        "IL",
        "IN",
        "KS",
        "KY",
        "LA",
        "MA",
        "MD",
        "ME",
        "MH",
        "MI",
        "MN",
        "MO",
        "MP",
        "MS",
        "MT",
        "NC",
        "ND",
        "NE",
        "NH",
        "NJ",
        "NM",
        "NV",
        "NY",
        "OH",
        "OK",
        "OR",
        "PA",
        "PR",
        "PW",
        "RI",
        "SC",
        "SD",
        "TN",
        "TX",
        "UT",
        "VA",
        "VI",
        "VT",
        "WA",
        "WI",
        "WV",
        "WY"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "zip_code": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "last_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "first_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "home_phone": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "work_phone": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "name_suffix": {
      "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"
    },
    "date_of_birth": {
      "description": "Required 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": "Required 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"
    },
    "marital_status": {
      "enum": [
        "",
        "U",
        "M",
        "S",
        "D",
        "X",
        "W",
        "P"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "middle_initial": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "preferred_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "consent_to_call": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "consent_to_text": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "duplicate_check": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "gender_identity": {
      "enum": [
        "",
        "1",
        "2",
        "21",
        "22",
        "3",
        "4",
        "5",
        "6",
        "7"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "guarantor_is_self": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "registration_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "contact_preference": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "preferred_pronouns": {
      "enum": [
        "",
        "he/him",
        "she/her",
        "they/them"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "referral_source_id": {
      "type": "string",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "sexual_orientation": {
      "enum": [
        "",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "primary_provider_id": {
      "type": "string",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "privacy_notice_given": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "assigned_sex_at_birth": {
      "enum": [
        "",
        "M",
        "F",
        "N",
        "U"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "additional_form_fields": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "insured_signature_on_file": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "patient_signature_on_file": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "medication_history_consent": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "registration_department_id": {
      "type": "string",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "athena": {},
    "success": {},
    "retryable": {},
    "submitted": {},
    "error_code": {},
    "patient_id": {},
    "skip_reason": {},
    "error_message": {},
    "failure_phase": {},
    "write_skipped": {},
    "duplicate_count": {},
    "duplicate_found": {},
    "previous_operation": {},
    "duplicate_patient_ids": {},
    "submitted_field_count": {}
  },
  "additionalProperties": true
}
```
