# Search Tasks

> Perform Search Tasks through NikoHealth.

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

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

- Handler: `nikohealth_search_tasks`

- 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": {
    "sort": "CreatedOn ASC",
    "statuses": [
      "Open"
    ],
    "max_pages": 10,
    "page_size": 20,
    "title_match": "exact",
    "skip_if_empty": false
  },
  "handler": "nikohealth_search_tasks"
}

```

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

## Inputs

- `category_name` — Category Name (expression)
  Optional literal value or workflow expression.
- `assignee_name` — Assignee Name (expression)
  Optional literal value or workflow expression.
- `assignee_id` — Assignee Id (expression)
  Optional literal value or workflow expression.
- `title` — Title (expression)
  Optional literal value or workflow expression.
- `patient_id` — Patient Id (expression)
  Optional literal value or workflow expression.
- `title_match` — Title Match (select)
  Optional selected identifier or value.
  Default: `"exact"`
  Options: Exact (whole title) ("exact"), Contains ("contains")
- `statuses` — Statuses (multi_select)
  Optional list of selected values.
  Default: `["Open"]`
  Options: Open ("Open"), Completed ("Completed"), Archived ("Archived")
- `sort` — Sort (select)
  Optional selected identifier or value.
  Default: `"CreatedOn ASC"`
  Options: Ascending (oldest first) ("CreatedOn ASC"), Descending (newest first) ("CreatedOn DESC")
- `page_size` — Page Size (number)
  Optional numeric value.
  Default: `20`
- `max_pages` — Max Pages (number)
  Optional numeric value.
  Default: `10`
- `skip_if_empty` — Skip If Empty (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `skipped` — Skipped
- `category_name` — Category Name
- `category_id` — Category Id
- `assignee_name` — Assignee Name
- `assignee_id` — Assignee Id
- `title` — Title
- `patient_id` — Patient Id
- `title_match` — Title Match
- `statuses` — Statuses
- `sort` — Sort
- `count` — Count
- `unfiltered_count` — Unfiltered Count
- `items` — Items
- `pages_fetched` — Pages Fetched
- `truncated` — Truncated
- `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",
  "properties": {
    "sort": {
      "enum": [
        "CreatedOn ASC",
        "CreatedOn DESC"
      ],
      "type": "string",
      "default": "CreatedOn ASC",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "title": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "statuses": {
      "type": "array",
      "items": {
        "enum": [
          "Open",
          "Completed",
          "Archived"
        ],
        "type": "string"
      },
      "default": [
        "Open"
      ],
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "max_pages": {
      "type": "number",
      "default": 10,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "page_size": {
      "type": "number",
      "default": 20,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "assignee_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "title_match": {
      "enum": [
        "exact",
        "contains"
      ],
      "type": "string",
      "default": "exact",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "assignee_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "category_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_empty": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "sort": {},
    "count": {},
    "error": {},
    "items": {},
    "title": {},
    "skipped": {},
    "success": {},
    "statuses": {},
    "truncated": {},
    "patient_id": {},
    "assignee_id": {},
    "category_id": {},
    "title_match": {},
    "assignee_name": {},
    "category_name": {},
    "pages_fetched": {},
    "unfiltered_count": {}
  },
  "additionalProperties": true
}
```
