{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-contractor-policy-details-schema.json",
  "title": "ContractorPolicyDetails",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-lcd-api-openapi.yml#/components/schemas/ContractorPolicyDetails",
  "required": [
    "policyInfo"
  ],
  "type": "object",
  "properties": {
    "policyInfo": {
      "$ref": "#/$defs/PolicyInfo"
    },
    "ncdCodingInformation": {
      "$ref": "#/$defs/NcdCodingInformation"
    },
    "lcdCodingInformation": {
      "$ref": "#/$defs/LcdCodingInformation"
    }
  },
  "$defs": {
    "CodeGroup": {
      "type": "object",
      "properties": {
        "paragraph": {
          "type": "string"
        },
        "codeInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeInfo"
          }
        }
      }
    },
    "CodeInfo": {
      "required": [
        "code",
        "description"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "DiagnosticCodes": {
      "type": "object",
      "properties": {
        "supportingMedicalNecessity": {
          "$ref": "#/$defs/SupportingMedicalNecessity"
        },
        "notSupportingMedicalNecessity": {
          "$ref": "#/$defs/NotSupportingMedicalNecessity"
        }
      }
    },
    "LcdCodingInformation": {
      "type": "object",
      "properties": {
        "typeOfBillCodes": {
          "$ref": "#/$defs/TypeOfBillCodes"
        },
        "revenueCodes": {
          "$ref": "#/$defs/RevenueCodes"
        },
        "procedureCodes": {
          "$ref": "#/$defs/ProcedureCodes"
        },
        "diagnosticCodes": {
          "$ref": "#/$defs/DiagnosticCodes"
        }
      }
    },
    "NcdCodingInformation": {
      "type": "object",
      "properties": {
        "procedureCodes": {
          "$ref": "#/$defs/ProcedureCodes"
        },
        "diagnosticCodes": {
          "$ref": "#/$defs/DiagnosticCodes"
        }
      }
    },
    "NotSupportingMedicalNecessity": {
      "type": "object",
      "properties": {
        "codeGroup": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeGroup"
          }
        },
        "numcodes": {
          "type": "integer",
          "format": "int32"
        },
        "toomanycodes": {
          "type": "boolean"
        }
      }
    },
    "PolicyInfo": {
      "required": [
        "effectiveDate",
        "title",
        "url"
      ],
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "effectiveDate": {
          "type": "string"
        },
        "expirationDate": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "contractorNum": {
          "type": "string"
        },
        "cmsId": {
          "type": "string"
        },
        "contractorPart": {
          "type": "string"
        },
        "contractorType": {
          "type": "string"
        },
        "icpPolicyId": {
          "type": "integer",
          "format": "int32"
        },
        "policyType": {
          "type": "string"
        }
      }
    },
    "ProcedureCodes": {
      "type": "object",
      "properties": {
        "codeGroup": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeGroup"
          }
        },
        "numcodes": {
          "type": "integer",
          "format": "int32"
        },
        "toomanycodes": {
          "type": "boolean"
        }
      }
    },
    "RevenueCodes": {
      "type": "object",
      "properties": {
        "codeInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeInfo"
          }
        }
      }
    },
    "SupportingMedicalNecessity": {
      "type": "object",
      "properties": {
        "codeGroup": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeGroup"
          }
        },
        "numcodes": {
          "type": "integer",
          "format": "int32"
        },
        "toomanycodes": {
          "type": "boolean"
        }
      }
    },
    "TypeOfBillCodes": {
      "type": "object",
      "properties": {
        "codeInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeInfo"
          }
        }
      }
    }
  }
}