{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-eligibility-pre-check-request-schema.json",
  "title": "EligibilityPreCheckRequest",
  "description": "Request object for Eligibility Pre-Check operation",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-eligibility-api-openapi.yml#/components/schemas/EligibilityPreCheckRequest",
  "type": "object",
  "properties": {
    "query": {
      "description": "GraphQL query for the Eligibility Pre-Check operation",
      "type": "string"
    },
    "variables": {
      "description": "Variables for the Eligibility Pre-Check operation",
      "$ref": "#/$defs/Variables"
    }
  },
  "$defs": {
    "Input": {
      "type": "object",
      "properties": {
        "memberId": {
          "description": "Loop: 2100C and 2100D, Segment: MN1, Element: NM109, Notes: NM108=MI, memberId 2-80 alphanumeric characters",
          "type": "string",
          "maxLength": 80,
          "minLength": 0
        },
        "firstName": {
          "description": "Loop: 2100C and 2100D, Segment: MN1, Element: NM104, Notes: firstName 1-35 alphanumeric characters",
          "type": "string",
          "maxLength": 35,
          "minLength": 0
        },
        "lastName": {
          "description": "Loop: 2100C and 2100D, Segment: MN1, Element: NM103, Notes: lastName 1-60 alphanumeric characters",
          "maxLength": 60,
          "minLength": 0,
          "type": "string"
        },
        "groupNumber": {
          "description": "Loop: 2100C and 2100D, Segment: REF, Element: REF01, Notes: REF01=6P Group Number",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "dateOfBirth": {
          "description": "Loop: 2100C and 2100D, Segment: DMG, Element: DMG02, Notes: date of birth in YYYYMMDD",
          "type": "string"
        },
        "serviceStartDate": {
          "description": "loop: 2100C and 2100D Segment: DTP,  Element: DTP03 ",
          "type": "string"
        },
        "serviceEndDate": {
          "description": "loop: 2100C and 2100D Segment: DTP,  Element: DTP03",
          "type": "string"
        },
        "coverageTypes": {
          "description": "CoverageTypes",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "payerId": {
          "description": "Loop: 2100B Segment: MN1, Element: NM109, Notes: NM101=PR when provider Type='payer' && payerId is present otherwise 1P for Provider, NM108=PI Payor Identification 2-80 alphanumeric characters",
          "maxLength": 80,
          "minLength": 0,
          "type": "string"
        },
        "trnId": {
          "description": "",
          "type": "string"
        },
        "serviceLevelCodes": {
          "description": "array of strings Service Level Codes",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "providerFirstName": {
          "description": "Loop: 2010AA Segment: MN1, Element: NM104, if billing provider is different from rendering provider, then 2310B Segment: MN1, Element: NM104",
          "maxLength": 35,
          "minLength": 0,
          "type": "string"
        },
        "providerLastName": {
          "description": "Loop: 2010AA Segment: MN1, Element: NM103, if billing provider is different from rendering provider, then 2310B, Segment: MN1, Element: NM103",
          "maxLength": 60,
          "minLength": 0,
          "type": "string"
        },
        "providerNPI": {
          "description": "Loop: 2010AA Segment: MN1, Element: NM109, if billing provider is different from rendering provider, then 2310B, Segment: MN1, Element: NM109",
          "maxLength": 80,
          "minLength": 0,
          "type": "string"
        },
        "planStartDate": {
          "description": "loop: 2100C/2100D  Element:DTP,  346 ",
          "type": "string"
        },
        "planEndDate": {
          "description": "loop: 2100C Element:DTP 347 ",
          "type": "string"
        },
        "familyIndicator": {
          "description": "Family Indicator",
          "type": "string"
        },
        "addressLineOne": {
          "description": "Loop: 2100C and 2100D, Segment: N301; Applicable only to non-UHC payers",
          "type": "string"
        },
        "addressLineTwo": {
          "description": "Loop: 2100C and 2100D, Segment: N302; Applicable only to non-UHC payers",
          "type": "string"
        },
        "city": {
          "description": "Loop: 2100C and 2100D, Segment: N401; Applicable only to non-UHC payers",
          "type": "string"
        },
        "state": {
          "description": "Loop: 2100C and 2100D, Segment: N402; Applicable only to non-UHC payers",
          "type": "string"
        },
        "zip": {
          "description": "Loop: 2100C and 2100D, Segment: N403; Applicable only to non-UHC payers",
          "type": "string"
        }
      },
      "required": [
        "payerId",
        "providerLastName"
      ],
      "description": "Input data for the Eligibility Pre-Check operation"
    },
    "Variables": {
      "type": "object",
      "properties": {
        "input": {
          "description": "Input data for the Eligibility Pre-Check operation",
          "$ref": "#/$defs/Input"
        }
      },
      "description": "Variables for the Eligibility Pre-Check operation"
    }
  }
}