# Create Patient Prescription

> Perform Create Patient Prescription through NikoHealth.

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

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

- Handler: `nikohealth_create_patient_prescription`

- 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": {
    "verify": true
  },
  "handler": "nikohealth_create_patient_prescription"
}

```

[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.
- `treating_provider_id` — Treating Provider Id (expression, required)
  Required literal value or workflow expression.
- `treating_provider_location_id` — Treating Provider Location Id (expression, required)
  Required literal value or workflow expression.
- `hcpcs_codes` — Hcpcs Codes (expression, required)
  Required literal value or workflow expression.
- `diagnosis_codes` — Diagnosis Codes (expression)
  Optional literal value or workflow expression.
- `effective_date` — Effective Date (expression)
  Optional literal value or workflow expression.
- `verify` — Verify (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `prescription_id` — Prescription Id
- `hcpcs_codes` — Hcpcs Codes
- `created` — Created
- `was_already_present` — Was Already Present
- `verified` — Verified
- `covered_codes` — Covered Codes
- `error` — Error
- `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": [
    "patient_id",
    "treating_provider_id",
    "treating_provider_location_id",
    "hcpcs_codes"
  ],
  "properties": {
    "verify": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "patient_id": {
      "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"
    },
    "effective_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "diagnosis_codes": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "treating_provider_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "treating_provider_location_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "created": {},
    "success": {},
    "verified": {},
    "retryable": {},
    "hcpcs_codes": {},
    "covered_codes": {},
    "prescription_id": {},
    "was_already_present": {}
  },
  "additionalProperties": true
}
```
