# Execute Billing Actions

> Perform Execute Billing Actions through GenHealth.

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

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

- Handler: `execute_billing_actions`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `resource_type` — Resource Type (select)
  Optional selected identifier or value.
  Options: Patient ("patient"), Insurance ("insurance"), Order ("order"), Document ("document"), Diagnosis Codes ("icd codes"), Prescription ("prescription"), Patient Note ("comment"), Task ("task")
- `action_type` — Action Type (select)
  Optional selected identifier or value.
  Options: Read ("read"), Create ("create"), Update ("update"), Upload ("upload")
- `resource_id` — Resource Id (expression)
  Optional literal value or workflow expression.
- `data` — Data (json)
  Optional JSON value.
- `prescription_selected_product` — Prescription Selected Product (billing_product_select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `idempotency_fingerprint` — Idempotency Fingerprint (expression)
  Optional literal value or workflow expression.
- `auto_push_action_key` — Auto Push Action Key (expression)
  Optional literal value or workflow expression.
- `manual_review_as_soft_fail` — Manual Review As Soft Fail (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `record_summary` — Record Summary (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `skip_if_no_resource_data` — Skip If No Resource Data (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `verify_count_increase` — Verify Count Increase (boolean)
  Optional true-or-false value.
  Default: `"false"`
- `verify_document_types` — Verify Document Types (text)
  Optional text value.
- `verify_max_attempts` — Verify Max Attempts (number)
  Optional numeric value.
  Default: `10`
- `duplicate_match_mode` — Duplicate Match Mode (select)
  Optional selected identifier or value.
  Default: `"strict"`
  Options: Strict ("strict"), Exact First Name, Last Name, and DOB ("exact_identity"), Review Near Matches ("review_near_matches"), Match on Available Identifiers (name-only when no DOB) ("available_identifiers")

## Outputs

- `success` — Success
- `document_id` — Document Id
- `resource_type` — Resource Type
- `action_type` — Action Type
- `status` — Status
- `message` — Message
- `data` — Data
- `actions_executed` — Actions Executed
- `skipped` — Skipped
- `review_required` — Review Required
- `auto_push_allowed` — Auto Push Allowed
- `reason` — Reason
- `missing_fields` — Missing Fields
- `idempotency_fingerprint` — Idempotency Fingerprint
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: yes

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "data": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "dry_run": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "action_type": {
      "enum": [
        "read",
        "create",
        "update",
        "upload"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "resource_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "resource_type": {
      "enum": [
        "patient",
        "insurance",
        "order",
        "document",
        "icd codes",
        "prescription",
        "comment",
        "task"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "record_summary": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "verify_max_attempts": {
      "type": "number",
      "default": 10,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "auto_push_action_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "duplicate_match_mode": {
      "enum": [
        "strict",
        "exact_identity",
        "review_near_matches",
        "available_identifiers"
      ],
      "type": "string",
      "default": "strict",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "verify_count_increase": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "verify_document_types": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "idempotency_fingerprint": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_no_resource_data": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "manual_review_as_soft_fail": {
      "type": "boolean",
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "prescription_selected_product": {
      "type": "string",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "billing_product_select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "data": {},
    "error": {},
    "reason": {},
    "status": {},
    "message": {},
    "skipped": {},
    "success": {},
    "action_type": {},
    "document_id": {},
    "resource_type": {},
    "missing_fields": {},
    "review_required": {},
    "actions_executed": {},
    "auto_push_allowed": {},
    "idempotency_fingerprint": {}
  },
  "additionalProperties": true
}
```
