# Match Order Products

> Perform Match Order Products through NikoHealth.

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

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

- Handler: `nikohealth_match_order_products`

- Connection type: `nikohealth`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `patient_id` — Patient Id (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `matches` — Matches
- `has_ambiguous` — Has Ambiguous
- `has_generic` — Has Generic
- `preview_text` — Preview Text
- `failure_category` — Failure Category
- `review_reason` — Review Reason
- `message` — Message
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "document_id"
  ],
  "properties": {
    "patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "matches": {},
    "message": {},
    "success": {},
    "has_generic": {},
    "preview_text": {},
    "has_ambiguous": {},
    "review_reason": {},
    "failure_category": {}
  },
  "additionalProperties": true
}
```
