# Prepare Intake Secure Document Requests

> Perform Prepare Intake Secure Document Requests through GenHealth.

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

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

- Handler: `genhealth_prepare_intake_secure_document_requests`

## Inputs

- `workflow_key` — Workflow Key (text)
  Optional text value.
- `case_payload` — Case Payload (json)
  Optional JSON value.
- `ehr_payload` — Ehr Payload (json)
  Optional JSON value.
- `execution_context` — Execution Context (json)
  Optional JSON value.
- `routing_context` — Routing Context (json)
  Optional JSON value.
- `eligibility_context` — Eligibility Context (json)
  Optional JSON value.
- `patient_context` — Patient Context (json)
  Optional JSON value.
- `workflow_items_context` — Workflow Items Context (json)
  Optional JSON value.
- `service_confirmation_prepare_context` — Service Confirmation Prepare Context (json)
  Optional JSON value.
- `trigger_payload` — Trigger Payload (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `secure_document_requests` — Secure Document Requests
- `secure_document_request_context` — Secure Document Request Context
- `max_attempts` — Max Attempts
- `retry_interval_seconds` — Retry Interval Seconds
- `timeout_seconds` — Timeout Seconds
- `error_message` — Error Message

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",
  "properties": {
    "ehr_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "case_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "workflow_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "patient_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "routing_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "trigger_payload": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "execution_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "eligibility_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "workflow_items_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "service_confirmation_prepare_context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "success": {},
    "max_attempts": {},
    "error_message": {},
    "timeout_seconds": {},
    "retry_interval_seconds": {},
    "secure_document_requests": {},
    "secure_document_request_context": {}
  },
  "additionalProperties": true
}
```
