# Persist Patient Documents

> Perform Persist Patient Documents through NikoHealth.

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

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

- Handler: `nikohealth_persist_patient_documents`

- Connection type: `nikohealth`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `document_type_names` — Document Type Names (expression)
  Optional literal value or workflow expression.
- `recency_window_hours` — Recency Window Hours (number)
  Optional numeric value.
- `max_documents` — Max Documents (number)
  Optional numeric value.
- `min_documents` — Min Documents (number)
  Optional numeric value.

## Outputs

- `success` — Success
- `status` — Status
- `created` — Created
- `skipped` — Skipped
- `failed` — Failed
- `document_ids` — Document Ids
- `results` — Results
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- 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": {
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "max_documents": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "min_documents": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "document_type_names": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "recency_window_hours": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "failed": {},
    "status": {},
    "created": {},
    "results": {},
    "skipped": {},
    "success": {},
    "document_ids": {}
  },
  "additionalProperties": true
}
```
