{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-inquiry-jsonrequest-with-determination-schema.json",
  "title": "InquiryJSONRequestWithDetermination",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-authorization-orchestration-api-openapi.yml#/components/schemas/InquiryJSONRequestWithDetermination",
  "allOf": [
    {
      "$ref": "#/$defs/InquiryJSONRequest"
    },
    {
      "type": "object",
      "properties": {
        "rhPayerId": {
          "type": "string",
          "description": "Global payer identifier used for determination"
        },
        "planId": {
          "type": "string",
          "description": "Payer plan identifier used for determination"
        }
      }
    }
  ],
  "$defs": {
    "InquiryJSONRequest": {
      "type": "object",
      "properties": {
        "senderId": {
          "type": "string"
        },
        "submitterTransactionIdentifier": {
          "type": "string"
        },
        "payerId": {
          "type": "string"
        },
        "payerName": {
          "type": "string"
        },
        "umClearingHouseId": {
          "type": "string"
        },
        "requester": {
          "type": "object",
          "properties": {
            "requesterType": {
              "type": "string"
            },
            "organizationName": {
              "type": "string"
            },
            "lastName": {
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "requesterIdentification": {
              "type": "object",
              "properties": {
                "providerUpinNumber": {
                  "type": "string"
                },
                "facilityIdNumber": {
                  "type": "string"
                },
                "employerIdentificationNumber": {
                  "type": "string"
                },
                "providerSiteNumber": {
                  "type": "string"
                },
                "providerPlanNetworkIdNumber": {
                  "type": "string"
                },
                "facilityNetworkIdNumber": {
                  "type": "string"
                },
                "socialSecurityNumber": {
                  "type": "string"
                },
                "federalTaxpayerIdentificationNumber": {
                  "type": "string"
                },
                "carrierAssignedReferenceNumber": {
                  "type": "string"
                }
              }
            },
            "address1": {
              "type": "string"
            },
            "address2": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "postalCode": {
              "type": "string"
            },
            "countryCode": {
              "type": "string"
            },
            "countrySubDivisionCode": {
              "type": "string"
            },
            "npi": {
              "type": "string"
            },
            "payorId": {
              "type": "string"
            },
            "ssn": {
              "type": "string"
            },
            "servicesPlanID": {
              "type": "string"
            },
            "employersId": {
              "type": "string"
            },
            "etin": {
              "type": "string"
            },
            "contactName": {
              "type": "string"
            },
            "contactElectronicMail": {
              "type": "string"
            },
            "contactFacsimile": {
              "type": "string"
            },
            "contactTelephone": {
              "type": "string"
            },
            "contactTelephoneExtension": {
              "type": "string"
            },
            "providerCode": {
              "type": "string"
            },
            "referenceIdentification": {
              "type": "string"
            }
          }
        },
        "subscriber": {
          "type": "object",
          "properties": {
            "lastName": {
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "middleName": {
              "type": "string"
            },
            "suffix": {
              "type": "string"
            },
            "memberId": {
              "type": "string"
            },
            "dateOfBirth": {
              "type": "string"
            },
            "supplementalIdentification": {
              "type": "object",
              "properties": {
                "policyNumber": {
                  "type": "string"
                },
                "branchIdentifier": {
                  "type": "string"
                },
                "groupNumber": {
                  "type": "string"
                },
                "departmentNumber": {
                  "type": "string"
                },
                "patientAccountNumber": {
                  "type": "string"
                },
                "healthInsuranceClaimNumber": {
                  "type": "string"
                },
                "idCard": {
                  "type": "string"
                },
                "insurancePolicyNumber": {
                  "type": "string"
                },
                "planNetworkIdentificationNumber": {
                  "type": "string"
                },
                "medicaidRecipientIdentificationNumber": {
                  "type": "string"
                },
                "ssn": {
                  "type": "string"
                }
              }
            }
          }
        },
        "dependent": {
          "type": "object",
          "properties": {
            "lastName": {
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "middleName": {
              "type": "string"
            },
            "suffix": {
              "type": "string"
            },
            "dateOfBirth": {
              "type": "string"
            },
            "supplementalIdentification": {
              "type": "object",
              "properties": {
                "employeeIdentificationNumber": {
                  "type": "string"
                },
                "patientAccountNumber": {
                  "type": "string"
                },
                "ssn": {
                  "type": "string"
                }
              }
            }
          }
        },
        "patientEventDetail": {
          "type": "object",
          "properties": {
            "requestCategoryCode": {
              "type": "string"
            },
            "certificationTypeCode": {
              "type": "string"
            },
            "serviceTypeCode": {
              "type": "string"
            },
            "facilityTypeCode": {
              "type": "string"
            },
            "facilityCodeQualifier": {
              "type": "string"
            },
            "certificationActionCode": {
              "type": "string"
            },
            "previousReviewAuthorizationNumber": {
              "type": "string"
            },
            "previousAdministrativeReferenceNumber": {
              "type": "string"
            },
            "accidentDate": {
              "type": "string"
            },
            "eventDateBegin": {
              "type": "string"
            },
            "eventDateEnd": {
              "type": "string"
            },
            "admissionDateBegin": {
              "type": "string"
            },
            "admissionDateEnd": {
              "type": "string"
            },
            "dischargeDate": {
              "type": "string"
            },
            "certificationIssueDateBegin": {
              "type": "string"
            },
            "certificationIssueDateEnd": {
              "type": "string"
            },
            "certificationExpirationDateBegin": {
              "type": "string"
            },
            "certificationExpirationDateEnd": {
              "type": "string"
            },
            "certificationEffectiveDateBegin": {
              "type": "string"
            },
            "certificationEffectiveDateEnd": {
              "type": "string"
            },
            "healthCareServicesReviewRequestDate": {
              "type": "string"
            },
            "diagnosisTypeCode": {
              "type": "string"
            },
            "diagnosisCode": {
              "type": "string"
            },
            "patientEventProviderName": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "entityIdentifierCode": {
                    "type": "string"
                  },
                  "organizationName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "middleName": {
                    "type": "string"
                  },
                  "namePrefix": {
                    "type": "string"
                  },
                  "nameSuffix": {
                    "type": "string"
                  },
                  "identificationCodeQualifier": {
                    "type": "string"
                  },
                  "identifier": {
                    "type": "string"
                  },
                  "address1": {
                    "type": "string"
                  },
                  "address2": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "postalCode": {
                    "type": "string"
                  },
                  "countryCode": {
                    "type": "string"
                  },
                  "countrySubDivisionCode": {
                    "type": "string"
                  },
                  "providerSupplementalInformation": {
                    "type": "object",
                    "properties": {
                      "stateLicenseNumber": {
                        "type": "string"
                      },
                      "licenseNumberStateCode": {
                        "type": "string"
                      },
                      "providerUpinNumber": {
                        "type": "string"
                      },
                      "facilityIdNumber": {
                        "type": "string"
                      },
                      "employersIdentificationNumber": {
                        "type": "string"
                      },
                      "providerPlanNetworkIdentificationNumber": {
                        "type": "string"
                      },
                      "facilityNetworkIdentificationNumber": {
                        "type": "string"
                      },
                      "ssn": {
                        "type": "string"
                      },
                      "carrierAssignedReferenceNumber": {
                        "type": "string"
                      }
                    }
                  },
                  "providerCode": {
                    "type": "string"
                  },
                  "providerTaxonomyCode": {
                    "type": "string"
                  }
                }
              }
            },
            "serviceLevel": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "requestCategoryCode": {
                    "type": "string"
                  },
                  "certificationTypeCode": {
                    "type": "string"
                  },
                  "serviceTypeCode": {
                    "type": "string"
                  },
                  "facilityTypeCode": {
                    "type": "string"
                  },
                  "facilityCodeQualifier": {
                    "type": "string"
                  },
                  "certificationActionCode": {
                    "type": "string"
                  },
                  "previousReviewAuthorizationNumber": {
                    "type": "string"
                  },
                  "previousAdministrativeReferenceNumber": {
                    "type": "string"
                  },
                  "serviceDateBegin": {
                    "type": "string"
                  },
                  "serviceDateEnd": {
                    "type": "string"
                  },
                  "certificationIssueDateBegin": {
                    "type": "string"
                  },
                  "certificationIssueDateEnd": {
                    "type": "string"
                  },
                  "certificationExpirationDateBegin": {
                    "type": "string"
                  },
                  "certificationExpirationDateEnd": {
                    "type": "string"
                  },
                  "certificationEffectiveDateBegin": {
                    "type": "string"
                  },
                  "certificationEffectiveDateEnd": {
                    "type": "string"
                  },
                  "professionalService": {
                    "type": "object",
                    "properties": {
                      "productOrServiceIDQualifier": {
                        "type": "string"
                      },
                      "procedureCode": {
                        "type": "string"
                      },
                      "procedureCode2": {
                        "type": "string"
                      },
                      "unitOrBasisForMeasurementCode": {
                        "type": "string"
                      },
                      "serviceUnitCount": {
                        "type": "string"
                      }
                    }
                  },
                  "institutionalService": {
                    "type": "object",
                    "properties": {
                      "serviceLineRevenueCode": {
                        "type": "string"
                      },
                      "productOrServiceIDQualifier": {
                        "type": "string"
                      },
                      "procedureCode": {
                        "type": "string"
                      },
                      "procedureCode2": {
                        "type": "string"
                      },
                      "unitOrBasisForMeasurementCode": {
                        "type": "string"
                      },
                      "serviceUnitCount": {
                        "type": "string"
                      }
                    }
                  },
                  "dentalService": {
                    "type": "object",
                    "properties": {
                      "procedureCode": {
                        "type": "string"
                      },
                      "procedureCode2": {
                        "type": "string"
                      },
                      "americanDentalAssociationCodes": {
                        "type": "string"
                      },
                      "prosthesisCrownOrInlayCode": {
                        "type": "string"
                      },
                      "serviceUnitCount": {
                        "type": "string"
                      }
                    }
                  },
                  "toothInformation": {
                    "type": "object",
                    "properties": {
                      "toothCode": {
                        "type": "string"
                      },
                      "toothSurfaceCode": {
                        "type": "string"
                      }
                    }
                  },
                  "serviceProviderName": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "entityIdentifierCode": {
                          "type": "string"
                        },
                        "organizationName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "middleName": {
                          "type": "string"
                        },
                        "namePrefix": {
                          "type": "string"
                        },
                        "nameSuffix": {
                          "type": "string"
                        },
                        "identificationCodeQualifier": {
                          "type": "string"
                        },
                        "identifier": {
                          "type": "string"
                        },
                        "address1": {
                          "type": "string"
                        },
                        "address2": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "postalCode": {
                          "type": "string"
                        },
                        "countryCode": {
                          "type": "string"
                        },
                        "countrySubDivisionCode": {
                          "type": "string"
                        },
                        "providerSupplementalInformation": {
                          "type": "object",
                          "properties": {
                            "stateLicenseNumber": {
                              "type": "string"
                            },
                            "licenseNumberStateCode": {
                              "type": "string"
                            },
                            "providerUpinNumber": {
                              "type": "string"
                            },
                            "facilityIdNumber": {
                              "type": "string"
                            },
                            "employersIdentificationNumber": {
                              "type": "string"
                            },
                            "providerSiteNumber": {
                              "type": "string"
                            },
                            "providerPlanNetworkIdentificationNumber": {
                              "type": "string"
                            },
                            "facilityNetworkIdentificationNumber": {
                              "type": "string"
                            },
                            "ssn": {
                              "type": "string"
                            },
                            "carrierAssignedReferenceNumber": {
                              "type": "string"
                            }
                          }
                        },
                        "providerCode": {
                          "type": "string"
                        },
                        "providerTaxonomyCode": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}