# Setup Patient

> Perform Setup Patient through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/intake_setup_patient](https://genhealth.ai/docs/workflows/integrations/gen-health/intake_setup_patient)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `intake_setup_patient`

## Inputs

- `order_id` — Order Id (text)
  Optional text value.
- `patient_id` — Patient Id (text)
  Optional text value.
- `patient_state` — Patient State (text)
  Optional text value.
- `delivery_address` — Delivery Address (text)
  Optional text value.
- `note_facility_name` — Note Facility Name (text)
  Optional text value.
- `note_facility_updates` — Note Facility Updates (text)
  Optional text value.
- `account_group` — Account Group (text)
  Optional text value.
- `account_key` — Account Key (text)
  Optional text value.
- `note_indicates_private_residence` — Note Indicates Private Residence (boolean)
  Optional true-or-false value.
  Default: `false`
- `set_dropdowns` — Set Dropdowns (boolean)
  Optional true-or-false value.
  Default: `true`
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `false`
- `brightree_test` — Brightree Test (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `facility_manual_followup_reason` — Facility Manual Followup Reason
- `facility_manual_followup_required` — Facility Manual Followup Required
- `ordering_doctor` — Ordering Doctor
- `local_patient_id` — Local Patient Id

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: yes

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "order_id": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "patient_id": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "account_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "account_group": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "patient_state": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "set_dropdowns": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "brightree_test": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "delivery_address": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "note_facility_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "note_facility_updates": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "note_indicates_private_residence": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "ordering_doctor": {},
    "local_patient_id": {},
    "facility_manual_followup_reason": {},
    "facility_manual_followup_required": {}
  },
  "additionalProperties": true
}
```
