# Create order

> Perform Create order through NikoHealth.

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

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

- Handler: `recorded_api_369009c20c168a0c_5be877f7d9d108fb01545acd602fff80`

- 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": "recorded_api_369009c20c168a0c_5be877f7d9d108fb01545acd602fff80"
}

```

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

## Inputs

- `notes` — Notes (textarea)
  Optional text value.
- `priority` — Priority (select)
  Optional selected identifier or value.
  Options: High ("1"), Normal ("2"), Low ("3"), Urgent ("4")
- `quantity` — Quantity (number)
  Optional numeric value.
- `patient_id` — Patient Id (text, required)
  Required text value.
- `product_id` — Product Id (select, required, dynamic options)
  Required selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `referral_date` — Referral Date (date)
  Optional date in YYYY-MM-DD format.
- `length_of_need` — Length Of Need (number)
  Optional numeric value.
- `order_start_date` — Order Start Date (date)
  Optional date in YYYY-MM-DD format.
- `product_catalog_page` — Product Catalog Page (number)
  Optional numeric value.
- `referring_provider_id` — Referring Provider Id (remote_search_select, required, dynamic options)
  Required value. Retrieve allowed values from the dynamic options endpoint.
- `prescription_effective_date` — Prescription Effective Date (date)
  Optional date in YYYY-MM-DD format.
- `referring_provider_location_id` — Referring Provider Location Id (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.

## Outputs

- `Id`
- `Items`
- `State`
- `DisplayId` — Displayid
- `StartDate` — Startdate
- `ReferralDate` — Referraldate
- `PriorityLevel` — Prioritylevel
- `PrescriptionId` — Prescriptionid
- `ServiceLocation` — Servicelocation
- `success` — Success
- `error` — Error
- `retryable` — Retryable
- `write_attempted` — Write Attempted
- `step_results` — Step Results

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",
    "product_id",
    "referring_provider_id"
  ],
  "properties": {
    "notes": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "priority": {
      "enum": [
        "1",
        "2",
        "3",
        "4"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "quantity": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "patient_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "product_id": {
      "type": "string",
      "description": "Required selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "referral_date": {
      "type": "string",
      "format": "date",
      "description": "Optional date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "length_of_need": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "order_start_date": {
      "type": "string",
      "format": "date",
      "description": "Optional date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "product_catalog_page": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "referring_provider_id": {
      "description": "Required value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "remote_search_select"
    },
    "prescription_effective_date": {
      "type": "string",
      "format": "date",
      "description": "Optional date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "referring_provider_location_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": {
    "Id": {},
    "Items": {},
    "State": {},
    "error": {},
    "success": {},
    "DisplayId": {},
    "StartDate": {},
    "retryable": {},
    "ReferralDate": {},
    "step_results": {},
    "PriorityLevel": {},
    "PrescriptionId": {},
    "ServiceLocation": {},
    "write_attempted": {}
  },
  "additionalProperties": true
}
```
