Skip to documentation
WPS integration

Check Eligibility

Perform Check Eligibility through WPS.

View as Markdown
wps_check_eligibility
writewps

Use in a workflow

Copy the discovered node config and fill its params from the input contract. Validate the complete graph before publishing. Integration results use {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove success.

{
  "_group": "WPS",
  "params": {
    "enabled": true,
    "generate_document": false,
    "show_generated_document_in_inbox": false
  },
  "handler": "wps_check_eligibility"
}

Action contracts and connections · Run recovery

Inputs

  • enabled
    boolean
    Enabled

    Optional true-or-false value.

    Default: true

  • medicare_number
    expressionrequired
    Medicare Number

    Required literal value or workflow expression.

  • patient_first_name
    expressionrequired
    Patient First Name

    Required literal value or workflow expression.

  • patient_last_name
    expressionrequired
    Patient Last Name

    Required literal value or workflow expression.

  • patient_birth_date
    expressionrequired
    Patient Birth Date

    Required literal value or workflow expression.

  • date_of_service
    expression
    Date Of Service

    Optional literal value or workflow expression.

  • npi
    expression
    Npi

    Optional literal value or workflow expression.

  • skip_reason
    expression
    Skip Reason

    Optional literal value or workflow expression.

  • generate_document
    boolean
    Generate Document

    Optional true-or-false value.

    Default: false

  • show_generated_document_in_inbox
    boolean
    Show Generated Document In Inbox

    Optional true-or-false value.

    Default: false

  • generated_pdf_filename
    expression
    Generated Pdf Filename

    Optional literal value or workflow expression.

Outputs

  • successSuccess
  • statusStatus
  • is_eligibleIs Eligible
  • status_reasonStatus Reason
  • part_a_effective_datePart A Effective Date
  • part_b_effective_datePart B Effective Date
  • entitlement_reasonEntitlement Reason
  • date_of_deathDate Of Death
  • part_b_deductible_basePart B Deductible Base
  • part_b_deductible_remainingPart B Deductible Remaining
  • has_medicare_advantageHas Medicare Advantage
  • medicare_advantage_plansMedicare Advantage Plans
  • has_mspHas Msp
  • msp_recordsMsp Records
  • has_hospiceHas Hospice
  • has_qmbHas Qmb
  • coverage_flagsCoverage Flags
  • transaction_idTransaction Id
  • portalPortal
  • errorError
  • error_reasonError Reason
  • skippedSkipped
  • skip_reasonSkip Reason
  • document_idDocument Id
  • document_errorDocument Error
  • generated_pdf_statusGenerated Pdf Status
  • generated_pdf_document_idGenerated Pdf Document Id
  • generated_pdf_s3_keyGenerated Pdf S3 Key
  • generated_pdf_s3_uriGenerated Pdf S3 Uri
  • generated_pdf_filenameGenerated Pdf Filename
  • generated_pdf_errorGenerated Pdf 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
{
  "type": "object",
  "required": [
    "medicare_number",
    "patient_first_name",
    "patient_last_name",
    "patient_birth_date"
  ],
  "properties": {
    "npi": {
      "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"
    },
    "skip_reason": {
      "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"
    },
    "medicare_number": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "generate_document": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "patient_last_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_birth_date": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_first_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "generated_pdf_filename": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "show_generated_document_in_inbox": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "portal": {},
    "status": {},
    "has_msp": {},
    "has_qmb": {},
    "skipped": {},
    "success": {},
    "document_id": {},
    "has_hospice": {},
    "is_eligible": {},
    "msp_records": {},
    "skip_reason": {},
    "error_reason": {},
    "date_of_death": {},
    "status_reason": {},
    "coverage_flags": {},
    "document_error": {},
    "transaction_id": {},
    "entitlement_reason": {},
    "generated_pdf_error": {},
    "generated_pdf_s3_key": {},
    "generated_pdf_s3_uri": {},
    "generated_pdf_status": {},
    "part_a_effective_date": {},
    "part_b_effective_date": {},
    "generated_pdf_filename": {},
    "has_medicare_advantage": {},
    "part_b_deductible_base": {},
    "medicare_advantage_plans": {},
    "generated_pdf_document_id": {},
    "part_b_deductible_remaining": {}
  },
  "additionalProperties": true
}
View all WPS actions