# Flag Document Issue

> Perform Flag Document Issue through GenHealth.

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

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

- Handler: `genhealth_flag_document_issue`

## 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": "GenHealth",
  "params": {
    "resolve": "false",
    "severity": "warning"
  },
  "handler": "genhealth_flag_document_issue"
}

```

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

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `code` — Code (select, required)
  Required selected identifier or value.
  Options: Insurance Not Written ("INSURANCE_NOT_WRITTEN")
- `field_path` — Field Path (text)
  Optional text value.
- `severity` — Severity (select)
  Optional selected identifier or value.
  Default: `"warning"`
  Options: Warning ("warning"), Info ("info")
- `resolve` — Resolve (boolean)
  Optional true-or-false value.
  Default: `"false"`

## Outputs

- `success` — Success
- `document_id` — Document Id
- `action` — Action
- `issue_count` — Issue Count
- `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": [
    "document_id",
    "code"
  ],
  "properties": {
    "code": {
      "enum": [
        "INSURANCE_NOT_WRITTEN"
      ],
      "type": "string",
      "description": "Required selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "resolve": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "severity": {
      "enum": [
        "warning",
        "info"
      ],
      "type": "string",
      "default": "warning",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "field_path": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "action": {},
    "success": {},
    "document_id": {},
    "issue_count": {}
  },
  "additionalProperties": true
}
```
