{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-ncpdp-format-request-data-schema.json",
  "title": "NcpdpFormatRequestData",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-telecom-format-api-openapi.yml#/components/schemas/NcpdpFormatRequestData",
  "properties": {
    "chainID": {
      "format": "ncpdp-alphanumeric",
      "maxLength": 30,
      "type": "string"
    },
    "externalMessageId": {
      "maxLength": 30,
      "pattern": "^[0-9]*$",
      "type": "string"
    },
    "response": {
      "$ref": "#/$defs/NcpdpResponse"
    },
    "sourceSystemId": {
      "maxLength": 30,
      "pattern": "^[0-9]*$",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "AdditionalMessageInformationGrouping": {
      "properties": {
        "additionalMessageInformation": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "additionalMessageInformationContinuity": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "additionalMessageInformationQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "BenefitStageGrouping": {
      "properties": {
        "benefitStageAmount": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "benefitStageQualifier": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ClaimSegment": {
      "properties": {
        "benefitTypeOpportunities": {
          "items": {
            "$ref": "#/$defs/NcpdpCodeType"
          },
          "type": "array"
        },
        "benefitTypeOpportunityCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "empty": {
          "type": "boolean"
        },
        "formularyAlternativeProductCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "formularyAlternativeProductGroupings": {
          "items": {
            "$ref": "#/$defs/FormularyAlternativeProductGrouping"
          },
          "type": "array"
        },
        "maximumAge": {
          "$ref": "#/$defs/NcpdpIntegerType"
        },
        "maximumAgeQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "maximumAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "maximumAmountQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "maximumAmountTimePeriod": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "maximumAmountTimePeriodEndDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "maximumAmountTimePeriodStartDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "maximumAmountTimePeriodUnits": {
          "$ref": "#/$defs/NcpdpIntegerType"
        },
        "medicaidSubrogationIcnOrTcn": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "minimumAge": {
          "$ref": "#/$defs/NcpdpIntegerType"
        },
        "minimumAgeQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "minimumAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "minimumAmountQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "planBenefitOverrideIndicator": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "planBenefitOverrideValueCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "planBenefitOverrideValues": {
          "items": {
            "$ref": "#/$defs/NcpdpAlphaNumericType"
          },
          "type": "array"
        },
        "preferredProductCount": {
          "$ref": "#/$defs/NcpdpCountType",
          "deprecated": true
        },
        "preferredProductGroupings": {
          "deprecated": true,
          "items": {
            "$ref": "#/$defs/FormularyAlternativeProductGrouping"
          },
          "type": "array"
        },
        "prescriptionOrServiceReferenceNumber": {
          "$ref": "#/$defs/NcpdpLongType"
        },
        "prescriptionOrServiceReferenceNumberQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        },
        "remainingAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "remainingAmountQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "subrogationRequestorsReconciliationId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        }
      },
      "type": "object"
    },
    "DurOrPpsGrouping": {
      "properties": {
        "clinicalSignificanceCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "databaseIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "durAdditionalText": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "durFreeTextMessage": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "durOrDueCoAgentDescription": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "durOrDueCoAgentId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "durOrDueCoAgentIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "durOrDueCompoundProductId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "durOrDueCompoundProductIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "durOrDueFreeTextMessage": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "durOrDueMaximumDailyDoseQuantity": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "durOrDueMaximumDailyDoseUnitOfMeasure": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "durOrDueMinimumDailyDoseQuantity": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "durOrDueMinimumDailyDoseUnitOfMeasure": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "durOrPpsCodeCounter": {
          "$ref": "#/$defs/NcpdpCounterType"
        },
        "empty": {
          "type": "boolean"
        },
        "otherPharmacyId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPharmacyIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPharmacyIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPharmacyName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPharmacyTelephone": {
          "$ref": "#/$defs/NcpdpPhoneNumberType"
        },
        "otherPrescriberId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPrescriberIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPrescriberIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPrescriberLastName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPrescriberTelephoneNumber": {
          "$ref": "#/$defs/NcpdpPhoneNumberType"
        },
        "present": {
          "type": "boolean"
        },
        "previousDateOfFill": {
          "$ref": "#/$defs/NcpdpDateType",
          "deprecated": true
        },
        "previousDateOfService": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "quantityOfPreviousDispensing": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "quantityOfPreviousFill": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "reasonForServiceCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "unitOfMeasureForPreviousDispensedQuantity": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        }
      },
      "type": "object"
    },
    "DurOrPpsSegment": {
      "properties": {
        "durOrPpsGroupings": {
          "items": {
            "$ref": "#/$defs/DurOrPpsGrouping"
          },
          "type": "array"
        },
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "FormularyAlternativeProductGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "formularyAlternativeDescription": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "formularyAlternativeEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "formularyAlternativeEstimatedPatientCostShare": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "formularyAlternativeId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "formularyAlternativeIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "formularyAlternativeIncentive": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "formularyAlternativePlanBenefitTier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "formularyAlternativeReasonCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "formularyAlternativeRequiredTherapyIndicatorCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "formularyAlternativeRequiredTherapyIndicatorGroupings": {
          "items": {
            "$ref": "#/$defs/FormularyAlternativeRequiredTherapyIndicatorGrouping"
          },
          "type": "array"
        },
        "preferredProductCostShareIncentive": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "preferredProductDescription": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "preferredProductId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "preferredProductIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "preferredProductIncentive": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "FormularyAlternativeRequiredTherapyIndicatorGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "formularyAlternativeRequiredTherapyIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "formularyAlternativeRequiredTherapyTimePeriodDuration": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "formularyAlternativeRequiredTherapyTimePeriodEndDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "formularyAlternativeRequiredTherapyTimePeriodQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "formularyAlternativeRequiredTherapyTimePeriodStartDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "HeaderSegment": {
      "properties": {
        "dateOfService": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "empty": {
          "type": "boolean"
        },
        "headerResponseStatus": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        },
        "serviceProviderId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "serviceProviderIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "transactionCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "transactionCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "versionOrReleaseNumber": {
          "$ref": "#/$defs/NcpdpCodeType"
        }
      },
      "type": "object"
    },
    "HelpDeskBusinessUnitTypeGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "helpDeskBusinessUnitType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "helpDeskContactInformation": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "helpDeskContactInformationExtension": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "helpDeskContactInformationQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "HelpDeskSupportTypeGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "helpDeskBusinessUnitTypeCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "helpDeskBusinessUnitTypeGroupings": {
          "items": {
            "$ref": "#/$defs/HelpDeskBusinessUnitTypeGrouping"
          },
          "type": "array"
        },
        "helpDeskSupportType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "InsuranceAdditionalInformationSegment": {
      "properties": {
        "benefitId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "cmsLowIncomeCostSharingLevel": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "contractNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "empty": {
          "type": "boolean"
        },
        "formularyId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "medicarePartDCoverageCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "nextMedicarePartDEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "nextMedicarePartDTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "planName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "InsuranceSegment": {
      "properties": {
        "cardholderId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "empty": {
          "type": "boolean"
        },
        "groupId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "medicaidAgencyNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "medicaidIdNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "networkReimbursementId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "payerId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "payerIdQualifier": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "payerOrHealthPlanIdCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "payerOrHealthPlanIdGroupings": {
          "items": {
            "$ref": "#/$defs/PayerOrHealthPlanIdGrouping"
          },
          "type": "array"
        },
        "planId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "IntermediaryHelpDeskBusinessUnitTypeGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "intermediaryHelpDeskBusinessUnitType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "intermediaryHelpDeskContactInformation": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "intermediaryHelpDeskContactInformationExtension": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "intermediaryHelpDeskContactInformationQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "IntermediaryHelpDeskSupportTypeGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "intermediaryHelpDeskBusinessUnitTypeCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "intermediaryHelpDeskBusinessUnitTypeGroupings": {
          "items": {
            "$ref": "#/$defs/IntermediaryHelpDeskBusinessUnitTypeGrouping"
          },
          "type": "array"
        },
        "intermediaryHelpDeskSupportType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "IntermediarySegment": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "intermediaryHelpDeskSupportTypeCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "intermediaryHelpDeskSupportTypeGroupings": {
          "items": {
            "$ref": "#/$defs/IntermediaryHelpDeskSupportTypeGrouping"
          },
          "type": "array"
        },
        "present": {
          "type": "boolean"
        },
        "responseIntermediaryAuthorizationCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "responseIntermediaryAuthorizationGroupings": {
          "items": {
            "$ref": "#/$defs/ResponseIntermediaryAuthorizationGrouping"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "MessageSegment": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "message": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpAlphaNumericType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpCodeType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpCountType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpCounterType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpDateType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpDecimalType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpIntegerType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpLongType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpPhoneNumberType": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "NcpdpResponse": {
      "properties": {
        "claim": {
          "$ref": "#/$defs/ClaimSegment"
        },
        "durOrPps": {
          "$ref": "#/$defs/DurOrPpsSegment"
        },
        "empty": {
          "type": "boolean"
        },
        "header": {
          "$ref": "#/$defs/HeaderSegment"
        },
        "insurance": {
          "$ref": "#/$defs/InsuranceSegment"
        },
        "insuranceAdditionalInformation": {
          "$ref": "#/$defs/InsuranceAdditionalInformationSegment"
        },
        "intermediary": {
          "$ref": "#/$defs/IntermediarySegment"
        },
        "message": {
          "$ref": "#/$defs/MessageSegment"
        },
        "otherPayers": {
          "$ref": "#/$defs/OtherPayersSegment"
        },
        "otherRelatedBenefitDetail": {
          "$ref": "#/$defs/OtherRelatedBenefitDetailSegment"
        },
        "patient": {
          "$ref": "#/$defs/PatientSegment"
        },
        "present": {
          "type": "boolean"
        },
        "pricing": {
          "$ref": "#/$defs/PricingSegment"
        },
        "priorAuthorization": {
          "$ref": "#/$defs/PriorAuthorizationSegment"
        },
        "provider": {
          "$ref": "#/$defs/ProviderSegment"
        },
        "raw": {
          "type": "string"
        },
        "rawEmpty": {
          "type": "boolean"
        },
        "rawPresent": {
          "type": "boolean"
        },
        "status": {
          "$ref": "#/$defs/StatusSegment"
        },
        "transactions": {
          "items": {
            "$ref": "#/$defs/ResponseTransaction"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "OtherAmountPaidGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "otherAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "otherAmountPaidQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OtherBenefitDetailInformationGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "otherBenefitDetailInformation": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherBenefitDetailInformationEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherBenefitDetailInformationFacilityName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherBenefitDetailInformationIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherBenefitDetailInformationProviderNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherBenefitDetailInformationTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherBenefitFacilityDetailInformationTelephoneNumber": {
          "$ref": "#/$defs/NcpdpPhoneNumberType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OtherBenefitGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "otherBenefitDetailInformationCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "otherBenefitDetailInformationGroupings": {
          "items": {
            "$ref": "#/$defs/OtherBenefitDetailInformationGrouping"
          },
          "type": "array"
        },
        "otherBenefitEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherBenefitFacilityName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherBenefitFacilityTelephoneNumber": {
          "$ref": "#/$defs/NcpdpPhoneNumberType"
        },
        "otherBenefitTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherBenefitTypeCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherBenefitTypeId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        },
        "stateOrProvinceAddress": {
          "$ref": "#/$defs/NcpdpCodeType"
        }
      },
      "type": "object"
    },
    "OtherPayerGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "otherPayerAdjudicatedProgramType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPayerBenefitClassification": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPayerBenefitEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherPayerBenefitTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherPayerCardholderId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPayerCoverageType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPayerGroupId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPayerHelpDeskTelephoneNumber": {
          "$ref": "#/$defs/NcpdpPhoneNumberType"
        },
        "otherPayerHelpDeskTelephoneNumberExtension": {
          "$ref": "#/$defs/NcpdpIntegerType"
        },
        "otherPayerId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPayerIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPayerName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPayerPatientRelationshipCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "otherPayerPersonCode": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPayerProcessorControlNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "otherPayerRelationshipType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OtherPayersSegment": {
      "properties": {
        "cobOrOtherPayersCount": {
          "$ref": "#/$defs/NcpdpCountType",
          "deprecated": true
        },
        "cobOrOtherPayersGroupings": {
          "deprecated": true,
          "items": {
            "$ref": "#/$defs/OtherPayerGrouping"
          },
          "type": "array"
        },
        "empty": {
          "type": "boolean"
        },
        "otherPayerGroupings": {
          "items": {
            "$ref": "#/$defs/OtherPayerGrouping"
          },
          "type": "array"
        },
        "otherPayerIdCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OtherRelatedBenefitDetailSegment": {
      "properties": {
        "disabilityEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "empty": {
          "type": "boolean"
        },
        "esrdEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "esrdIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "esrdTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "hospiceEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "hospiceFacilityName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "hospiceProviderNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "hospiceTelephoneNumber": {
          "$ref": "#/$defs/NcpdpPhoneNumberType"
        },
        "hospiceTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "institutionalEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "institutionalIndicator": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "institutionalTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "lisEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "lisLevel": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "lisTerminationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "otherBenefitCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "otherBenefitGroupings": {
          "items": {
            "$ref": "#/$defs/OtherBenefitGrouping"
          },
          "type": "array"
        },
        "planType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PatientIdGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "patientId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "patientIdQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PatientPayComponentGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "patientPayComponentAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "patientPayComponentQualifier": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PatientSegment": {
      "properties": {
        "dateOfBirth": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "empty": {
          "type": "boolean"
        },
        "patientFirstName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "patientIdCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "patientIdGroupings": {
          "items": {
            "$ref": "#/$defs/PatientIdGrouping"
          },
          "type": "array"
        },
        "patientLastName": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PayerOrHealthPlanIdGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "payerOrHealthPlanId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "payerOrHealthPlanIdQualifier": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "PricingSegment": {
      "properties": {
        "accumulatedDeductibleAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "amountAppliedToPeriodicDeductible": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToCoverageGap": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToProcessorFee": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToProductSelectionOrBrandDrug": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToProductSelectionOrBrandNonPreferredFormularySelection": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToProductSelectionOrNonPreferredFormularySelection": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToProviderNetworkSelection": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountAttributedToSalesTax": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountExceedingPeriodicBenefitMaximum": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountOfCoinsurance": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "amountOfCopay": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "basisOfCalculationCoinsurance": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "basisOfCalculationCopay": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "basisOfCalculationDispensingFee": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "basisOfCalculationFlatSalesTax": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "basisOfCalculationPercentageSalesTax": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "basisOfCalculationPercentageTax": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "basisOfCalculationRegulatoryFee": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "basisOfReimbursementDetermination": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "benefitStageCount": {
          "$ref": "#/$defs/NcpdpCountType",
          "deprecated": true
        },
        "benefitStageGroupings": {
          "deprecated": true,
          "items": {
            "$ref": "#/$defs/BenefitStageGrouping"
          },
          "type": "array"
        },
        "benefitStageIndicatorCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "benefitStageIndicators": {
          "items": {
            "$ref": "#/$defs/NcpdpCountType"
          },
          "type": "array"
        },
        "dispensingFeeContractedOrReimbursableAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "dispensingFeePaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "empty": {
          "type": "boolean"
        },
        "estimatedGenericSavings": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "flatSalesTaxAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "healthPlanFundedAssistanceAmount": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "incentiveAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "ingredientCostContractedOrReimbursableAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "ingredientCostPaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "otherAmountPaidCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "otherAmountPaidGroupings": {
          "items": {
            "$ref": "#/$defs/OtherAmountPaidGrouping"
          },
          "type": "array"
        },
        "otherPayerAmountRecognized": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "patientPayAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "patientPayComponentCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "patientPayComponentGroupings": {
          "items": {
            "$ref": "#/$defs/PatientPayComponentGrouping"
          },
          "type": "array"
        },
        "patientRegulatoryFeeAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "patientSalesTaxAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "percentageSalesTaxAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "percentageSalesTaxBasisPaid": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "percentageSalesTaxRatePaid": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "percentageTaxAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "percentageTaxBasisPaid": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "percentageTaxExemptIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "percentageTaxRatePaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "planSalesTaxAmount": {
          "$ref": "#/$defs/NcpdpDecimalType",
          "deprecated": true
        },
        "present": {
          "type": "boolean"
        },
        "professionalServiceFeeContractedOrReimbursementAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "professionalServiceFeePaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "regulatoryFeeCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "regulatoryFeeGroupings": {
          "items": {
            "$ref": "#/$defs/RegulatoryFeeGrouping"
          },
          "type": "array"
        },
        "remainingBenefitAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "remainingDeductibleAmount": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "spendingAccountAmountRemaining": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "taxExemptIndicator": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "totalAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        }
      },
      "type": "object"
    },
    "PriorAuthorizationSegment": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "priorAuthorizationDollarsAuthorized": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "priorAuthorizationEffectiveDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "priorAuthorizationExpirationDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "priorAuthorizationIdAssigned": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "priorAuthorizationNumberAssigned": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "priorAuthorizationNumberOfRefillsAuthorized": {
          "$ref": "#/$defs/NcpdpIntegerType"
        },
        "priorAuthorizationProcessedDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "priorAuthorizationQuantity": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "priorAuthorizationQuantityAccumulated": {
          "$ref": "#/$defs/NcpdpDecimalType"
        }
      },
      "type": "object"
    },
    "ProviderSegment": {
      "properties": {
        "dataSourceOfInvalidProviderDetermination": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "stateCodeForDataSourceOfInvalidProviderDetermination": {
          "$ref": "#/$defs/NcpdpCodeType"
        }
      },
      "type": "object"
    },
    "RegulatoryFeeGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "regulatoryFeeAmountPaid": {
          "$ref": "#/$defs/NcpdpDecimalType"
        },
        "regulatoryFeeExemptIndicator": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "regulatoryFeeTypeCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        }
      },
      "type": "object"
    },
    "RejectCodeGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "rejectCode": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "rejectFieldOccurrenceIndicator": {
          "$ref": "#/$defs/NcpdpIntegerType"
        }
      },
      "type": "object"
    },
    "ResponseIntermediaryAuthorizationGrouping": {
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "intermediaryMessage": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "present": {
          "type": "boolean"
        },
        "responseIntermediaryAuthorizationId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "responseIntermediaryAuthorizationTypeId": {
          "$ref": "#/$defs/NcpdpCodeType"
        }
      },
      "type": "object"
    },
    "ResponseTransaction": {
      "properties": {
        "claim": {
          "$ref": "#/$defs/ClaimSegment",
          "deprecated": true
        },
        "cobOrOtherPayers": {
          "$ref": "#/$defs/OtherPayersSegment",
          "deprecated": true
        },
        "durOrPps": {
          "$ref": "#/$defs/DurOrPpsSegment",
          "deprecated": true
        },
        "empty": {
          "type": "boolean"
        },
        "present": {
          "type": "boolean"
        },
        "pricing": {
          "$ref": "#/$defs/PricingSegment",
          "deprecated": true
        },
        "priorAuthorization": {
          "$ref": "#/$defs/PriorAuthorizationSegment",
          "deprecated": true
        },
        "status": {
          "$ref": "#/$defs/StatusSegment",
          "deprecated": true
        }
      },
      "type": "object"
    },
    "StatusSegment": {
      "properties": {
        "additionalMessageInformationCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "additionalMessageInformationGroupings": {
          "items": {
            "$ref": "#/$defs/AdditionalMessageInformationGrouping"
          },
          "type": "array"
        },
        "adjudicatedProgramType": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "approvedMessageCodeCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "approvedMessageCodes": {
          "items": {
            "$ref": "#/$defs/NcpdpCodeType"
          },
          "type": "array"
        },
        "authorizationNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "empty": {
          "type": "boolean"
        },
        "helpDeskSupportTypeCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "helpDeskSupportTypeGroupings": {
          "items": {
            "$ref": "#/$defs/HelpDeskSupportTypeGrouping"
          },
          "type": "array"
        },
        "helpDeskTelephoneNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        },
        "helpDeskTelephoneNumberQualifier": {
          "$ref": "#/$defs/NcpdpCodeType",
          "deprecated": true
        },
        "internalControlNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "nextAvailableFillDate": {
          "$ref": "#/$defs/NcpdpDateType"
        },
        "present": {
          "type": "boolean"
        },
        "reconciliationId": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "rejectCodeGroupings": {
          "items": {
            "$ref": "#/$defs/RejectCodeGrouping"
          },
          "type": "array"
        },
        "rejectCount": {
          "$ref": "#/$defs/NcpdpCountType"
        },
        "transactionReferenceNumber": {
          "$ref": "#/$defs/NcpdpAlphaNumericType"
        },
        "transactionResponseStatus": {
          "$ref": "#/$defs/NcpdpCodeType"
        },
        "url": {
          "$ref": "#/$defs/NcpdpAlphaNumericType",
          "deprecated": true
        }
      },
      "type": "object"
    }
  }
}