# Create Patient Authorization

> Perform Create Patient Authorization through NikoHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_create_patient_authorization](https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_create_patient_authorization)

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

- Handler: `nikohealth_create_patient_authorization`

- Connection type: `nikohealth`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "NikoHealth",
  "params": {},
  "handler": "nikohealth_create_patient_authorization"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `auth_number` — Auth Number (expression, required)
  Required literal value or workflow expression.
- `payer_id` — Payer Id (expression, required)
  Required literal value or workflow expression.
- `hcpcs_codes` — Hcpcs Codes (expression, required)
  Required literal value or workflow expression.
- `price_option` — Price Option (select, required)
  Required selected identifier or value.
  Options: Purchase ("purchase"), Rental ("rental")
- `units` — Units (number)
  Optional numeric value.
- `from_date` — From Date (expression)
  Optional literal value or workflow expression.
- `to_date` — To Date (expression)
  Optional literal value or workflow expression.
- `notes` — Notes (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `created` — Created
- `already_existed` — Already Existed
- `authorization_id` — Authorization Id
- `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": [
    "patient_id",
    "auth_number",
    "payer_id",
    "hcpcs_codes",
    "price_option"
  ],
  "properties": {
    "notes": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "units": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "to_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "payer_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "from_date": {
      "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"
    },
    "auth_number": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "hcpcs_codes": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "price_option": {
      "enum": [
        "purchase",
        "rental"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "created": {},
    "success": {},
    "already_existed": {},
    "authorization_id": {}
  },
  "additionalProperties": true
}
```
