# Get Patient Documents

> Perform Get Patient Documents through NikoHealth.

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

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

- Handler: `nikohealth_get_patient_documents`

- 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": {
    "max_pages": 1,
    "page_size": 50,
    "require_complete": false
  },
  "handler": "nikohealth_get_patient_documents"
}

```

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

## Inputs

- `patient_id` — Patient Id (text, required)
  Required text value.
- `document_types` — Document Types (multi_select, dynamic options)
  Optional list of selected values. Retrieve allowed values from the dynamic options endpoint.
- `page_size` — Page Size (number)
  Optional numeric value.
  Default: `50`
- `max_pages` — Max Pages (number)
  Optional numeric value.
  Default: `1`
- `require_complete` — Require Complete (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `documents` — Documents
- `patient_document_ids` — Patient Document Ids
- `count` — Count
- `page_count` — Page Count
- `truncated_by_page_cap` — Truncated By Page Cap
- `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": [
    "patient_id"
  ],
  "properties": {
    "max_pages": {
      "type": "number",
      "default": 1,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "page_size": {
      "type": "number",
      "default": 50,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "patient_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "document_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional list of selected values. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "multi_select"
    },
    "require_complete": {
      "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": {},
    "success": {},
    "documents": {},
    "page_count": {},
    "patient_document_ids": {},
    "truncated_by_page_cap": {}
  },
  "additionalProperties": true
}
```
