# Set Prescription Dates

> Perform Set Prescription Dates through NikoHealth.

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

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

- Handler: `nikohealth_set_prescription_dates`

- 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,
    "dry_run": false,
    "skip_if_unchanged": true
  },
  "handler": "nikohealth_set_prescription_dates"
}

```

[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.
- `prescription_id` — Prescription Id (expression, required)
  Required literal value or workflow expression.
- `effective_date` — Effective Date (expression, required)
  Required literal value or workflow expression.
- `length_of_need_months` — Length Of Need Months (expression)
  Optional literal value or workflow expression.
- `skip_if_unchanged` — Skip If Unchanged (boolean)
  Optional true-or-false value.
  Default: `true`
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `false`
- `verify` — Verify (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `prescription_id` — Prescription Id
- `previous_effective_date` — Previous Effective Date
- `effective_date` — Effective Date
- `length_of_need_months` — Length Of Need Months
- `changed` — Changed
- `verified` — Verified
- `expiry_date` — Expiry Date
- `status` — Status
- `dry_run` — Dry Run
- `skipped` — Skipped
- `message` — Message
- `error` — Error

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",
  "required": [
    "patient_id",
    "prescription_id",
    "effective_date"
  ],
  "properties": {
    "verify": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "dry_run": {
      "type": "boolean",
      "default": false,
      "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"
    },
    "effective_date": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "prescription_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_unchanged": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "length_of_need_months": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "changed": {},
    "dry_run": {},
    "message": {},
    "skipped": {},
    "success": {},
    "verified": {},
    "expiry_date": {},
    "effective_date": {},
    "prescription_id": {},
    "length_of_need_months": {},
    "previous_effective_date": {}
  },
  "additionalProperties": true
}
```
