{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-eligibility-response-2-schema.json",
  "title": "EligibilityResponse_2",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-eligibility-api-openapi.yml#/components/schemas/EligibilityResponse_2",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "checkEligibility": {
          "type": "object",
          "properties": {
            "eligibility": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/EligibilityRecord"
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "Address_3": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "street1": {
          "type": "string"
        },
        "street2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        },
        "zip4": {
          "type": "string"
        }
      }
    },
    "AssociatedIds_2": {
      "type": "object",
      "properties": {
        "alternateId": {
          "type": "string"
        },
        "subscriberId": {
          "type": "string"
        },
        "mbiNumber": {
          "type": "string"
        },
        "healthInsuranceExchangeId": {
          "type": "string"
        }
      }
    },
    "CodeDescription": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "Contact": {
      "type": "object",
      "properties": {
        "addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Address_3"
          }
        }
      }
    },
    "DelegatedInfo_2": {
      "type": "object",
      "properties": {
        "entity": {
          "type": "string"
        },
        "contact": {
          "type": "object",
          "properties": {
            "phone": {
              "type": "string"
            }
          }
        },
        "addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Address_3"
          }
        }
      }
    },
    "EligibilityInfo": {
      "type": "object",
      "properties": {
        "trnId": {
          "type": [
            "string",
            "null"
          ]
        },
        "member": {
          "$ref": "#/$defs/Member"
        },
        "contact": {
          "$ref": "#/$defs/Contact"
        },
        "insuranceInfo": {
          "$ref": "#/$defs/InsuranceInfo_2"
        },
        "associatedIds": {
          "$ref": "#/$defs/AssociatedIds_2"
        },
        "planLevels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlanLevel_2"
          }
        },
        "delegatedInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DelegatedInfo_2"
          }
        }
      }
    },
    "EligibilityRecord": {
      "type": "object",
      "properties": {
        "eligibilityInfo": {
          "$ref": "#/$defs/EligibilityInfo"
        }
      }
    },
    "InsuranceInfo_2": {
      "type": "object",
      "properties": {
        "policyNumber": {
          "type": "string"
        },
        "eligibilityStartDate": {
          "type": "string",
          "format": "date"
        },
        "eligibilityEndDate": {
          "type": "string",
          "format": "date"
        },
        "planStartDate": {
          "type": "string",
          "format": "date"
        },
        "planEndDate": {
          "type": "string",
          "format": "date"
        },
        "policyStatus": {
          "type": "string"
        },
        "planTypeDescription": {
          "type": "string"
        },
        "groupName": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/Address_3"
        },
        "stateOfIssueCode": {
          "type": "string"
        },
        "productType": {
          "type": "string"
        },
        "productCode": {
          "type": "string"
        },
        "payerId": {
          "type": "string"
        },
        "lineOfBusinessCode": {
          "type": "string"
        },
        "governmentProgramCode": {
          "type": "string"
        },
        "coverageType": {
          "type": "string"
        },
        "insuranceTypeCode": {
          "type": "string"
        },
        "insuranceType": {
          "type": "string"
        }
      }
    },
    "Member": {
      "type": "object",
      "properties": {
        "memberId": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "middleName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "suffix": {
          "type": "string"
        },
        "dateOfBirth": {
          "type": "string",
          "format": "date"
        },
        "gender": {
          "type": "string"
        },
        "relationshipCode": {
          "type": "string"
        },
        "dependentSequenceNumber": {
          "type": "string"
        },
        "individualRelationship": {
          "$ref": "#/$defs/CodeDescription"
        },
        "relationshipType": {
          "$ref": "#/$defs/CodeDescription"
        }
      }
    },
    "PlanAmount": {
      "type": "object",
      "properties": {
        "networkStatus": {
          "type": "string"
        },
        "planAmount": {
          "type": "number",
          "format": "decimal"
        },
        "remainingAmount": {
          "type": "number",
          "format": "decimal"
        }
      }
    },
    "PlanLevel_2": {
      "type": "object",
      "properties": {
        "level": {
          "type": "string"
        },
        "family": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlanAmount"
          }
        },
        "individual": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlanAmount"
          }
        }
      }
    }
  }
}