# Check Eligibility

> Perform Check Eligibility through TMHP.

Source: [https://genhealth.ai/docs/workflows/integrations/tmhp/tmhp_check_eligibility](https://genhealth.ai/docs/workflows/integrations/tmhp/tmhp_check_eligibility)

Integration: [TMHP](https://genhealth.ai/docs/workflows/integrations/tmhp.md)

- Handler: `tmhp_check_eligibility`

- Connection type: `tmhp`

## 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": "TMHP",
  "params": {
    "enabled": true,
    "explain_inactive": true
  },
  "handler": "tmhp_check_eligibility"
}

```

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

## Inputs

- `enabled` — Enabled (boolean)
  Optional true-or-false value.
  Default: `true`
- `medicaid_id` — Medicaid Id (expression)
  Optional literal value or workflow expression.
- `patient_birth_date` — Patient Birth Date (expression)
  Optional literal value or workflow expression.
- `patient_last_name` — Patient Last Name (expression)
  Optional literal value or workflow expression.
- `patient_first_name` — Patient First Name (expression)
  Optional literal value or workflow expression.
- `ssn` — Ssn (expression)
  Optional literal value or workflow expression.
- `date_of_service` — Date Of Service (expression)
  Optional literal value or workflow expression.
- `provider_npi` — Provider Npi (expression)
  Optional literal value or workflow expression.
- `explain_inactive` — Explain Inactive (boolean)
  Optional true-or-false value.
  Default: `true`
- `skip_reason` — Skip Reason (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `status` — Status
- `is_eligible` — Is Eligible
- `program` — Program
- `benefit_plan` — Benefit Plan
- `medical_coverage` — Medical Coverage
- `coverage_start` — Coverage Start
- `coverage_end` — Coverage End
- `is_managed_care` — Is Managed Care
- `managed_care_organization` — Managed Care Organization
- `managed_care_plan_code` — Managed Care Plan Code
- `managed_care_line_of_business` — Managed Care Line Of Business
- `has_medicare` — Has Medicare
- `has_third_party_resources` — Has Third Party Resources
- `has_tpl` — Has Tpl
- `has_lock_in` — Has Lock In
- `inactive_reason` — Inactive Reason
- `inactive_reason_message` — Inactive Reason Message
- `last_coverage_end` — Last Coverage End
- `coverage_details` — Coverage Details
- `is_coverage_data_issue` — Is Coverage Data Issue
- `portal` — Portal
- `settings_url` — Settings Url
- `error` — Error
- `error_reason` — Error Reason
- `lookup_error` — Lookup Error
- `skipped` — Skipped
- `skip_reason` — Skip Reason

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": {
    "ssn": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "enabled": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "medicaid_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_reason": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "provider_npi": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "date_of_service": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "explain_inactive": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "patient_last_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_birth_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_first_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "portal": {},
    "status": {},
    "has_tpl": {},
    "program": {},
    "skipped": {},
    "success": {},
    "has_lock_in": {},
    "is_eligible": {},
    "skip_reason": {},
    "benefit_plan": {},
    "coverage_end": {},
    "error_reason": {},
    "has_medicare": {},
    "lookup_error": {},
    "settings_url": {},
    "coverage_start": {},
    "inactive_reason": {},
    "is_managed_care": {},
    "coverage_details": {},
    "medical_coverage": {},
    "last_coverage_end": {},
    "is_coverage_data_issue": {},
    "managed_care_plan_code": {},
    "inactive_reason_message": {},
    "has_third_party_resources": {},
    "managed_care_organization": {},
    "managed_care_line_of_business": {}
  },
  "additionalProperties": true
}
```
