# Search Patient Documents

> Perform Search Patient Documents through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_search_patient_documents](https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_search_patient_documents)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_search_patient_documents`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `patient_id` — Patient Id (expression)
  Optional literal value or workflow expression.
- `categories` — Categories (expression)
  Optional literal value or workflow expression.
- `statuses` — Statuses (expression)
  Optional literal value or workflow expression.
- `exclude_display_statuses` — Exclude Display Statuses (expression)
  Optional literal value or workflow expression.
- `include_hidden` — Include Hidden (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `include_deleted` — Include Deleted (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `exclude_self` — Exclude Self (boolean)
  Optional true-or-false value.
  Default: `"true"`
- `limit` — Limit (number)
  Optional numeric value.
  Default: `50`

## Outputs

- `success` — Success
- `documents` — Documents
- `document_ids` — Document Ids
- `count` — Count
- `patient_id` — Patient Id
- `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": {
    "limit": {
      "type": "number",
      "default": 50,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "statuses": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "categories": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "exclude_self": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "include_hidden": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "include_deleted": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "exclude_display_statuses": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "success": {},
    "documents": {},
    "patient_id": {},
    "document_ids": {}
  },
  "additionalProperties": true
}
```
