# Search Patient

> Perform Search Patient through NikoHealth.

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

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

- Handler: `nikohealth_search_patient`

- Connection type: `nikohealth`

## Inputs

- `first_name` — First Name (text)
  Optional text value.
- `last_name` — Last Name (text)
  Optional text value.
- `date_of_birth` — Date Of Birth (text)
  Optional text value.
- `full_address` — Full Address (text)
  Optional text value.
- `tags` — Tags (expression)
  Optional literal value or workflow expression.
- `created_from` — Created From (expression)
  Optional literal value or workflow expression.
- `created_to` — Created To (expression)
  Optional literal value or workflow expression.
- `sort_by` — Sort By (select)
  Optional selected identifier or value.
  Default: `"name"`
  Options: Full Name ("name"), Created Date ("created"), Modified Date ("modified")
- `sort_descending` — Sort Descending (boolean)
  Optional true-or-false value.
  Default: `false`
- `page_size` — Page Size (number)
  Optional numeric value.
  Default: `100`
- `page_index` — Page Index (number)
  Optional numeric value.
  Default: `0`

## Outputs

- `patients` — Patients
- `count` — Count
- `sort_expression` — Sort Expression
- `unknown_tags` — Unknown Tags
- `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": {
    "tags": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "sort_by": {
      "enum": [
        "name",
        "created",
        "modified"
      ],
      "type": "string",
      "default": "name",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "last_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "page_size": {
      "type": "number",
      "default": 100,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "created_to": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "first_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "page_index": {
      "type": "number",
      "default": 0,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "created_from": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "full_address": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "date_of_birth": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "sort_descending": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "patients": {},
    "unknown_tags": {},
    "sort_expression": {}
  },
  "additionalProperties": true
}
```
